What's wrong with this line?
#1

LINE:
Код:
	  if(!IsPlayerAdmin(playerid)||PlayerInfo[playerid][AdminLevel]<5)return SendClientMessage(playerid,0xFF0000FF,"You're not authorized to use that command");

ERRORS:
Quote:

C:\Users\Administrator\Desktop\KITTENTEST\gamemode s\greekfr.pwn(639) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Users\Administrator\Desktop\KITTENTEST\gamemode s\greekfr.pwn(639) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\KITTENTEST\gamemode s\greekfr.pwn(639) : error 001: expected token: ";", but found "]"
C:\Users\Administrator\Desktop\KITTENTEST\gamemode s\greekfr.pwn(639) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\KITTENTEST\gamemode s\greekfr.pwn(639) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

ENUM PLAYERINFO
Quote:

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]; /*This will create a new variable so we can later use it to saving/loading user's info.*/

Reply


Messages In This Thread
What's wrong with this line? - by Gogorakis - 14.08.2014, 00:48
Re: What's wrong with this line? - by Jefff - 14.08.2014, 00:52
Re: What's wrong with this line? - by Pottus - 14.08.2014, 00:53
Re: What's wrong with this line? - by Gogorakis - 14.08.2014, 01:04
Re: What's wrong with this line? - by billy123321 - 14.08.2014, 01:24
Re: What's wrong with this line? - by Pottus - 14.08.2014, 01:24

Forum Jump:


Users browsing this thread: 1 Guest(s)