14.02.2015, 16:25
Hey guys
Basically, I done this:
and I get this error:
What did I do wrong and how do I fix it? ;/ Cheers!
Basically, I done this:
Код:
new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File, "Player Data"); INI_WriteInt(File, "Admin", pInfo[playerid][Admin]); INI_WriteInt(File, "Level", pInfo[playerid][Level]); INI_WriteInt(File, "Skin", GetPlayerSkin(playerid)); INI_WriteInt(File, "Exp", pInfo[playerid][Exp]); INI_WriteInt(File, "CurExp", pInfo[playerid][CurExp]); INI_WriteInt(File, "Gender", pInfo[playerid][Gender]); INI_WriteInt(File, "Registered", pInfo[playerid][Registered]); INI_WriteInt(File, "HandMoney", GetPlayerMoney(playerid)); INI_WriteInt(File, "BankMoney", pInfo[playerid][BankMoney]); INI_WriteInt(File, "Faction", PlayerInfo[playerid][Faction]); <--- LINE 351 INI_WriteInt(File, "Facrank", PlayerInfo[playerid][Facrank]); INI_WriteInt(File, "Facleader", PlayerInfo[playerid][Facleader]);
Код:
C:\Users\Gabriel\Desktop\Prison\gamemodes\ComptonRP.pwn(351) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo" C:\Users\Gabriel\Desktop\Prison\gamemodes\ComptonRP.pwn(351) : warning 215: expression has no effect C:\Users\Gabriel\Desktop\Prison\gamemodes\ComptonRP.pwn(351) : error 001: expected token: ";", but found "]" C:\Users\Gabriel\Desktop\Prison\gamemodes\ComptonRP.pwn(351) : error 029: invalid expression, assumed zero C:\Users\Gabriel\Desktop\Prison\gamemodes\ComptonRP.pwn(351) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.