Raised This Month: $ Target: $400
 0% 

Send data to menu?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-16-2009 , 14:15   Re: Send data to menu?
Reply With Quote #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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode