Need Help - PlayerInfo Error -
TwisTa98 - 26.12.2012
I Have Problem And Please Help Me!
I Have This In Gamemode:
HTML Code:
//--------------------------------------------------------------------------------------------------------------------------------------------
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pGas,
//--------------------------------------------------------------------------------------------------------------------------------------------
pHelper,
//--------------------------------------------------------------------------------------------------------------------------------------------
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pHotel,
pCK,
pMuted,
pMuteTime,
pExp,
pCash,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pJailTime,
pMats,
pIdzebneba,
pDrugs,
pLeader,
pHot,
pMember,
pAbonimenti,
pPDuty,
pFMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPcarkey,
pPcarkey2,
pPcarkey3,
pGangKey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pWatch,
pCrashed,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pMissionNr,
pWarns,
pVirWorld,
pFuel,
pMarried,
pMarriedTo[128],
pFishTool,
pNote1[128],
pNote1s,
pNote2[128],
pNote2s,
pNote3[128],
pNote3s,
pNote4[128],
pNote4s,
pNote5[128],
pNote5s,
pInvWeapon,
pInvAmmo,
pLighter,
pCigarettes,
pRequestingBackup,
pRoadblock,
pMask,
pMaskuse,
pHideNumber,
pSpeaker,
pLocked,
pCountry,
pVisa,
pPassport,
pHRadio,
pORadio,
// pRobed,
//pSQLID,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
But When I Save The Gamemode, It's Error:
HTML Code:
C:\Users\TwisTa\Desktop\San Fierro City Life\gamemodes\SFCL.pwn(472) : error 017: undefined symbol "PlayerInfo"
C:\Users\TwisTa\Desktop\San Fierro City Life\gamemodes\SFCL.pwn(478) : error 017: undefined symbol "Specing"
C:\Users\TwisTa\Desktop\San Fierro City Life\gamemodes\SFCL.pwn(478) : warning 215: expression has no effect
C:\Users\TwisTa\Desktop\San Fierro City Life\gamemodes\SFCL.pwn(478) : error 001: expected token: ";", but found "]"
C:\Users\TwisTa\Desktop\San Fierro City Life\gamemodes\SFCL.pwn(478) : error 029: invalid expression, assumed zero
C:\Users\TwisTa\Desktop\San Fierro City Life\gamemodes\SFCL.pwn(478) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Here Is Other Errors But They Like This I type new $name$ but there is error
so You Can Help me?
Re: Need Help - PlayerInfo Error -
Konstantinos - 26.12.2012
Make sure the variable is global and it should be under define(s)
pawn Code:
#include <a_samp>
//rest
#undef
#define MAX_PLAYERS 50
// rest
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pGas,
//--------------------------------------------------------------------------------------------------------------------------------------------
pHelper,
//--------------------------------------------------------------------------------------------------------------------------------------------
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pHotel,
pCK,
pMuted,
pMuteTime,
pExp,
pCash,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pJailTime,
pMats,
pIdzebneba,
pDrugs,
pLeader,
pHot,
pMember,
pAbonimenti,
pPDuty,
pFMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPcarkey,
pPcarkey2,
pPcarkey3,
pGangKey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pWatch,
pCrashed,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pMissionNr,
pWarns,
pVirWorld,
pFuel,
pMarried,
pMarriedTo[128],
pFishTool,
pNote1[128],
pNote1s,
pNote2[128],
pNote2s,
pNote3[128],
pNote3s,
pNote4[128],
pNote4s,
pNote5[128],
pNote5s,
pInvWeapon,
pInvAmmo,
pLighter,
pCigarettes,
pRequestingBackup,
pRoadblock,
pMask,
pMaskuse,
pHideNumber,
pSpeaker,
pLocked,
pCountry,
pVisa,
pPassport,
pHRadio,
pORadio,
// pRobed,
//pSQLID,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
// Callbacks
Can you also show us lines 472 and 478?
Re: Need Help - PlayerInfo Error -
ryansheilds - 26.12.2012
You've probably defined the variable after where it's used, move the function on line 472 after PlayerInfo or move PlayerInfo before the line of 472.
Re: Need Help - PlayerInfo Error -
TwisTa98 - 26.12.2012
no thanks i fix this error but now i have core error and see this in Scripting Help