11.08.2011, 21:37
pawn Код:
stock SetAwesomePos(playerid, telecmd, telename, X, Y, Z)
{
new nameg[MAX_PLAYER_NAME], string[128 + MAX_PLAYER_NAME];
GetPlayerName(playerid, nameg, sizeof(nameg));
format(string, sizeof(string), ""#COL_RED"** "#COL_ORANGE"%s "#COL_YELLOW"has teleported to /%s. ( %s )", nameg, telecmd, telename);
SendClientMessageToAll(-1, string);
SetPlayerPos(playerid, X, Y, Z);
return 1;
}
argument type mismatch (argument 2)
I've only used argument 2 (telecmd) as a string. (such as "blahblah". I also did it without the / using "/blahblah".) What's the problem?
Example of my use:
pawn Код:
SetAwesomePos(playerid, "freeroam 32", "a Freeroam teleport", 1941.1532,2117.0420,10.2378);