Doubled 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)
+--- Thread: Doubled message (
/showthread.php?tid=471620)
Doubled message -
SsHady - 24.10.2013
Hello everyone,
Whenever someone wins it shows Double-messaged where as in the script I've written only one
SS:
code:
pawn Код:
public MinigameWinner( player,playerid )
{
new stringaaaaaaaaaa[128];
GetPlayerName(playerid, PlayerrrrName, sizeof(PlayerrrrName));
format( stringaaaaaaaaaa, sizeof( stringaaaaaaaaaa ), "* %s has won Fallout minigame!", PlayerrrName( player ) );
Iter_Remove(_Minigamer, playerid );
SendClientMessageToAll( LIME, stringaaaaaaaaaa );
InFallout[playerid] = 1;
GivePlayerMoney( player, PRIZE_MONEY );
Minigamer_{ player } = false;
Iter_Remove(_Minigamer, player );
SetTimerEx( "RespawnPlayer", 1400, 0, "i", player );
SetTimer( "EndMinigame", 1700, 0);
}
I can't seem to found the issue of it
-thanks!
Re: Doubled message -
xVIP3Rx - 24.10.2013
Try this one
pawn Код:
public MinigameWinner( player,playerid )
{
new stringaaaaaaaaaa[128];
GetPlayerName(player, PlayerrrrName, sizeof(PlayerrrrName));
format( stringaaaaaaaaaa, sizeof( stringaaaaaaaaaa ), "* %s has won Fallout minigame!", PlayerrrrName );
Iter_Remove(_Minigamer, playerid );
SendClientMessageToAll( LIME, stringaaaaaaaaaa );
InFallout[playerid] = 1;
GivePlayerMoney( player, PRIZE_MONEY );
Minigamer_{ player } = false;
Iter_Remove(_Minigamer, player );
SetTimerEx( "RespawnPlayer", 1400, 0, "i", player );
SetTimer( "EndMinigame", 1700, 0);
}
Re: Doubled message -
SsHady - 24.10.2013
Still the same
Re: Doubled message -
xVIP3Rx - 24.10.2013
Ctrl+f and look for "has won Fallout minigame"
If you found another one delete it.
Re: Doubled message -
SsHady - 24.10.2013
I've already tried that but still no luck!
Re: Doubled message -
Konstantinos - 24.10.2013
I guess the message appears again but in a different place, not in that public.
You can change the message to be sure though:
pawn Код:
"* %s has won Fallout minigame!"
to:
pawn Код:
"[DEBUG]: * %s has won Fallout minigame!"
Will the second message show the DEBUG prefix? If it doesn't do, then it might show the message in another public OR MinigameWinner is called twice (most likely).
Re: Doubled message -
SsHady - 24.10.2013
Still the same
Re: Doubled message -
Konstantinos - 24.10.2013
Then MinigameWinner is called twice.
Where do you call it?
Re: Doubled message -
OKStyle - 24.10.2013
show EndMinigame code