[Ajuda] Format / Comando
#1

Algo estб mal com o meu cуdigo, ainda nгo percebi o quк ... alguйm me pode ajudar ?
Em vez de aparecer o nome do player aparece uma coisa um pouco estranha ahah
Nгo sei o que se passa ...

PHP код:
CMD:vencimento(playerid)
{
    if ( !
IsPlayerVIP(playerid)) return SendClientMessage(playerid, Default, "| ERRO | {FFFFFF}Vocк nгo й VIP.");
    new 
Str[1028], Name[24];
    
GetPlayerName(playeridName24);
    
format Strsizeof Str"{FFFFFF}Conta VIP: %s \n\n Vencimento: %d dias"GetExpirationDays(playerid),  Name);
    
ShowPlayerDialog(playerid775+1DIALOG_STYLE_MSGBOX"{FFFFFF}Vencimento VIP "Str"Fechar""");
    return 
1;

Aparece isto :

Reply
#2

pawn Код:
CMD:vencimento(playerid)
{
    if ( !IsPlayerVIP(playerid)) return SendClientMessage(playerid, Default, "| ERRO | {FFFFFF}Vocк nгo й VIP.");
    new Str[100], Name[24];
    GetPlayerName(playerid, Name, 24);
    format ( Str, sizeof Str, "{FFFFFF}Conta VIP: %s \n\n Vencimento: %d dias", Name, GetExpirationDays(playerid));
    ShowPlayerDialog(playerid, 775+1, DIALOG_STYLE_MSGBOX, "{FFFFFF}Vencimento VIP ", Str, "Fechar", "");
    return 1;
}
Para que entenda: estava invertido Name e GetExpirationDays(playerid).
Reply
#3

Percebi ! Obrigado pela ajuda ^^ +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)