[AJUDA]Comando
#7

Quote:
Originally Posted by Feranda Lima
Посмотреть сообщение
PHP код:
if(strcmp(cmd"/irpos"true) == 0)
        {
            if(
PlayerInfo[playerid][pAdmin] >= 1)
            {
                new 
Float:X,Float:Y,Float:Z;
                if(
sscanf(params,"fff",X,Y,Z)) return SendClientMessage(playerid,-1,"Use /ircordenada [X][Y][Z]");
                
SetPlayerPos(playerid,X,Y,Z);
                return 
1;
            }
        } 
`

undefinide simbol params

Isto deve resolver o seu problema .


pawn Код:
if(strcmp(cmd, "/irpos", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new Float:Coordenada[3];
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) return SendClientMessage(playerid,-1,"Use /irpos [X][Y][Z]");
            Coordenada[0] = floatstr(tmp);
            if(!strlen(tmp)) return SendClientMessage(playerid,-1,"Use /irpos [X][Y][Z]");
            Coordenada[1] = floatstr(tmp);
            if(!strlen(tmp)) return SendClientMessage(playerid,-1,"Use /irpos [X][Y][Z]");
            Coordenada[2] = floatstr(tmp);
            SetPlayerPos(playerid,Coordenada[0],Coordenada[1],Coordenada[2]);
            SendClientMessage(playerid, 0x33CCFFAA, "[Server Info] Vocк foi atй as coordenadas indicadas !");
        }
        return true;
    }


Espero ter ajudado .
Reply


Messages In This Thread
[AJUDA]Comando - by lincon c - 02.11.2011, 15:19
Re: [AJUDA]Comando - by Dolby - 02.11.2011, 15:20
Re: [AJUDA]Comando - by lincon c - 02.11.2011, 15:22
Re: [AJUDA]Comando - by Dolby - 02.11.2011, 15:41
Re: [AJUDA]Comando - by Dolby - 02.11.2011, 15:57
Re: [AJUDA]Comando - by MatriXBorn - 02.11.2011, 16:01
Re: [AJUDA]Comando - by rjjj - 02.11.2011, 16:02
Re: [AJUDA]Comando - by MatriXBorn - 02.11.2011, 16:08
Re: [AJUDA]Comando - by Dolby - 02.11.2011, 16:09
Re: [AJUDA]Comando - by whiXґ - 02.11.2011, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)