SA-MP Forums Archive
Question about braces - 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: Question about braces (/showthread.php?tid=527038)



Question about braces - hafs - 20.07.2014

hello i have a question:

Код:
myvariable[playerid] = 1;
and

Код:
myvariable{playerid} = 1;
is it the same thing ??

thanks


Re: Question about braces - BroZeus - 20.07.2014

no it isnt
{} are used when the array is in char form
like tihis--
pawn Код:
new myvarible[MAX_PLAYERS];
myvarible[playerid] = 1;//now we use []

new myvariable braces[MAX_PLAYERS char];
myvariable{playerid} = 1;//this uses less memory here we use {}



Re : Question about braces - hafs - 20.07.2014

Ok, thx for your response !!

+rep


Re: Question about braces - kesarthakur - 20.07.2014

- Toooo Late