[Ajuda] cmd /darvip
#5

Quote:
Originally Posted by rjjj
Посмотреть сообщение
Faltou uma chave no par do primeiro else .


Troque seu comando por este :


pawn Код:
if(strcmp(cmd, "/darvip", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))    return SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [ id ] [ Nivel ]");
        new plo = ReturnUser(tmp);
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))    return SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [ id ] [ Nivel ]");
        new nivel = strval(tmp);
        if(!IsPlayerConnected(plo)) return SendClientMessage(playerid, COLOR_GRAD1, "O jogador nгo estб conectado.");
        if(admtrampando[playerid] < 1)  return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/jogar)");
        if(PlayerInfo[playerid][pAdmin] < 1338)    return SendClientMessage(playerid, COLOR_GRAD1, "Voce nгo esta autorizado a usar este comando!");
        new NickName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
        new vipnome[MAX_PLAYER_NAME];
        GetPlayerName(giveplayerid,vipnome,sizeof(vipnome));
        PlayerInfo[giveplayerid][pVIP] = nivel;
        new year, month,day;
        getdate(year, month, day);
        new hour, minute;
        gettime(hour,minute);
        format(string, sizeof(string), "%s deu vip ao %s nнvel %d ( %d/%d/%d - %d:%d)",NickName,vipnome,nivel,year, month, day,hour, minute);
        VipsLog(string);
        ABroadCast(COLOR_LIGHTRED,string,1);
        return 1;
    }


Espero ter ajudado .
kkkkkk tbm desconfiava disso mas eu contava e recontava e dava a msm coisa.

vlw
Reply


Messages In This Thread
[Ajuda] cmd /darvip - by mau.tito - 05.05.2012, 11:31
Re: [Ajuda] cmd /darvip - by Delete_ - 05.05.2012, 12:24
Re: [Ajuda] cmd /darvip - by rjjj - 05.05.2012, 13:28
Re: [Ajuda] cmd /darvip - by Delete_ - 05.05.2012, 13:39
Re: [Ajuda] cmd /darvip - by mau.tito - 05.05.2012, 14:04
Re: [Ajuda] cmd /darvip - by paulor - 05.05.2012, 17:52
Re: [Ajuda] cmd /darvip - by Don_Speed - 05.05.2012, 18:12
Re: [Ajuda] cmd /darvip - by mau.tito - 05.05.2012, 19:21

Forum Jump:


Users browsing this thread: 4 Guest(s)