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
#2

Oops forgot to post errors log lol:

Код:
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1493) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1494) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1495) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1496) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1497) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1498) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1499) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1500) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1502) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1503) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1504) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1505) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1506) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1507) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1508) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1509) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1510) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1511) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1512) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1513) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(1514) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(34170) : warning 204: symbol is assigned a value that is never used: "price"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(93846) : warning 203: symbol is never used: "CommandSpamTimer"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1\gamemodes\CGRP.pwn(93846) : warning 203: symbol is never used: "SpectateType"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


21 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)