[INC] TS Stocks

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1249
Gender:
United States of America

[INC] TS Stocks

Post by Archive-Poster »

This is just a small header to replace some code that would normally be done in TSX or TSFun for the HL mod "The Specialists". Since offsets have been changed, a lot of functions that used to work don't anymore. I also posted my "The One" mod, which is incomplete but is useful for reference so you can see how to use some of the functions.
Attachments
ts_stocks.inc.zip
(1.45 KiB) Downloaded 12 times
the_one.sma.zip
(3.62 KiB) Downloaded 9 times
User avatar
Archive-Poster
Posts: 1249
Gender:
United States of America

Re: [INC] TS Stocks

Post by Archive-Poster »

Nice. Just a question, what's the purpose of this ?

Code: Select all

stock get_pdata_int_ex( id, offset )
{
    return get_pdata_int( id, offset )
}

stock set_pdata_int_ex( id, offset, amt )
{
    return set_pdata_int( id, offset, amt )
} 
It originally added an offset to it automatically based on whether the server was on Linux or not. That was since removed so the stocks are basically useless.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests