MAX_PLAYERS error, help someone? - 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: MAX_PLAYERS error, help someone? (
/showthread.php?tid=136657)
MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
ok, im making a random disco time, (yeah laff) and only ID:0 sees the dialog, heres my code.
Код:
public RDT()
{
GameTextForAll("~B~Random ~R~Disco ~Y~TIME!", 5000,6);
for(new i=0; i<MAX_PLAYERS; ++i)
{
ShowPlayerDialog(i,2,0,"RANDOMNESS","Would you like to participate in random disco time?","Yes","No");
return 1;
}
return 0;
}
Re: MAX_PLAYERS error, help someone? -
gotenks918 - 26.03.2010
Код:
for(new i=0; i<MAX_PLAYERS; ++i)
i++
Re: MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
nope still, only ID 0 sees the dialog.
Re: MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
Gets errors
Re: MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
Same issue, only ID:0 can see it, the gametext everyone see's but the dialog is not showing up.
Re: MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
i know, i used your code, and the dialog still doesnt show. could dialog not support for all players at once?
Re: MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
Wheres his house, i will jogg over their. XD
Re: MAX_PLAYERS error, help someone? -
Kyosaur - 26.03.2010
Quote:
Originally Posted by Seif_
It's i++ and not ++i
|
Its either or. Both of them work.
Re: MAX_PLAYERS error, help someone? -
dice7 - 26.03.2010
pawn Код:
public RDT()
{
GameTextForAll("~B~Random ~R~Disco ~Y~TIME!", 5000,6);
for(new i=0; i<MAX_PLAYERS; i++) ShowPlayerDialog(i,2,0,"RANDOMNESS","Would you like to participate in random disco time?","Yes","No");
}
Re: MAX_PLAYERS error, help someone? -
-Rebel Son- - 26.03.2010
Dice's code worked, thanks dice.