Argument type mismatch - 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: Argument type mismatch (
/showthread.php?tid=407606)
Argument type mismatch -
Louris - 14.01.2013
Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerSpeed(playerid, true) > 270)
TogglePlayerControllable(playerid,0);
GetPlayerName(playerid, string, 24);
format(string, sizeof(string), "%s Vaћiavo daugiau nei 270 km/h greičiu. /stebeti %s", name);
if(PlayerInfo[playerid][pAdmin] == 1)
SendClientMessage(playerid, string);
return 1;
}
C:\Users\Lauris1\Desktop\failai\Servas\gamemodes\b om.pwn(475) : error 035: argument type mismatch (argument 2)
Re: Argument type mismatch -
u3ber - 14.01.2013
Код:
SendClientMessage(playerid, -1, string);
Re: Argument type mismatch -
Diorturato - 14.01.2013
Second argument - text color. String must be third argument.
pawn Код:
SendClientMessage(playerid, 0xAAAAAAFF, string);