error 035: argument type mismatch (argument 2) - 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 035: argument type mismatch (argument 2) (
/showthread.php?tid=458968)
error 035: argument type mismatch (argument 2) -
Admin22 - 19.08.2013
CMD:tp(playerid, params[])
{
new int, Float: x, Float: y, Float: z;
if(sscanf(params, "dfff", int, x, y, z))
return SendClientMessage(playerid, "SYNTAX: /tp [int] [x] [y] [z]"); [this line]
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, int);
return 1;
}
Re: error 035: argument type mismatch (argument 2) -
Edix - 19.08.2013
https://sampwiki.blast.hk/wiki/SendClientMessage
You forgot to add the "color" argument.
Re: error 035: argument type mismatch (argument 2) -
HyDrAtIc - 19.08.2013
You must add the color for the text.
As an example, if you want red color, add this on the top of your script:
pawn Код:
#define COLOR_RED 0xAA3333AA
And, make your command like this:
pawn Код:
CMD:tp(playerid, params[])
{
new int, Float: x, Float: y, Float: z;
if(sscanf(params, "dfff", int, x, y, z))
return SendClientMessage(playerid, COLOR_RED, "SYNTAX: /tp [int] [x] [y] [z]");
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, int);
return 1;
}