Assigning strings to a global variable
#3

I see, but then if you use:

pawn Код:
new Msg[MAX_PLAYERS][5];
Why can you do:

pawn Код:
Msg[playerid][0] = blabla;
Msg[playerid][1] = blabla;
This really confuses me.

Also:

this worked fine for me

pawn Код:
new Msg[][MAX_PLAYERS];
while this didn't work when I tried it:

pawn Код:
new Msg[MAX_PLAYERS][128]; // 128 for strin length.
Reply


Messages In This Thread
Assigning strings to a global variable - by Da_Noob - 23.02.2013, 21:22
Re: Assigning strings to a global variable - by MP2 - 23.02.2013, 21:34
Re: Assigning strings to a global variable - by Da_Noob - 23.02.2013, 21:40
Re: Assigning strings to a global variable - by Misiur - 23.02.2013, 21:46
Re: Assigning strings to a global variable - by Scenario - 23.02.2013, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)