invalid function or declaration
#1

pawn Код:
new pInfo[MAX_PLAYERS][PlayerInfo];
enum PlayerInfo
{
    Pass[129], //User's password
    Adminlevel, //User's admin level
    VIPlevel, //User's vip level
    Money, //User's money
    Scores, //User's scores
    Kills, //User's kills
    Skin, //User's Skin
    Deaths //User's deaths
}

CMD:stats(playerid, params[]);

    new id;
    sscanf(params, "u", id);
    if (isnull(params))
    {
        ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, "%s", "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(playerid),GetPlayerMoney(playerid),pInfo[playerid][Kills],pInfo[playerid][Deaths] "Close", "");
        else if(IsPlayerConnected(id))
        {
        ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, "%s", "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(id),GetPlayerMoney(id),pInfo[id][Kills],pInfo[id][Deaths] "Close", "");
        }
        else return SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");
    }
I'm trying to make a /stats command, and I always get this error. What is the problem?
Reply


Messages In This Thread
invalid function or declaration - by Axey187 - 01.01.2015, 23:10
Re: invalid function or declaration - by AndySedeyn - 01.01.2015, 23:14
Re: invalid function or declaration - by Axey187 - 01.01.2015, 23:16
Re: invalid function or declaration - by Axey187 - 01.01.2015, 23:19
Re: invalid function or declaration - by AndySedeyn - 01.01.2015, 23:20
Re: invalid function or declaration - by Boot - 01.01.2015, 23:24
Re: invalid function or declaration - by Axey187 - 01.01.2015, 23:26
Re: invalid function or declaration - by Boot - 01.01.2015, 23:31
Re: invalid function or declaration - by AndySedeyn - 01.01.2015, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)