[Ajuda] Format / Comando - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Format / Comando (
/showthread.php?tid=531285)
Format / Comando -
Nenzittow - 11.08.2014
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(playerid, Name, 24);
format ( Str, sizeof Str, "{FFFFFF}Conta VIP: %s \n\n Vencimento: %d dias", GetExpirationDays(playerid), Name);
ShowPlayerDialog(playerid, 775+1, DIALOG_STYLE_MSGBOX, "{FFFFFF}Vencimento VIP ", Str, "Fechar", "");
return 1;
}
Aparece isto :
Re: Format / Comando -
Bruno13 - 11.08.2014
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).
Re: Format / Comando -
Nenzittow - 11.08.2014
Percebi ! Obrigado pela ajuda ^^
+REP