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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error (
/showthread.php?tid=119292)
error -
`FuTuRe- - 07.01.2010
pawn Код:
new textstring[256];
format(textstring, sizeof(textstring), "[General Chat] %s[%i]: %s", pInfo[playerid][name], playerid, text);
SendClientMessageToAll(text,textstring); // line 905
return 0;
}
When i compile it gives me this error:
Код:
(905) : error 035: argument type mismatch (argument 1)
Re: error -
Correlli - 07.01.2010
pawn Код:
SendClientMessageToAll(_YOUR_COLOR_HERE_, textstring);
Re: error -
`FuTuRe- - 07.01.2010
Thanks for opening my eyes... i defined chat instead of text