SA-MP Forums Archive
how to do variables? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to do variables? (/showthread.php?tid=365290)



how to do variables? - cssbart - 02.08.2012

how do you do variables i know how to do somthing like this

new test1;

test1 = IsPlayerAdmin(playerid);

how would i do a veriabel of somthing liek this

test1 = "admin level 1";


Re: how to do variables? - Larceny - 02.08.2012

https://sampwiki.blast.hk/wiki/Scripting_Basics#Strings


Re: how to do variables? - [MM]RoXoR[FS] - 02.08.2012

new adminlevel[MAX_PLAYERS];

if(adminlevel[playerid]==1);