dialog input
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
If the value of "cmdplayers[++i]" is not -1 (has an ID of player), the expression is false and thus the loop will stop.
Hmm. Correct me if i am wrong but as i know the while works like:
pawn Код:
while(cmdplayers[++i]!=-1 && i<MAX_PLAYERS) //change for each playerid you introduced
{
                        //do what you have to do with the playerid
}
cmdplayers[50];
cmdplayers[0]=12; //the while will execute for this
cmdplayers[1]=23; //the while will execute for this
cmdplayers[2]=42; //the while will execute for this
cmdplayers[3]=-1; //the while will stop
cmdplayers[4]=-1;
.
.
.
cmdplayers[49]=-1;
So you will execute the command for all the players you introduced. What's wrong more exatly
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)