SA-MP Forums Archive
Simple scripting question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Simple scripting question (/showthread.php?tid=129984)



Simple scripting question - SiJ - 24.02.2010

Hey,
I'm using
new pName[MAX_PLAYER_NAME][MAX_PLAYERS];
to store every player's name to an array..
But I just thought, shouldn't it be
new pName[MAX_PLAYERS][MAX_PLAYER_NAME];
?

I didn't had problems with it, but maybe because I have never had more than 24 (MAX_PLAYER_NAME) players in my server?


Re: Simple scripting question - BlackFoX - 24.02.2010

Код:
new pName[MAX_PLAYERS]/* For every Player */[MAX_PLAYER_NAME]; // 24 Chars for every Playername



Re: Simple scripting question - Joe Staff - 24.02.2010

The length of the text should always be last


Re: Simple scripting question - SiJ - 24.02.2010

Ok, thank you guys