13.09.2014, 09:40
I have an error with my /stats command, can someone help me!
Command :
Enums:
Код:
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(431) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo" C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(431) : warning 215: expression has no effect C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(431) : error 001: expected token: ";", but found "]" C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(431) : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(431) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Quote:
CMD ![]() { if(IsPlayerConnected(playerid)) { new money = PlayerInfo[playerid][pMoney]; // Line 431! new levels = PlayerInfo[playerid][pLevels]; new admin = PlayerInfo[playerid][pAdmin]; new string[500]; format(string,sizeof(string),"Money: %d | Levels: %d | Admin: %d | ",money,levels,admin,); SendClientMessage(playerid,COLOR_WHITE,string); return 1; } |
Код:
enum PlayerInfo { Pass[129], pAdmin, pMod, pMoney, pLevels }