Client 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: Client message (
/showthread.php?tid=505338)
Client message -
Ananisiki - 08.04.2014
Why does this getting send twice?
it says
pawn Код:
Your FPS: 0
Your FPS: 90 // this is correct
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
if(pID == playerid) format(FPSmsg, sizeof FPSmsg, "Your FPS: %d", pFPS[i]);
else format(FPSmsg, sizeof FPSmsg, "%s (%d)'s FPS: %d", PlayerName(pID), pID, pFPS[pID]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, FPSmsg);
}
Re: Client message -
Mattakil - 08.04.2014
pawn Код:
SendClientMessage(playerid, COLOR_LIGHTBLUE, FPSmsg);
to
pawn Код:
SendClientMessage(i, COLOR_LIGHTBLUE, FPSmsg);
Re: Client message -
Threshold - 08.04.2014
I would need to see your whole block of code to see what this is actually trying to do, but the first thing I notice is that
pawn Код:
SendClientMessage(playerid, COLOR_LIGHTBLUE, FPSmsg);
Should be:
pawn Код:
SendClientMessage(i, COLOR_LIGHTBLUE, FPSmsg);