[Ajuda] Sistema de Status
#1

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
Reply
#2

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

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;
    }
Reply
#4

Vlw !

nгo prestei atenзгo fuck me auhsuahsu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)