Y_ini error
#1

Errors while trying to switch my gm to Y_ini data system, and yes i have a PlayerInfo enum. (Ignore the large spaces, i will fix them later)

Код:
forward OnPlayerINI(playerid);
public OnPlayerINI(playerid)
{
				new INI:File = INI_Open(UserPath(playerid));
				INI_SetTag(File,"data");
				INI_WriteString(File, "Key=%s",PlayerInfo[playerid][pKey]);
				INI_WriteString(File, "IP",PlayerInfo[playerid][pIP]);
				INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
				INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]);
				INI_WriteInt(File,"Band",PlayerInfo[playerid][pBanned]);
				INI_WriteInt(File,"PermBand",PlayerInfo[playerid][pPermaBanned]);
				INI_WriteInt(File,"Warnings",PlayerInfo[playerid][pWarns]);
				INI_WriteInt(File,"Disabled",PlayerInfo[playerid][pDisabled]);	
				//INI_WriteInt(File,"PVehiclesLoaded",PlayerInfo[playerid][PVehiclesLoaded]);
				INI_WriteInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]);				
				INI_WriteInt(File,"BanAppealer",PlayerInfo[playerid][pBanAppealer]);
				INI_WriteInt(File,"ShopTech",PlayerInfo[playerid][pShopTech]);
				INI_WriteInt(File,"Undercover",PlayerInfo[playerid][pUndercover]);
				INI_WriteInt(File,"TogReports",PlayerInfo[playerid][pTogReports]);
				INI_WriteInt(File,"Radio",PlayerInfo[playerid][pRadio]);
				INI_WriteInt(File,"RadioFreq",PlayerInfo[playerid][pRadioFreq]);
				INI_WriteInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
				INI_WriteInt(File,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
				INI_WriteInt(File,"Registered",PlayerInfo[playerid][pReg]);
				INI_WriteInt(File,"Sex",PlayerInfo[playerid][pSex]);
				INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
				INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
				INI_Close(File); 
				return 1;
}
Reply


Messages In This Thread
Y_ini error - by Lidor124 - 23.03.2014, 15:51
Re: Y_ini error - by Lidor124 - 23.03.2014, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)