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=455294)
argument type mismatch -
dEcooR - 01.08.2013
Hello this is my stock but it say that error wtf
Код:
line of error:
SCMTF(CO_YELLOW, "Player %s has been banned.", PlayerName(playerid));
stock SCMTF(color, const str[], define)
{
new tmpbuf2[150];
format(tmpbuf2, sizeof(tmpbuf2), str, define);
SendClientMessageToAll(color, tmpbuf2);
}
Any ideas?
AW: argument type mismatch -
CutX - 01.08.2013
no fix for your problem, but here's a better solution. Define these in your Script
Код:
new str8hgn86[150];
#define SFM(%0,%1,%2,%3) format(str8hgn86, sizeof(str8hgn86),%2,%3) && SendClientMessage(%0, %1, str8hgn86)
#define SFMA(%1,%2,%3) format(str8hgn86, sizeof(str8hgn86),%2,%3) && SendClientMessageToAll(%1, str8hgn86)
now you can use SFM(playerid,color,message,params); and SFMA(color,message,params); for all players
Re: argument type mismatch -
dEcooR - 01.08.2013
Oh lol i thought same that it cant be fixed okay dude ty