What is wrong in STATS Command?
#1

Hello, Im making a /STATS Command but its not work given me some errors... how to fix it

ERRORS:

Код:
error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Код:
CMD:stats(playerid, parms[])
{
  if(IsPlayerConnected(playerid))
  {
	new admin = PlayerInfo[playerid][pAdminLevel];
	new VIP = PlayerInfo[playerid][pVIPLevel];
	new money = PlayerInfo[playerid][pMoney];
	new score = PlayerInfo[playerid][pScore];
	new Deaths = PlayerInfo[playerid][pDeaths];
	new Kills = PlayerInfo[playerid][pKills];
	new Cookies = PlayerInfo[playerid][pCookies];
	format(string1,sizeof string1, "{2BFF00}Admin: {FFFFFF}[$%d] |- {2BFF00}V.I.P: {FFFFFF}[$%d] |- {2BFF00}Money: {FFFFFF}[$%d] |- {2BFF00}Score: {FFFFFF}[%d] |- {2BFF00}Deaths: {FFFFFF}[%d] |- {2BFF00}Kills: {FFFFFF}[%d] |- {2BFF00}Cookies: {FFFFFF}[%d]", admin,vip,money,score,deaths,kills,cookies);
	format(stats,sizeof stats, "%s", string1);
	ShowPlayerDialog(playerid,998,DIALOG_STYLE_MSGBOX,"{01B6F7}ACCOUNT STATS{F5F5F5}:",stats,"OK","");
  }
  return 1;
}
Here the enum
PHP код:
enum PlayerInfo
{
    
Pass[129],
    
Adminlevel,
    
VIPlevel,
    
Money,
    
Scores,
    
Kills,
    
Cookies,
    
Deaths
}
//News
new pInfo[MAX_PLAYERS][PlayerInfo]; 
Reply


Messages In This Thread
What is wrong in STATS Command? - by Thanks - 27.02.2017, 11:10
Re: What is wrong in STATS Command? - by Eoussama - 27.02.2017, 11:30
Re: What is wrong in STATS Command? - by iLearner - 27.02.2017, 11:48
Re: What is wrong in STATS Command? - by haikalbintang - 28.02.2017, 16:38
Respuesta: What is wrong in STATS Command? - by Eloy - 28.02.2017, 17:20
Re: What is wrong in STATS Command? - by GoldenLion - 28.02.2017, 17:44
Re: What is wrong in STATS Command? - by iLearner - 02.03.2017, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)