help with message - 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: help with message (
/showthread.php?tid=69160)
help with message -
Schock - 16.03.2009
hey guys i have a f**** error
pawn Код:
public ExportStart()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerCheckpoint(i, -1539.262817, 133.987518, 2.613937, 8);
SendClientMessageToAll(YELLOW, "[CAR-EXPORT]:We need some cars (/carlist)");
SetTimer("GatesOpen", 3000, 0);
}
return 1;
}
the Message to all comes 100 (maybe) times why
Re: help with message -
[RP]Rav - 16.03.2009
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessageToAll(YELLOW, "[CAR-EXPORT]:We need some cars (/carlist)");
}
now translated: a message is sent to everyone, 200 times in that loop (i <0-200>), so you need to move the message sending bit out of the loop
Re: help with message -
[M2S]moe - 16.03.2009
Or you can just do SendClientMessage(i, YELLOW, "your msg");
Re: help with message -
Schock - 16.03.2009
Quote:
Originally Posted by [M2S
moe ]
Or you can just do SendClientMessage(i, YELLOW, "your msg");
|
i fixed it ...
Re: help with message -
[M2S]moe - 16.03.2009
Hope you took the SetTimer out of there also