invalid function or declaration
#6

Could you please try this code:

pawn Код:
CMD:stats(playerid, params[])
{
    new id, pName[MAX_PLAYER_NAME], Dialog[500];
   
    if(sscanf(params, "u", id))
    {
    GetPlayerName(playerid, pName, sizeof(pName));
    format(Dialog, sizeof(Dialog), "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d", pName, GetPlayerMoney(playerid),pInfo[playerid][Kills],pInfo[playerid][Deaths]);    
    ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, pName, Dialog, "Close", "");
    return 1;
    }    
    if(!IsPlayerConnected(id)) return GameTextForPlayer(playerid, "~g~Player disconnected", 3000, 3);
   
    GetPlayerName(id, pName, sizeof(pName));  
    format(Dialog, sizeof(Dialog), "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d", pName, GetPlayerMoney(id), pInfo[id][Kills], pInfo[id][Deaths]);
    ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, pName, Dialog, "Close", "");
    return 1;
}
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: 2 Guest(s)