Stock problem, or maybe arguments problem
#9

Ignore the stocks
pawn Код:
CMD:stats(playerid,params[])
{
    new string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new score = GetPlayerScore(playerid);
    new cash = GetPlayerMoney(playerid);
    new kills = pInfo[playerid][Kills]; //This line
    new deaths = pInfo[playerid][Deaths]; //This line
    format(string,sizeof(string), "Name: %s\nCurrent ID: %d\nScore: %i\nCash: $%d\nKills: %i\nDeaths: %i", name, playerid, score, cash, kills, deaths);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Your stats", string, "OK", "");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)