Question about braces
#1

hello i have a question:

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

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

thanks
Reply
#2

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 {}
Reply
#3

Ok, thx for your response !!

+rep
Reply
#4

- Toooo Late
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)