Quote:
Originally Posted by Konstantinos
"PlayerInfo" is the name of the enum, not of the array. So use the name of the array. An example:
pawn Код:
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 Deaths //User's deaths };
new pInfo[MAX_PLAYERS][PlayerInfo];
and you use this instead:
pawn Код:
CMD:stats(playerid, params[]) { new string[128]; format(string, sizeof(string), "Name: %s | ID: %d | Score: %d | Kills: %i | Deaths: %i | Money: %d | Adminlevel: %d", GetName(playerid), playerid, GetPlayerScore(playerid), pInfo[playerid][Kills], pInfo[playerid][Deaths], GetPlayerMoney(playerid), pInfo[playerid][Adminlevel]); SendClientMessage(playerid, -1, string); return 1; }
|
Works, thank you! really apprciate it.