SendClientMessage! ERROR - 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: SendClientMessage! ERROR (
/showthread.php?tid=538402)
SendClientMessage! ERROR -
FloxX - 21.09.2014
why if i compile i get error on my line
this code
SendClientMessage(playerid,green,"{FF0000} Exp Anda {FFFF00}: {33FF33}%s", GetPlayerScore(playerid));
where i get false
Re: SendClientMessage! ERROR -
PMH - 21.09.2014
U need to format it..
secondly, %s is for a string not for an integer like score..
use it like this:
pawn Код:
new msg[128];
format(msg, sizeof(msg), "{FF0000} Exp Anda {FFFF00}: {33FF33}%d", GetPlayerScore(playerid));
SendClientMessage(playerid, -1, msg);
Re: SendClientMessage! ERROR -
FloxX - 21.09.2014
Thank you