Commands only show USAGE - HELP REQUESTED
#4

Quote:
Originally Posted by Sewayne
Посмотреть сообщение
It still doesnt work, I get the same error
Your code seems fine, I haven't found any error, but at least try this code
pawn Код:
CMD:goto(playerid, params[])
{
    new
        targetid, string[50], Float:Positions[3];

    if(sscanf(params, "u", targetid))
        return SendClientMessage(playerid, COLOR_ERROR, "Usage: /goto (ID)");

    if(!IsPlayerConnected(targetid))
        return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");

    GetPlayerPos( targetid, Positions[0], Positions[1], Positions[2] ), SetPlayerPos( playerid, Positions[0], Positions[1], Positions[2] ),
    SetPlayerInterior( playerid, GetPlayerInterior(targetid) ), SetPlayerVirtualWorld( playerid, GetPlayerVirtualWorld(targetid) );

    format(string, sizeof(string), "You have teleported to %s", PlayerInfo(targetid));
    SendClientMessage(playerid, COLOR_ADMIN, string);
    return true;
}
Reply


Messages In This Thread
Commands only show USAGE - HELP REQUESTED - by Sewayne - 27.10.2013, 19:56
Re: Commands only show USAGE - HELP REQUESTED - by Tagathron - 27.10.2013, 20:01
Re: Commands only show USAGE - HELP REQUESTED - by Sewayne - 27.10.2013, 20:24
Re: Commands only show USAGE - HELP REQUESTED - by Patrick - 27.10.2013, 20:31
Re: Commands only show USAGE - HELP REQUESTED - by Pottus - 27.10.2013, 20:47
Re: Commands only show USAGE - HELP REQUESTED - by Tagathron - 27.10.2013, 20:55
Re: Commands only show USAGE - HELP REQUESTED - by Pottus - 27.10.2013, 21:00
Re: Commands only show USAGE - HELP REQUESTED - by Sewayne - 27.10.2013, 21:01
Re: Commands only show USAGE - HELP REQUESTED - by Tagathron - 27.10.2013, 21:09
Re: Commands only show USAGE - HELP REQUESTED - by Sewayne - 27.10.2013, 21:19

Forum Jump:


Users browsing this thread: 2 Guest(s)