Madness I don't know why I got this error.[error 017: undefined symbol "INI_Int"]
#1

Hello dear samp forum users I need your help...
Includes:
pawn Код:
#include <a_samp>
#include <a_objects>
#include <a_players>
#include <a_vehicles>
#include <YSI\y_ini>
#include <datagram>
#include <string>
#include <core>
#include <float>
#include <time>
#include <file>
#include <streamer>
#include <irc>
#include <sscanf2>
Here is the code
pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_String("Password",PlayerInfo[playerid][pPassword], 129);
    INI_Int("Ip",PlayerInfo[playerid][pIp]);
    INI_Int("Cash",PlayerInfo[playerid][pCash];
    INI_Int("Account",PlayerInfo[playerid][pAccount];
    INI_Int("Admin",PlayerInfo[playerid][pAdmin];
    INI_Int("Level",PlayerInfo[playerid][pLevel];
    INI_Int("Exp",PlayerInfo[playerid][pExp];
    INI_Int("Upgrade",PlayerInfo[playerid][pUpgrade];
    INI_Int("Kills",PlayerInfo[playerid][pKills];
    INI_Int("CB",PlayerInfo[playerid][pCB];
    INI_Int("HW",PlayerInfo[playerid][pHW];
    INI_Int("SR",PlayerInfo[playerid][pSR];
    INI_Int("WA",PlayerInfo[playerid][pWA];
    INI_Int("BF",PlayerInfo[playerid][pBF];
    INI_Int("PEN",PlayerInfo[playerid][pPEN];
    INI_Int("GUN1",PlayerInfo[playerid][pGun1];
    INI_Int("GUN2",PlayerInfo[playerid][pGun2];
    INI_Int("GUN3",PlayerInfo[playerid][pGun3];
    INI_Int("GUN4",PlayerInfo[playerid][pGun4];
    INI_Int("GUN5",PlayerInfo[playerid][pGun5];
    INI_Int("GUN6",PlayerInfo[playerid][pGun6];
    INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1];
    INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2];
    INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3];
    INI_Int("Ammo4",PlayerInfo[playerid][pAmmo4];
    INI_Int("Ammo5",PlayerInfo[playerid][pAmmo5];
    INI_Int("Ammo6",PlayerInfo[playerid][pAmmo6];
    INI_Float("SHealth",PlayerInfo[playerid][pSHealth];
    INI_Float("SArmour",PlayerInfo[playerid][pSArmour];
    INI_Float("Health",PlayerInfo[playerid][pHealth];
    INI_Float("Pos_x",PlayerInfo[playerid][pPos_x];
    INI_Float("Pos_y",PlayerInfo[playerid][pPos_y];
    INI_Float("Pos_z",PlayerInfo[playerid][pPos_z];
    INI_Int("Int",PlayerInfo[playerid][pInt];
    INI_Int("Local",PlayerInfo[playerid][pLocal];
    INI_Int("Team",PlayerInfo[playerid][pTeam];
    INI_Int("Model",PlayerInfo[playerid][pModel];
    INI_Int("Pnumber",PlayerInfo[playerid][pPnumber];
    INI_Int("Phousekey",PlayerInfo[playerid][pPhousekey];
    INI_Int("Pbiskey",PlayerInfo[playerid][pPbiskey];
    INI_Int("WarnL",PlayerInfo[playerid][pWarnL];
    INI_Int("TmpRank",PlayerInfo[playerid][pTmpRank];
    INI_Int("DildoK",PlayerInfo[playerid][pDildoK];
    INI_Int("FlowerK",PlayerInfo[playerid][pFlowerK];
    INI_Int("CaneK",PlayerInfo[playerid][pCaneK];
    INI_Int("GrenadeK",PlayerInfo[playerid][pGrenadeK];
    INI_Int("GasK",PlayerInfo[playerid][pGasK];
    INI_Int("MolotovK",PlayerInfo[playerid][pMolotovK];
    INI_Int("ColtK",PlayerInfo[playerid][pColtK];
    INI_Int("SPK",PlayerInfo[playerid][pSPK];
    INI_Int("DeagleK",PlayerInfo[playerid][pDeagleK];
    INI_Int("PShotK",PlayerInfo[playerid][pPShotK];
    INI_Int("SawnK",PlayerInfo[playerid][pSawnK];
    INI_Int("Spas12K",PlayerInfo[playerid][pSpas12K];
    INI_Int("UziK",PlayerInfo[playerid][pUziK];
    INI_Int("MP5K",PlayerInfo[playerid][pMP5K];
    INI_Int("AK47K",PlayerInfo[playerid][pAK47K];
    INI_Int("M4K",PlayerInfo[playerid][pM4K];
    INI_Int("Tec9K",PlayerInfo[playerid][pTec9K];
    INI_Int("RifleK",PlayerInfo[playerid][pRifleK];
    INI_Int("SRifleK",PlayerInfo[playerid][pSRifleK];
    INI_Int("RPGK",PlayerInfo[playerid][pRPGK];
    INI_Int("HSRLK",PlayerInfo[playerid][pHSRLK];
    INI_Int("FlameK",PlayerInfo[playerid][pFlameK];
    INI_Int("MiniK",PlayerInfo[playerid][pMiniK];
    INI_Int("SatchelK",PlayerInfo[playerid][pSatchelK];
    INI_Int("FireEK",PlayerInfo[playerid][pFireEK];
    INI_Int("SprayK",PlayerInfo[playerid][pSprayK];
    INI_Int("FistK",PlayerInfo[playerid][pFistK];
    INI_Int("BrassK",PlayerInfo[playerid][pBrassK];
    INI_Int("GolfK",PlayerInfo[playerid][pGolfK];
    INI_Int("NightSK",PlayerInfo[playerid][pNightSK];
    INI_Int("BatK",PlayerInfo[playerid][pBatK];
    INI_Int("ShovelK",PlayerInfo[playerid][pShovelK];
    INI_Int("PoolCK",PlayerInfo[playerid][pPoolCK];
    INI_Int("KatanaK",PlayerInfo[playerid][pKatanaK];
    INI_Int("ChainsawK",PlayerInfo[playerid][pChainsawK];
    INI_Int("IntimK",PlayerInfo[playerid][pIntimK];
    INI_Int("KnifeK",PlayerInfo[playerid][pKnifeK];
    INI_Int("DildoD",PlayerInfo[playerid][pDildoD];
    INI_Int("FlowerD",PlayerInfo[playerid][pFlowerD];
    INI_Int("CaneD",PlayerInfo[playerid][pCaneD];
    INI_Int("GranadeD",PlayerInfo[playerid][pGrenadeD];
    INI_Int("GasD",PlayerInfo[playerid][pGasD];
    INI_Int("MolotovD",PlayerInfo[playerid][pMolotovD];
    INI_Int("ColtD",PlayerInfo[playerid][pColtD];
    INI_Int("SPD",PlayerInfo[playerid][pSPD];
    INI_Int("DeagleD",PlayerInfo[playerid][pDeagleD];
    INI_Int("PShotD",PlayerInfo[playerid][pPShotD];
    INI_Int("DpawnD",PlayerInfo[playerid][pSawnD];
    INI_Int("Spas12D",PlayerInfo[playerid][pSpas12D];
    INI_Int("UziD",PlayerInfo[playerid][pUziD];
    INI_Int("MP5D",PlayerInfo[playerid][pMP5D];
    INI_Int("AK47D",PlayerInfo[playerid][pAK47D];
    INI_Int("M4D",PlayerInfo[playerid][pM4D];
    INI_Int("Tec9D",PlayerInfo[playerid][pTec9D];
    INI_Int("RifleD",PlayerInfo[playerid][pRifleD];
    INI_Int("SRifleD",PlayerInfo[playerid][pSRifleD];
    INI_Int("RPGD",PlayerInfo[playerid][pRPGD];
    INI_Int("HSRLD",PlayerInfo[playerid][pHSRLD];
    INI_Int("FlameD",PlayerInfo[playerid][pFlameD];
    INI_Int("MiniD",PlayerInfo[playerid][pMiniD];
    INI_Int("SatchelD",PlayerInfo[playerid][pSatchelD];
    INI_Int("FireED",PlayerInfo[playerid][pFireED];
    INI_Int("SprayD",PlayerInfo[playerid][pSprayD];
    INI_Int("FistD",PlayerInfo[playerid][pFistD];
    INI_Int("BrassD",PlayerInfo[playerid][pBrassD];
    INI_Int("GolfD",PlayerInfo[playerid][pGolfD];
    INI_Int("NightSD",PlayerInfo[playerid][pNightSD];
    INI_Int("BatD",PlayerInfo[playerid][pBatD];
    INI_Int("ShovelD",PlayerInfo[playerid][pShovelD];
    INI_Int("PoolCD",PlayerInfo[playerid][pPoolCD];
    INI_Int("KatanaD",PlayerInfo[playerid][pKatanaD];
    INI_Int("ChainsawD",PlayerInfo[playerid][pChainsawD];
    INI_Int("IntimD",PlayerInfo[playerid][pIntimD];
    INI_Int("KnifeD",PlayerInfo[playerid][pKnifeD];
    INI_Int("PMs",PlayerInfo[playerid][pPMs];
    INI_Int("ALicence",PlayerInfo[playerid][pALicence];
    INI_Int("VLicence",PlayerInfo[playerid][pBLicence];
    INI_Int("CLicence",PlayerInfo[playerid][pCLicence];
    INI_Int("DLicence",PlayerInfo[playerid][pDLicence];
    INI_Int("ELicence",PlayerInfo[playerid][pELicence];
    INI_Int("ALicenceR",PlayerInfo[playerid][pALicenceR];
    INI_Int("BLicenceR",PlayerInfo[playerid][pBLicenceR];
    INI_Int("CLicenceR",PlayerInfo[playerid][pCLicenceR];
    INI_Int("DLicenceR",PlayerInfo[playerid][pDLicenceR];
    INI_Int("ELicenceR",PlayerInfo[playerid][pELicenceR];
    INI_Int("Shooter",PlayerInfo[playerid][pShooter];
    INI_Int("Diller",PlayerInfo[playerid][pDiller];
    INI_Int("Healther",PlayerInfo[playerid][pHealther];
    INI_Int("Repairer",PlayerInfo[playerid][pRepairer];
    INI_Int("Thefer",PlayerInfo[playerid][pThiefer];
    INI_Int("Teacher",PlayerInfo[playerid][pTeacher];
    INI_Int("Detective",PlayerInfo[playerid][pDetective];
    INI_Int("ShooterR",PlayerInfo[playerid][pShooterR];
    INI_Int("DillerR",PlayerInfo[playerid][pDillerR];
    INI_Int("HealtherR",PlayerInfo[playerid][pHealtherR];
    INI_Int("RepairerR",PlayerInfo[playerid][pRepairerR];
    INI_Int("ThieferR",PlayerInfo[playerid][pThieferR];
    INI_Int("TeacherR",PlayerInfo[playerid][pTeacherR];
    INI_Int("DetectiveR",PlayerInfo[playerid][pDetectiveR];
    INI_Int("Wantedlevel",PlayerInfo[playerid][pWantedlevel];
    INI_Int("Job",PlayerInfo[playerid][pJob];
    INI_Int("Mats",PlayerInfo[playerid][pMats];
    SendClientMessage(loaderid, COLOR_WHITE, "SERVER: Account Loaded");
    return 1;
}
Error all over the lines...:
pawn Код:
error 017: undefined symbol "INI_Int"
warning 202: number of arguments does not match definition
Thank you for your help and everything...

With best regards Scrillex.
Reply
#2

pawn Код:
public loadaccount_user(playerid, name[], value[])
{
    INI_String("Password", pInfo[playerid][Pass],129); /*we will use INI_String to load user's password.
    ("Password",.. will load user's password inside of user's path. 'pInfo[playerid][Pass]',...We have defined our user's variable above called, pInfo. Now it's time to use it here to load user's password. '129',... 129 is a length of a hashed user's password. Whirlpool will hash 128 characters + NULL*/

    INI_Int("AdminLevel",pInfo[playerid][Adminlevel]);/*We will use INI_Int to load user's admin level. INI_Int stands for INI_Integer. This load an admin level. */
    INI_Int("VIPLevel",pInfo[playerid][VIPlevel]);//As explained above
    INI_Int("Money",pInfo[playerid][Money]); //As explained above
    INI_Int("Scores",pInfo[playerid][Scores]);//As explained above
    INI_Int("Kills",pInfo[playerid][Kills]);//As explained above
    INI_Int("Deaths",pInfo[playerid][Deaths]);//As explained above
    return 1;
}
Credits to: @newbienoob
Reply
#3

OMG... I'm just uhh blind..... Sorry for this disturbance guys... Big thanks for your pointing out my stupid mistakes...

Thank you for your time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)