SA-MP Forums Archive
warning 202: number of arguments does not match definition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=522687)



warning 202: number of arguments does not match definition - Slicebook - 28.06.2014

Help please!
Код:
dcmd_stats(playerid,params[]) {
    new string2[500], pDeaths, player1;
        new string3[128], player2, h, m, s;
    new string1[128];
    if(!strlen(params)) player1 = playerid;
    else player1 = strval(params);
 
    if(IsPlayerConnected(player1)) {
        TotalGameTime(player1, h, m, s);
         if(GetPVarInt(player1, "Deaths") == 0) pDeaths = 1; else pDeaths = GetPVarInt(player1, "Deaths");
        format(string1, sizeof(string1), " {ff0000}%s {00ff00}Statisztikбja  ",PlayerName2(player1));
        format(string2, sizeof(string2), "{ffff00}Цlйsek:{00ff00} %d \n{ffff00}Halбlok:{00ff00} %d \n{ffff00}nArбny:{00ff00} %0.2f \n{ffff00}Pйnz:{00ff00} %d$", GetPVarInt(player1,"Kills"), GetPVarInt(player1,"Deaths"), Float:GetPVarInt(player1,"Kills")/Float:pDeaths,GetPlayerMoney(player1));
        format(string3, sizeof(string3), "{ffff00}Pont: {00ff00}%d \n{ffff00}Szerveren eltцltцtt idő:{00ff00} %d : %d : %d",GetPlayerScore(player2), h, m, s);
 WARNING>>>        return ShowPlayerDialog(playerid,991,DIALOG_STYLE_MSGBOX, "Statisztika:", string1, string2, string3,"Ok","Kilйp");
    } else return ShowPlayerDialog(playerid,990,DIALOG_STYLE_MSGBOX, "", "{ff0000}A jбtйkos nincs csatlakoztatva!","Ok","Kilйp");
}



Re: warning 202: number of arguments does not match definition - Jimmy0wns - 28.06.2014

What line is the error on?


Re: warning 202: number of arguments does not match definition - Slicebook - 28.06.2014

I fixed , thanks