Thread: playermenu help
View Single Post
[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