error 035: argument type mismatch (argument 2)
#1

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;
}
Reply
#2

https://sampwiki.blast.hk/wiki/SendClientMessage

You forgot to add the "color" argument.
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)