id, gun id
#3

i get lots of undefinded errors, can somebody add weapon script please?

here is my script:

pawn Код:
new idx;
    new ids;
        new tmp[128];
        new string[128];
        tmp = otherplayerids(params, idx);
        ids = strval(tmp);
       
dcmd_pvp(playerid,params[])
{
        new tmp[128];
        new string[128];
        tmp = otherplayerids(params, idx);
        id = strval(tmp);
        if(InvitedDuel[playerid] == true) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : Voce^ Ja' Convidou alguйm,Aguarde Expirar o Convite");
        if(ArenaUsada == true) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : No momento a Arena esta' Sendo Usada");
        if(!strlen(tmp)) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : Voce^ deve digitar os ID do Player seguindo a Maneira (/duelo-run [playerid])");
        if(id == playerid) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : Voce^ na~o pode convidar a Si-Mesmo");
        if(InvitedDuel[id] == true) return SendClientMessage(playerid,0xF41917AA,"»»[DUELO]«« : No Momento o Player esta' em um Duelo, Aguarde..");
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "»»[DUELO]«« : %s esta lhe convidando  para um \n Duelo Leve (Clique Aceitar para Aceitar)",name);
        ShowPlayerDialog(id,DIALOG_DUELO,DIALOG_STYLE_MSGBOX,"»»[DUELO]«« :",string,"Aceitar", "Recusar");
        GameTextForPlayer(id,"~r~DUE~w~LO !", 2500, 3);
        InvitedDuel[id] = true;
        IdDuel[id] = playerid;
        SetTimerEx("LimparDuelo",15000,false,"ii",id,playerid);
        return 1;
    }
Reply


Messages In This Thread
simple command, to dcmd, help - by jaksimaksi - 25.01.2011, 18:05
Re: id, gun id - by Sasino97 - 25.01.2011, 18:17
Re: id, gun id - by jaksimaksi - 25.01.2011, 19:14
Re: id, gun id - by Sasino97 - 25.01.2011, 19:35
Re: id, gun id - by jaksimaksi - 26.01.2011, 08:55

Forum Jump:


Users browsing this thread: 1 Guest(s)