25.06.2012, 08:08
Hello everyone. For some reason I keep getting these errors. I've been converting dini to Y_INI, and I'm getting these errors. They claim something is wrong with my loaduserdata callback. It looks fine to me, so if you guys know what's up then any assistance would be greatly appreciated. Thanks.
Код:
C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(404) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(405) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(406) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(407) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(408) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(409) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(410) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(411) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(412) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(413) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(414) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(415) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(416) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(417) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(418) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(419) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(420) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(421) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(422) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(423) : error 017: undefined symbol "pDonatePoints" C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(423) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(424) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(425) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(426) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(427) : error 079: inconsistent return types (array & non-array) C:\Users\Luke\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(428) : error 079: inconsistent return types (array & non-array) Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
pawn Код:
forward LoadUser_data(playerid,name[],value[]); //Register system, load user data
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPassword]);
INI_Int("Registered",PlayerInfo[playerid][pRegistered]);
INI_Int("Age",PlayerInfo[playerid][pAge]);
INI_Int("Gender",PlayerInfo[playerid][pGender]);
INI_Int("Skin",PlayerInfo[playerid][pSkin]);
INI_Int("Origin",PlayerInfo[playerid][pOrigin]);
INI_Int("Accent",PlayerInfo[playerid][pAccent]);
INI_Int("AdminLevel",PlayerInfo[playerid][pAdminLevel]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Money",PlayerInfo[playerid][pMoney]);
INI_Int("Bank",PlayerInfo[playerid][pBank]);
INI_Int("Job",PlayerInfo[playerid][pJob]);
INI_Int("Faction",PlayerInfo[playerid][pFaction]);
INI_Int("Rank",PlayerInfo[playerid][pRank]);
INI_Int("License",PlayerInfo[playerid][pLicense]);
INI_Int("Cocaine",PlayerInfo[playerid][pCocaine]);
INI_Int("Marijuana",PlayerInfo[playerid][pMarijuana]);
INI_Int("Donater",PlayerInfo[playerid][pDonater]);
INI_Int("DonatePoints",PlayerInfo[playerid][pDonatePoints]);
INI_Int("Watch",PlayerInfo[playerid][pWatch]);
INI_Int("Phone",PlayerInfo[playerid][pPhone]);
INI_Int("Phonenumber",PlayerInfo[playerid][pPhoneNumber]);
INI_Int("House",PlayerInfo[playerid][pHouse]);
INI_Int("Cigars",PlayerInfo[playerid][pCigars]);
INI_Int("Lighter",PlayerInfo[playerid][pLighter]);
INI_Int("Mask",PlayerInfo[playerid][pMask]);
INI_Int("JailTime",PlayerInfo[playerid][pJailTime]);
INI_Int("Leader",PlayerInfo[playerid][pLeader]);
//Weapons
INI_Int("Gun01",PlayerInfo[playerid][pGun01]);
INI_Int("Ammo01",PlayerInfo[playerid][pAmmo01]);
INI_Int("Gun02",PlayerInfo[playerid][pGun02]);
INI_Int("Ammo02",PlayerInfo[playerid][pAmmo02]);
INI_Int("Gun03",PlayerInfo[playerid][pGun03]);
INI_Int("Ammo03",PlayerInfo[playerid][pAmmo03]);
INI_Int("Gun04",PlayerInfo[playerid][pGun04]);
INI_Int("Ammo04",PlayerInfo[playerid][pAmmo04]);
INI_Int("Gun05",PlayerInfo[playerid][pGun05]);
INI_Int("Ammo05",PlayerInfo[playerid][pAmmo05]);
INI_Int("Gun06",PlayerInfo[playerid][pGun06]);
INI_Int("Ammo07",PlayerInfo[playerid][pAmmo07]);
INI_Int("Gun08",PlayerInfo[playerid][pGun08]);
INI_Int("Ammo08",PlayerInfo[playerid][pAmmo08]);
INI_Int("Gun09",PlayerInfo[playerid][pGun09]);
INI_Int("Ammo09",PlayerInfo[playerid][pAmmo09]);
INI_Int("Gun10",PlayerInfo[playerid][pGun10]);
INI_Int("Ammo10",PlayerInfo[playerid][pAmmo10]);
INI_Int("Gun11",PlayerInfo[playerid][pGun11]);
INI_Int("Ammo11",PlayerInfo[playerid][pAmmo11]);
//Last x y z pos
INI_Int("LastX",PlayerInfo[playerid][pLastX]);
INI_Int("LastY",PlayerInfo[playerid][pLastY]);
INI_Int("LastZ",PlayerInfo[playerid][pLastZ]);