Raised This Month: $ Target: $400
 0% 

playermenu help


Post New Thread Reply   
 
Thread Tools Display Modes
[PUPPETS] Scooter
Member
Join Date: May 2009
Old 10-05-2011 , 17:21   Re: playermenu help
Reply With Quote #11

Option 1:
new data[65] //steam-id and name can max be 32 characters
Then store the ID in data[0], steam-id from 1-33 and name from 34-65.

Option 2:
Build a enum, which is easier to handle and to keep the overview:
PHP Code:
new enum _:data_structure{
id,
steam[32],
name[32] }

// Build variable
new data[data_structure];
//Now you can access the fields in your data-variable by their names

data[id] = id;
copy(data[steam], steam-id31);
copy(data[name], name31); 
[PUPPETS] Scooter is offline
Reply



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 07:11.


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