[AJUDA]Cod. Fail/Bug
#9

Quote:
Originally Posted by Pharrel
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/rp", true) == 0)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    if(pAdmin[playerid] >=1)
    {
        new tmp[256];
        new plid;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, Vermelho, "{0099FF}(~){CCCCFF}Use: /rp [playerid]!");
    }
    else return SendClientMessage(playerid, -1, "Sem authorizaзгo");
    plid = strval(tmp);
    if(IsPlayerConnected(plid))
    {
        new vid;
        vid = GetPlayerVehicleID(plid);
        SetVehicleToRespawn(vid);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(plid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{0099FF}(~)AdmCmd(~) - {CCCCFF} %s (%d) deu respawn no seu carro !", aname,playerid);
        SendClientMessage(plid,outraadm, string);
        SendClientMessage(playerid, Verde, "{0099FF}(~){CCCCFF} Comando efetuado com sucesso!");
        return 1;
    }
    else SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} ID invбlido");
    return 1;
}
tinha mais uma chave escondida
Noss, aja paciencia pra isso O_O'

pawn Код:
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6822) : warning 203: symbol is never used: "plid"
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6827) : error 017: undefined symbol "plid"
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6827) : error 017: undefined symbol "tmp"
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6828) : error 017: undefined symbol "plid"
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6831) : error 017: undefined symbol "plid"
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6834) : error 017: undefined symbol "plid"
C:\Users\Vitor\Desktop\Servidor\gamemodes\GM.pwn(6836) : error 017: undefined symbol "plid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
~6822 - new plid;
6827 - plid = strval(tmp);
6828 - if(IsPlayerConnected(plid))
6831 - vid = GetPlayerVehicleID(plid);
6834 - GetPlayerName(plid, pname, MAX_PLAYER_NAME);
6836 - SendClientMessage(plid,outraadm, string);
Reply


Messages In This Thread
[AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:25
Re: [AJUDA]Cod. Fail/Bug - by Mteck - 10.11.2011, 22:33
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:36
Re: [AJUDA]Cod. Fail/Bug - by steki. - 10.11.2011, 22:37
Re: [AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:38
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:40
Re: [AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:41
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:45
Re: [AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:51
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:54

Forum Jump:


Users browsing this thread: 2 Guest(s)