dialog input
#7

Sorry, I thought it somehow differently so it's my mistake. Yes, in that case the loop will be called 3 times but in case the array's indexes are full (Let's say MAX_PLAYERS is 10 and the array stores all the players), it will be caused a run time error 4. In that case, checking if i is less than MAX_PLAYERS first is the solution:
pawn Код:
while (++i < MAX_PLAYERS && cmdplayers[i] != -1)
Reply


Messages In This Thread
dialog input - by DavidBilla - 08.06.2014, 18:44
Re: dialog input - by Koala818 - 08.06.2014, 19:03
Re: dialog input - by Konstantinos - 08.06.2014, 19:09
Re: dialog input - by Koala818 - 08.06.2014, 19:16
Re: dialog input - by Konstantinos - 08.06.2014, 19:20
Re: dialog input - by Koala818 - 08.06.2014, 19:27
Re: dialog input - by Konstantinos - 08.06.2014, 19:40
Re: dialog input - by DavidBilla - 08.06.2014, 19:45
Re: dialog input - by DavidBilla - 11.06.2014, 19:05

Forum Jump:


Users browsing this thread: 1 Guest(s)