Goto command with sscanf, zcmd
#6

Quote:
Originally Posted by timaoux
View Post
C:\Users\maxime\Desktop\cmdclan.pwn(97) : error 017: undefined symbol "command"
C:\Users\maxime\Desktop\cmdclan.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\maxime\Desktop\cmdclan.pwn(100) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
PHP Code:
CMD:goto(playeridparams[])
{
     if(
IsPlayerAdmin(playerid))
     {
        new 
ID;
        new 
Str[64];
        if(
sscanf(params"u"ID)) SendClientMessage(playeridCOLOR_GREY"USAGE: /goto [playerid]");
        else if(
IsPlayerConnected(ID) == 0SendClientMessage(playeridCOLOR_GREY"Player is not connected!");
        else
        {
            new 
Float:xFloat:yFloat:z;
            
GetPlayerPos(IDxyz);
            
SetPlayerPos(playeridx+1y+1z);
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use that command!");
    }
    return 
1;

Reply


Messages In This Thread
Goto command with sscanf, zcmd - by PlayerID - 31.12.2010, 14:53
Re: Goto command with sscanf, zcmd - by HyperZ - 31.12.2010, 14:57
Re: Goto command with sscanf, zcmd - by PlayerID - 31.12.2010, 14:59
Re: Goto command with sscanf, zcmd - by HyperZ - 31.12.2010, 15:00
Re : Goto command with sscanf, zcmd - by timaoux - 30.07.2011, 22:43
Re: Re : Goto command with sscanf, zcmd - by Kush - 30.07.2011, 22:47

Forum Jump:


Users browsing this thread: 3 Guest(s)