Error Need Help
#1

Hey guys
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]);
and I get this error:

Код:
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.
What did I do wrong and how do I fix it? ;/ Cheers!
Reply
#2

change this too

INI_WriteInt(File, "Faction", pInfo[playerid][Faction]);
INI_WriteInt(File, "Facrank", pInfo[playerid][Facrank]);
INI_WriteInt(File, "Facleader", pInfo[playerid][Facleader]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)