problem with goto
#1

im using sscanf + zcmd and when i do /goto it says unknown cmd, SCRIPT!
pawn Код:
COMMAND:goto(playerid, params[])
{
    if(PlayerData[playerid][IsAdmin])
    {
        new id, Float: Pos[3];
        if(sscanf(params, "ui", id)) return SendClientMessage(playerid, 0xFF9900AA, "USAGE: /goto [id]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "That user is not connected.");
        SendClientMessage(playerid, 0xFF9900AA, "You have teleported to that player!");
        SendClientMessage(id, 0xFF9900AA, "An admin has teleported to you!");
        return
        GetPlayerPos(id,Pos[0],Pos[1],Pos[2]);
        SetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);

    }
    else return SendClientMessage(playerid,0xFF0000FF, "ERROR: You admin level isn't high enough!");
}
Reply


Messages In This Thread
problem with goto - by tanush - 02.03.2011, 20:14
Re: problem with goto - by Antonio [G-RP] - 02.03.2011, 20:58
Re: problem with goto - by Steven82 - 02.03.2011, 21:05
Re: problem with goto - by Antonio [G-RP] - 02.03.2011, 21:07
Re: problem with goto - by tanush - 02.03.2011, 21:16
Re: problem with goto - by tanush - 02.03.2011, 21:20
Re: problem with goto - by admantis - 02.03.2011, 21:45
Re: problem with goto - by tanush - 02.03.2011, 21:53
Re: problem with goto - by Antonio [G-RP] - 02.03.2011, 21:55

Forum Jump:


Users browsing this thread: 2 Guest(s)