What is wrong with this stock?
#1

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;
}
Each time I use it, it says
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);
Reply


Messages In This Thread
What is wrong with this stock? - by TheBetaFox - 11.08.2011, 21:37
Re: What is wrong with this stock? - by Backwardsman97 - 11.08.2011, 21:47
Re: What is wrong with this stock? - by TheBetaFox - 11.08.2011, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)