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: ERRor (
/showthread.php?tid=408451)
ERRor -
HUYA - 18.01.2013
Код:
stock ClearChatForAll(playerid)
{
SendClientMessageToAll(playerid,-1,"SERVER: Admin have clear the chat box.");
return 1;
}
stock ShowPlayerStats(playerid)
{
SendClientMessageToAll(playerid,-1,"SERVER: Natan is work. keep it UP.");
return 1;
}
the error
Код:
C:\Documents and Settings\CT\Desktop\HUYA TDM\pawno\new.pwn(22) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\CT\Desktop\HUYA TDM\pawno\new.pwn(28) : error 035: argument type mismatch (argument 2)
hhow to fix it?
Re: ERRor -
Threshold - 18.01.2013
There is no 'playerid' parameter in SendClientMessageToAll
See Here:
https://sampwiki.blast.hk/wiki/SendClientMessageToAll
pawn Код:
stock ClearChatForAll(playerid)
{
SendClientMessageToAll(-1,"SERVER: Admin have clear the chat box.");
return 1;
}
stock ShowPlayerStats(playerid)
{
SendClientMessageToAll(-1,"SERVER: Natan is work. keep it UP.");
return 1;
}
NOTE: If ClearChatForAll is supposed to clear the chat as well, I recommend using:
pawn Код:
for(new i = 0; i < 100; i++)
{
SendClientMessageToAll(-1, " ");
}
Re: ERRor -
azzerking - 18.01.2013
Yeah listen to BenzoAMG. He got it correct, as usual
Re: ERRor -
DaRk_RaiN - 18.01.2013
pawn Код:
stock ClearChatForAll(playerid)
{
SendClientMessageToAll(-1,"SERVER: Admin have clear the chat box.");
return 1;
}
stock ShowPlayerStats(playerid)
{
SendClientMessageToAll(-1,"SERVER: Natan is work. keep it UP.");
return 1;
}