31.10.2018, 22:47
O comando em si funciona bem, porйm sу funciona quando o player estб com um certo tempo de VIP, se ele tiver muito tempo e dar o comando /vencimento o comando nгo funciona e й retornado unknown command
nгo me julguem por ainda usar dini kk
nгo me julguem por ainda usar dini kk
Code:
if(strcmp(cmd,"/vencimento",true)==0 ) {
if ( IsPlayerVIP(playerid) ) {
new StringCat[256];
new diaV, mesV, anoV, horaV, minutoV, segundoV;
format(Str, sizeof(Str), "/Vips/%s.ini", PlayerName(playerid) );
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);
strcat(StringCat, Str);
format(Str, sizeof(Str), "{00FFFF}Vencimento: {FFFFFF}%02d/%02d/%02d %02d:%02d:%02d \n\n", diaV, mesV, anoV, horaV, minutoV, segundoV);
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!");
}


