 |
|
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
|

03-16-2009
, 14:15
Re: Send data to menu?
|
#7
|
Could simply make the data[] = "01otherdata"
all the way to "99otherdata"
str_to_num will still get the number correctly. Then you can just do data[2] to get the other data.
Edit: Even if you didn't want to use exactly that, you could seperate the data by an identifier.
formatex(data, len, "%d|%s", num, extra_data);
Then use strtok(data, Left, 20, Right, 20, '|');
And use str_to_num(Left) and then you have the extra data in Right
Last edited by Emp`; 03-16-2009 at 14:19.
|
|
|
|