[Ajuda] Ajuda (unknown command)
#2

Faзa um debug:
pawn Code:
if(strcmp(cmd,"/vencimento",true)==0 ) {

    if ( IsPlayerVIP(playerid) ) {
    SendClientMessage(playerid, -1, "verificou que sou vip");
    new StringCat[256];

    new diaV, mesV, anoV, horaV, minutoV, segundoV;

    format(Str, sizeof(Str), "/Vips/%s.ini", PlayerName(playerid) );
    SendClientMessage(playerid, -1, str);
    TimestampToDate(dini_Int(Str, "Vencimento"), anoV, mesV, diaV, horaV, minutoV, segundoV, 0);

    format(Str, sizeof(Str), "{00FFFF}Nick: {FFFFFF}%s[{00FFFF}%d{FFFFFF}]\n\n", PlayerName(playerid), playerid);
    SendClientMessage(playerid, -1, str);
    strcat(StringCat, Str);
    format(Str, sizeof(Str), "{00FFFF}Vencimento: {FFFFFF}%02d/%02d/%02d %02d:%02d:%02d \n\n", diaV, mesV, anoV, horaV, minutoV, segundoV);
    SendClientMessage(playerid, -1, str);
    strcat(StringCat, Str);
    strcat(StringCat, "Aproveite o seu VIP atй o ъltimo minuto!\n");

    ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_MSGBOX, "{FF0000}Vencimento", StringCat, "Fechar", #);
    return 1;
    }
    else
    return SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo tem permissгo!");
    }
Se vocк nгo ver erro neste debug, faзa o mesmo com a funзгo IsPlayerVIP.
Reply


Messages In This Thread
Ajuda (unknown command) - by GuiLopez - 31.10.2018, 22:47
Re: Ajuda (unknown command) - by Ermanhaut - 01.11.2018, 00:17
Re: Ajuda (unknown command) - by GuiLopez - 01.11.2018, 01:46
Re: Ajuda (unknown command) - by [BOPE]Seu._.Madruga - 01.11.2018, 02:00
Re: Ajuda (unknown command) - by GuiLopez - 01.11.2018, 02:29
Re: Ajuda (unknown command) - by ipsLuan - 01.11.2018, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)