SA-MP Forums Archive
[Ajuda] Sistema de Status - 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] Sistema de Status (/showthread.php?tid=333734)



[Ajuda] Sistema de Status - Lucas_HenryK - 12.04.2012

Eu criei um comando /satatus, mais quando eu entro no server e digito /status o server reinicia, e estб danod uma warning, e nгo consigo resolver. help-me please!

Code:

pawn Код:
CMD:status(playerid,params[])
    {
    new string[256],name[24];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"Nick: %s\nScore: %d\nDinheiro: %d\nMatou: %d\nMorreu: %d\n",name,GetPlayerScore(playerid),GetPlayerMoney(playerid),Matou[playerid],Morreu[playerid]);
    ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX,"{FFFFFF}Player Status:", string, "Fechar"); // Linha 343
    return 1;
    }
Warning:

pawn Код:
C:\Documents and Settings\Lucas\Desktop\SAMP\gamemodes\GM.pwn(343) : warning 202: number of arguments does not match definition



Re: [Ajuda] Sistema de Status - zbt - 12.04.2012

troque
pawn Код:
string, "Fechar");
por
pawn Код:
string, "Fechar" , "");



Re: [Ajuda] Sistema de Status - CidadeNovaRP - 12.04.2012

Quote:
Originally Posted by Lucas_HenryK
Посмотреть сообщение
Eu criei um comando /satatus, mais quando eu entro no server e digito /status o server reinicia, e estб danod uma warning, e nгo consigo resolver. help-me please!

Code:

pawn Код:
CMD:status(playerid,params[])
    {
    new string[256],name[24];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"Nick: %s\nScore: %d\nDinheiro: %d\nMatou: %d\nMorreu: %d\n",name,GetPlayerScore(playerid),GetPlayerMoney(playerid),Matou[playerid],Morreu[playerid]);
    ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX,"{FFFFFF}Player Status:", string, "Fechar"); // Linha 343
    return 1;
    }
Warning:

pawn Код:
C:\Documents and Settings\Lucas\Desktop\SAMP\gamemodes\GM.pwn(343) : warning 202: number of arguments does not match definition
pawn Код:
CMD:status(playerid,params[])
    {
    new string[256],name[24];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"Nick: %s\nScore: %d\nDinheiro: %d\nMatou: %d\nMorreu: %d\n",name,GetPlayerScore(playerid),GetPlayerMoney(playerid),Matou[playerid],Morreu[playerid]);
    ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX,"{FFFFFF}Player Status:", string, "Fechar" , " "); // Linha 343
    return 1;
    }



Re: [Ajuda] Sistema de Status - Lucas_HenryK - 12.04.2012

Vlw !

nгo prestei atenзгo fuck me auhsuahsu