a small question
#7

Quote:
Originally Posted by xoɟɔıʇɔɹɐ
pawn Код:
new playername[24];
24 is the array size
This will be errored if the server has more than 25 players.

//playerid > 24
playername[playerid] <- error index out of bounds

better do:
pawn Код:
new playername[MAX_PLAYERS][50];
200 is the array size and will also work on future versions of samp if the max players val gets adjusted. It will hold names of 50 charecters, but u can adjust off course
Reply


Messages In This Thread
a small question - by _diana_ - 09.06.2009, 12:10
Re: a small question - by dice7 - 09.06.2009, 12:19
Re: a small question - by _diana_ - 09.06.2009, 12:28
Re: a small question - by MPKaboose - 09.06.2009, 12:29
Re: a small question - by hansen111 - 09.06.2009, 12:30
Re: a small question - by MPKaboose - 09.06.2009, 12:32
Re: a small question - by hansen111 - 09.06.2009, 12:34
Re: a small question - by _diana_ - 09.06.2009, 12:35
Re: a small question - by MPKaboose - 09.06.2009, 12:36
Re: a small question - by hansen111 - 09.06.2009, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)