Dialog help - 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)
+--- Thread: Dialog help (
/showthread.php?tid=533656)
Dialog help -
Keyhead - 25.08.2014
So, listen. I'm trying to make a dialog where it checks every player, and then shows if they have a certain value set in a dialog. I can't figure it out.
I used
pawn Код:
for(new i=0,n;i<MAX_PLAYERS;i++)
To check all the players, yet when it won't show.
the n is for an ID number which goes up in increments of 1.
Re: Dialog help -
IceCube! - 25.08.2014
pawn Код:
Variable[MAX_PLAYERS];
string[size];
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(Variable[i] = value)
{
format(string, sizeof(string), "%s\nNew Information", string);
continue;
}
else IF THERE IS ONE.
}