Assigning strings to a global variable
#1

So, I'm assigning strings to a global variable and I was wondering this:

Why would this work:

pawn Код:
new Msg[][MAX_PLAYERS];
But why do you need to change this:

pawn Код:
new Msg[][MAX_PLAYERS][5];
to this:

pawn Код:
new Msg[MAX_PLAYERS][5][128] // 128 for string length.
I'm trying to understand it but I don't really get it, and I really wanna know.

Thank you in advance.
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: 2 Guest(s)