Help Code
#2

Код:
new myarrayname[50];
which contians 50 slots in the array which is also you use for creating strings as every letter will count as an usage of array slot.

İf you want sometthing more complicated, almost all user(i think all of them but not sure) variable holding systems use two arrays in single array variable like:

Код:
userinfo[max number of players][numbers of varibles you would like to save]
even saving names:

Код:
userinfo[max number of players][numbers of varibles you would like to save][string array for name]
ofcourse to avoid the numbers in variables that we like to save we choose to use enums. which will make like 0=name 1=dbid 2=money so you use:

Код:
userinfo[playerid][money]
Reply


Messages In This Thread
Help Code - by tobi736 - 22.07.2018, 14:46
Re: Help Code - by grymtn - 22.07.2018, 15:05
Re: Help Code - by tobi736 - 23.07.2018, 03:58

Forum Jump:


Users browsing this thread: 1 Guest(s)