12.09.2013, 18:37
Hi All,
I'm trying to made a command that not allow player to set someone leader of a faction if
there is already someone at this place but i want to search also in the players that aren't logged in.
This is what i made but it's not work. I can set someone in it.
I putted LoadAccounts(); in ongamemodeinit. The file is uploaded at gamemode start.
Someone have an idea?
I made certainly something wrong with the fact that the users files are not listed in numbers (idx) but in names
I'm trying to made a command that not allow player to set someone leader of a faction if
there is already someone at this place but i want to search also in the players that aren't logged in.
This is what i made but it's not work. I can set someone in it.
pawn Код:
if(strcmp(cmd, "/chefpolice", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /chefpolice [playerid]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pLeader] == 7)
{
if(playa != INVALID_PLAYER_ID)
{
if(PlayerInfo[playa][pRank] == 0 && PlayerInfo[playa][pLeader] == 0)
{
for(new h = 1; h < sizeof(PlayerInfo); h++)
{
if(PlayerInfo[h][pLeader] == 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Il y a dйjа un chef de la police(LSPD).");
return 1;
}
else
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
PlayerInfo[playa][pLeader] = 1;
PlayerInfo[playa][pRank] = 8;
PlayerInfo[playa][pChar] = 288;
SetPlayerSkin(playa, 288);
SetPlayerToTeamColor(playa);
format(string, sizeof(string), "* Vous avez йtй dйsignй comme leader de la faction Lspd par le maire %s", sendername);
SendClientMessage(playa, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "* Vous avez donnй le controle а %s pour diriger la faction Lspd.", giveplayer);
SendClientMessage(playerid, COLOR_ORANGE, string);
format(string, sizeof(string), "[LCC News]:Le maire %s a donnй le controle de la faction Lspd а %s.",sendername,giveplayer);
OOCNews(COLOR_NEWS,string);
PlayerInfo[playa][pDuty] = 0;
OnPlayerUpdateEx(playa);
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Ce joueur est dans une faction.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Id de joueur invalide!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vous n'avez pas le droit d'utiliser cette commande!");
return 1;
}
}
return 1;
}
pawn Код:
forward LoadAccounts();
pawn Код:
public LoadAccounts()
{
new file[64];
for(new idx = 0; idx < sizeof(PlayerInfo) ; idx++)
{
format(file, sizeof(file),"LARP/Users/%d.ini", idx)
if(dini_Exists(file))
{
PlayerInfo[idx][pKey] = dini_Int(file,"Password");
PlayerInfo[idx][pLevel] = dini_Int(file,"Level");
PlayerInfo[idx][pSpawn] = dini_Int(file,"Spawn");
PlayerInfo[idx][pTester] = dini_Int(file,"TesterLevel");
PlayerInfo[idx][pHelper] = dini_Int(file,"HelperLevel");
PlayerInfo[idx][pAdmin] = dini_Int(file,"AdminLevel");
PlayerInfo[idx][pRegularRank] = dini_Int(file,"RegularRank");
PlayerInfo[idx][gPupgrade] = dini_Int(file,"UpgradePoints");
PlayerInfo[idx][pConnectSeconds] = dini_Int(file,"ConnectedTime");
PlayerInfo[idx][pReg] = dini_Int(file,"Registered");
PlayerInfo[idx][pSex] = dini_Int(file,"Sex");
PlayerInfo[idx][pAge] = dini_Int(file,"Age");
PlayerInfo[idx][pGPS] = dini_Int(file,"GPS");
PlayerInfo[idx][pCDplayer] = dini_Int(file,"CD player");
PlayerInfo[idx][pOrigin] = dini_Int(file,"Origin");
PlayerInfo[idx][pCK] = dini_Int(file,"CK");
PlayerInfo[idx][pMuted] = dini_Int(file,"Muted");
PlayerInfo[idx][pFrozen] = dini_Int(file,"Frozen");
PlayerInfo[idx][pBlind] = dini_Int(file,"Blind");
PlayerInfo[idx][pExp] = dini_Int(file,"Respect");
PlayerInfo[idx][pCash] = dini_Int(file,"Money");
PlayerInfo[idx][pAccount] = dini_Int(file,"Bank");
PlayerInfo[idx][pCrimes] = dini_Int(file,"Crimes");
strmid(PlayerInfo[idx][pCrimeReason],dini_Get(file,"CrimeReason"),0,strlen(dini_Get(file,"CrimeReason")),255);
PlayerInfo[idx][pWanted] = dini_Int(file,"Wanted");
PlayerInfo[idx][pWantedLevel] = dini_Int(file,"WantedLevel");
PlayerInfo[idx][pKills] = dini_Int(file,"Kills");
PlayerInfo[idx][pDeaths] = dini_Int(file,"Deaths");
PlayerInfo[idx][pArrested] = dini_Int(file,"Arrested");
PlayerInfo[idx][pWantedDeaths] = dini_Int(file,"WantedDeaths");
PlayerInfo[idx][pPhoneBook] = dini_Int(file,"PhoneBook");
PlayerInfo[idx][pLottoNr] = dini_Int(file,"LottoNr");
PlayerInfo[idx][pFishes] = dini_Int(file,"Fishes");
PlayerInfo[idx][pVisa] = dini_Int(file,"Visa");
PlayerInfo[idx][pRation] = dini_Int(file,"Ration");
PlayerInfo[idx][pFrigo] = dini_Int(file,"Frigo");
PlayerInfo[idx][pBiggestFish] = dini_Int(file,"BiggestFish");
PlayerInfo[idx][pJob] = dini_Int(file,"Job");
PlayerInfo[idx][pPayCheck] = dini_Int(file,"Paycheck");
PlayerInfo[idx][pHeadValue] = dini_Int(file,"HeadValue");
PlayerInfo[idx][pJailed] = dini_Int(file,"Jailed");
PlayerInfo[idx][pJailTime] = dini_Int(file,"JailTime");
PlayerInfo[idx][pRobTime] = dini_Int(file,"CanRobTime");
PlayerInfo[idx][pMats] = dini_Int(file,"Materials");
PlayerInfo[idx][pDrugs] = dini_Int(file,"Drugs");
PlayerInfo[idx][pLeader] = dini_Int(file,"Leader");
PlayerInfo[idx][pMember] = dini_Int(file,"Member");
PlayerInfo[idx][pFMember] = dini_Int(file,"FMember");
strmid(PlayerInfo[idx][pSecret],dini_Get(file,"Secret"),0,strlen(dini_Get(file,"Secret")),255);
//printf("PlayerInfo[idx][pSecret] is now \"%s\"", PlayerInfo[idx][pSecret]);
//format(PlayerInfo[idx][pSecret], 255, "%s", dini_Get(file,"Secret"));
//printf("PlayerInfo[idx][pSecret] is now \"%s\"", PlayerInfo[idx][pSecret]);
PlayerInfo[idx][pRank] = dini_Int(file,"Rank");
PlayerInfo[idx][pChar] = dini_Int(file,"Char");
PlayerInfo[idx][pContractTime] = dini_Int(file,"ContractTime");
PlayerInfo[idx][pDetSkill] = dini_Int(file,"DetSkill");
PlayerInfo[idx][pSexSkill] = dini_Int(file,"SexSkill");
PlayerInfo[idx][pBoxSkill] = dini_Int(file,"BoxSkill");
PlayerInfo[idx][pLawSkill] = dini_Int(file,"LawSkill");
PlayerInfo[idx][pBusSkill] = dini_Int(file,"BusSkill");
PlayerInfo[idx][pMechSkill] = dini_Int(file,"MechSkill");
PlayerInfo[idx][pJackSkill] = dini_Int(file,"JackSkill");
PlayerInfo[idx][pCarSkill] = dini_Int(file,"CarSkill");
PlayerInfo[idx][pNewsSkill] = dini_Int(file,"NewsSkill");
PlayerInfo[idx][pDrugsSkill] = dini_Int(file,"DrugsSkill");
PlayerInfo[idx][pCookSkill] = dini_Int(file,"CookSkill");
PlayerInfo[idx][pFishSkill] = dini_Int(file,"FishSkill");
PlayerInfo[idx][pHealth] = dini_Float(file,"pHealth");
PlayerInfo[idx][pArmour] = dini_Float(file,"pArmour");
PlayerInfo[idx][pInt] = dini_Int(file,"Int");
PlayerInfo[idx][pInteriorNr] = dini_Int(file,"InteriorNr");
PlayerInfo[idx][pLocal] = dini_Int(file,"Local");
PlayerInfo[idx][pTeam] = dini_Int(file,"Team");
PlayerInfo[idx][pModel] = dini_Int(file,"Model");
PlayerInfo[idx][pPnumber] = dini_Int(file,"PhoneNr");
PlayerInfo[idx][pPcarkey] = dini_Int(file,"Car");
PlayerInfo[idx][pPcarkey2] = dini_Int(file,"Car2");
PlayerInfo[idx][pPhousekey] = dini_Int(file,"House");
PlayerInfo[idx][pPbiskey] = dini_Int(file,"Bizz");
PlayerInfo[idx][pPbiskey2] = dini_Int(file,"SBizz");
PlayerInfo[idx][pPos_x] = dini_Float(file,"Pos_x");
PlayerInfo[idx][pPos_y] = dini_Float(file,"Pos_y");
PlayerInfo[idx][pPos_z] = dini_Float(file,"Pos_z");
PlayerInfo[idx][pPassport] = dini_Int(file,"Passport");
PlayerInfo[idx][pCarLic] = dini_Int(file,"CarLic");
PlayerInfo[idx][pFlyLic] = dini_Int(file,"FlyLic");
PlayerInfo[idx][pBoatLic] = dini_Int(file,"BoatLic");
PlayerInfo[idx][pFishLic] = dini_Int(file,"FishLic");
PlayerInfo[idx][pGunLic] = dini_Int(file,"GunLic");
PlayerInfo[idx][pCopLic] = dini_Int(file,"CopLic");
PlayerInfo[idx][pCarTime] = dini_Int(file,"CarTime");
PlayerInfo[idx][pPermisTime] = dini_Int(file,"PermisTime");
PlayerInfo[idx][pPayDay] = dini_Int(file,"PayDay");
PlayerInfo[idx][pPayDayHad] = dini_Int(file,"PayDayHad");
PlayerInfo[idx][pWatch] = dini_Int(file,"Watch");
PlayerInfo[idx][pCrashed] = dini_Int(file,"Crashed");
PlayerInfo[idx][pWins] = dini_Int(file,"Wins");
PlayerInfo[idx][pLoses] = dini_Int(file,"Loses");
PlayerInfo[idx][pAlcoholPerk] = dini_Int(file,"AlcoholPerk");
PlayerInfo[idx][pDrugPerk] = dini_Int(file,"DrugPerk");
PlayerInfo[idx][pMiserPerk] = dini_Int(file,"MiserPerk");
PlayerInfo[idx][pPainPerk] = dini_Int(file,"PainPerk");
PlayerInfo[idx][pTraderPerk] = dini_Int(file,"TraderPerk");
PlayerInfo[idx][pTut] = dini_Int(file,"Tutorial");
PlayerInfo[idx][pVirWorld] = dini_Int(file,"VirWorld");
PlayerInfo[idx][pFuel] = dini_Int(file,"Fuel");
PlayerInfo[idx][pMarried] = dini_Int(file,"Married");
strmid(PlayerInfo[idx][pMarriedTo],dini_Get(file,"MarriedTo"),0,strlen(dini_Get(file,"MarriedTo")),255);
PlayerInfo[idx][pFishTool] = dini_Int(file,"FlyLic");
strmid(PlayerInfo[idx][pWhyLeft],dini_Get(file,"WhyLeft"),0,strlen(dini_Get(file,"WhyLeft")),255);
strmid(PlayerInfo[idx][pNote1],dini_Get(file,"Note1"),0,strlen(dini_Get(file,"Note1")),255);
PlayerInfo[idx][pNote1s] = dini_Int(file,"Note1s");
strmid(PlayerInfo[idx][pNote2],dini_Get(file,"Note2"),0,strlen(dini_Get(file,"Note2")),255);
PlayerInfo[idx][pNote2s] = dini_Int(file,"Note2s");
strmid(PlayerInfo[idx][pNote3],dini_Get(file,"Note3"),0,strlen(dini_Get(file,"Note3")),255);
PlayerInfo[idx][pNote3s] = dini_Int(file,"Note3s");
strmid(PlayerInfo[idx][pNote4],dini_Get(file,"Note4"),0,strlen(dini_Get(file,"Note4")),255);
PlayerInfo[idx][pNote4s] = dini_Int(file,"Note4s");
strmid(PlayerInfo[idx][pNote5],dini_Get(file,"Note5"),0,strlen(dini_Get(file,"Note5")),255);
PlayerInfo[idx][pNote5s] = dini_Int(file,"Note5s");
PlayerInfo[idx][pInvWeapon] = dini_Int(file,"InvWeapon");
PlayerInfo[idx][pInvAmmo] = dini_Int(file,"InvAmmo");
PlayerInfo[idx][pInvWeapon2] = dini_Int(file,"InvWeapon2");
PlayerInfo[idx][pInvAmmo2] = dini_Int(file,"InvAmmo2");
PlayerInfo[idx][pInvWeapon3] = dini_Int(file,"InvWeapon3");
PlayerInfo[idx][pInvAmmo3] = dini_Int(file,"InvAmmo3");
PlayerInfo[idx][pInvWeapon4] = dini_Int(file,"InvWeapon4");
PlayerInfo[idx][pInvAmmo4] = dini_Int(file,"InvAmmo4");
PlayerInfo[idx][pInvWeapon5] = dini_Int(file,"InvWeapon5");
PlayerInfo[idx][pInvAmmo5] = dini_Int(file,"InvAmmo5");
PlayerInfo[idx][pInvWeapon6] = dini_Int(file,"InvWeapon6");
PlayerInfo[idx][pInvAmmo6] = dini_Int(file,"InvAmmo6");
PlayerInfo[idx][pLighter] = dini_Int(file,"Lighter");
PlayerInfo[idx][pCigarettes] = dini_Int(file,"Cigarettes");
PlayerInfo[idx][pDM] = dini_Int(file,"DDManager");
PlayerInfo[idx][pDuty] = dini_Int(file,"OnDuty");
PlayerInfo[idx][pWarned] = dini_Int(file,"Warnings");
PlayerInfo[idx][pSwat] = dini_Int(file,"Swat");
PlayerInfo[idx][pFS] = dini_Int(file,"Fighting");
PlayerInfo[idx][pBoxiSkill] = dini_Int(file,"Boxing");
PlayerInfo[idx][pKneeSkill] = dini_Int(file,"KneeHead");
PlayerInfo[idx][pKungSkill] = dini_Int(file,"KungFu");
PlayerInfo[idx][pGrabSkill] = dini_Int(file,"GrabKick");
PlayerInfo[idx][pElbowSkill] = dini_Int(file,"ElBow");
PlayerInfo[idx][pTactical] = dini_Int(file,"Tactical");
PlayerInfo[idx][pSpecialF] = dini_Int(file,"SpecialF");
PlayerInfo[idx][pDBanned] = dini_Int(file,"DutyBanned");
PlayerInfo[idx][pDTK] = dini_Int(file,"DDTicket");
PlayerInfo[idx][pDSTK] = dini_Int(file,"DDSTicket");
PlayerInfo[idx][pSpeedo] = dini_Int(file,"Speedo");
PlayerInfo[idx][pHunterR] = dini_Int(file,"HunterDriver");
PlayerInfo[idx][pRhinoR] = dini_Int(file,"RhinoDriver");
PlayerInfo[idx][pPredR] = dini_Int(file,"PredatorDriver");
PlayerInfo[idx][pHydraR] = dini_Int(file,"RhinoDriver");
PlayerInfo[idx][pViewPms] = dini_Int(file,"ViewPms");
PlayerInfo[idx][pAppearList] = dini_Int(file,"AppearList");
PlayerInfo[idx][pAmmuTrainTime] = dini_Int(file,"AmmunationTime");
PlayerInfo[idx][pPistSkill] = dini_Int(file,"PistolSkill");
PlayerInfo[idx][pSilenSkill] = dini_Int(file,"SilencedSkill");
PlayerInfo[idx][pDesertSkill] = dini_Int(file,"DesertSkill");
PlayerInfo[idx][pShotgSkill] = dini_Int(file,"ShotgunSkill");
PlayerInfo[idx][pSawnSkill] = dini_Int(file,"SawnoffSkill");
PlayerInfo[idx][pCombSkill] = dini_Int(file,"CombatSkill");
PlayerInfo[idx][pUziSkill] = dini_Int(file,"UziSkill");
PlayerInfo[idx][pSmgSkill] = dini_Int(file,"SMGSkill");
PlayerInfo[idx][pAkSkill] = dini_Int(file,"AK47Skill");
PlayerInfo[idx][pM4Skill] = dini_Int(file,"M4Skill");
PlayerInfo[idx][pTutDone] = dini_Int(file,"TutorialDone");
PlayerInfo[idx][pRegularCount] = dini_Int(file,"RegularCount");
PlayerInfo[idx][pPassportTime] = dini_Int(file,"PassportTime");
PlayerInfo[idx][pOfficerTime] = dini_Int(file,"OfficerTime");
PlayerInfo[idx][pPermisPoints] = dini_Int(file,"PermisPoints");
PlayerInfo[idx][pChelemTime] = dini_Int(file,"ChelemTime");
PlayerInfo[idx][pChelemPoints] = dini_Int(file,"ChelemPoints");
PlayerInfo[idx][pPermisMoto] = dini_Int(file,"PermisMoto");
PlayerInfo[idx][pPermisLourd] = dini_Int(file,"PermisLourd");
PlayerInfo[idx][pPermisScoot] = dini_Int(file,"PermisScoot");
PlayerInfo[idx][pRenoTime] = dini_Int(file,"RenoTime");
PlayerInfo[idx][pAchievement0] = dini_Int(file,"Achievement0");
PlayerInfo[idx][pAchievement1] = dini_Int(file,"Achievement1");
PlayerInfo[idx][pAchievement2] = dini_Int(file,"Achievement2");
PlayerInfo[idx][pAchievement3] = dini_Int(file,"Achievement3");
PlayerInfo[idx][pAchievement4] = dini_Int(file,"Achievement4");
PlayerInfo[idx][pAchievement5] = dini_Int(file,"Achievement5");
PlayerInfo[idx][pAchievement6] = dini_Int(file,"Achievement6");
PlayerInfo[idx][pAchievement7] = dini_Int(file,"Achievement7");
PlayerInfo[idx][pAchievement8] = dini_Int(file,"Achievement8");
PlayerInfo[idx][pAchievement9] = dini_Int(file,"Achievement9");
PlayerInfo[idx][pAchievement10] = dini_Int(file,"Achievement10");
PlayerInfo[idx][pAchievement11] = dini_Int(file,"Achievement11");
PlayerInfo[idx][pAchievement12] = dini_Int(file,"Achievement12");
PlayerInfo[idx][pAchievement13] = dini_Int(file,"Achievement13");
PlayerInfo[idx][pAchievement14] = dini_Int(file,"Achievement14");
PlayerInfo[idx][pAchievement15] = dini_Int(file,"Achievement15");
PlayerInfo[idx][pAchievement16] = dini_Int(file,"Achievement16");
PlayerInfo[idx][pAchievement17] = dini_Int(file,"Achievement17");
PlayerInfo[idx][pAchievement18] = dini_Int(file,"Achievement18");
PlayerInfo[idx][pAchievement19] = dini_Int(file,"Achievement19");
PlayerInfo[idx][pAchievement20] = dini_Int(file,"Achievement20");
PlayerInfo[idx][pShiftName] = dini_Int(file,"ShiftName");
PlayerInfo[idx][pWeapon] = dini_Int(file,"Weapon");
PlayerInfo[idx][pAmmo] = dini_Int(file,"Ammo");
PlayerInfo[idx][pWeapon2] = dini_Int(file,"Weapon2");
PlayerInfo[idx][pAmmo2] = dini_Int(file,"Ammo2");
PlayerInfo[idx][pWeapon3] = dini_Int(file,"Weapon3");
PlayerInfo[idx][pAmmo3] = dini_Int(file,"Ammo3");
PlayerInfo[idx][pWeapon4] = dini_Int(file,"Weapon4");
PlayerInfo[idx][pAmmo4] = dini_Int(file,"Ammo4");
PlayerInfo[idx][pWeapon5] = dini_Int(file,"Weapon5");
PlayerInfo[idx][pAmmo5] = dini_Int(file,"Ammo5");
PlayerInfo[idx][pWeapon6] = dini_Int(file,"Weapon6");
PlayerInfo[idx][pAmmo6] = dini_Int(file,"Ammo6");
PlayerInfo[idx][pWeapon7] = dini_Int(file,"Weapon7");
PlayerInfo[idx][pAmmo7] = dini_Int(file,"Ammo7");
PlayerInfo[idx][pWeapon8] = dini_Int(file,"Weapon8");
PlayerInfo[idx][pAmmo8] = dini_Int(file,"Ammo8");
PlayerInfo[idx][pWeapon9] = dini_Int(file,"Weapon9");
PlayerInfo[idx][pAmmo9] = dini_Int(file,"Ammo9");
PlayerInfo[idx][pWeapon10] = dini_Int(file,"Weapon10");
PlayerInfo[idx][pAmmo10] = dini_Int(file,"Ammo10");
PlayerInfo[idx][pWeapon11] = dini_Int(file,"Weapon11");
PlayerInfo[idx][pAmmo11] = dini_Int(file,"Ammo11");
PlayerInfo[idx][pWeapon12] = dini_Int(file,"Weapon12");
PlayerInfo[idx][pAmmo12] = dini_Int(file,"Ammo12");
PlayerInfo[idx][pAtc] = dini_Int(file,"Atc");
PlayerInfo[idx][pAtcRadio] = dini_Int(file,"AtcRadio");
PlayerInfo[idx][pPending] = dini_Int(file,"Pending");
strmid(PlayerInfo[idx][pPendingInfo],dini_Get(file,"PendingInfo"),0,strlen(dini_Get(file,"PendingInfo")),255);
PlayerInfo[idx][pChatMode] = dini_Int(file,"ChatMode");
PlayerInfo[idx][pTruckLoad] = dini_Int(file,"TruckLoad");
strmid(PlayerInfo[idx][pPunishment1],dini_Get(file,"Punishment1"),0,strlen(dini_Get(file,"Punishment1")),255);
strmid(PlayerInfo[idx][pPunishment2],dini_Get(file,"Punishment2"),0,strlen(dini_Get(file,"Punishment2")),255);
strmid(PlayerInfo[idx][pPunishment3],dini_Get(file,"Punishment3"),0,strlen(dini_Get(file,"Punishment3")),255);
strmid(PlayerInfo[idx][pPunishment4],dini_Get(file,"Punishment4"),0,strlen(dini_Get(file,"Punishment4")),255);
strmid(PlayerInfo[idx][pPunishment5],dini_Get(file,"Punishment5"),0,strlen(dini_Get(file,"Punishment5")),255);
strmid(PlayerInfo[idx][pPunishment6],dini_Get(file,"Punishment6"),0,strlen(dini_Get(file,"Punishment6")),255);
strmid(PlayerInfo[idx][pPunishment7],dini_Get(file,"Punishment7"),0,strlen(dini_Get(file,"Punishment7")),255);
strmid(PlayerInfo[idx][pPunishment8],dini_Get(file,"Punishment8"),0,strlen(dini_Get(file,"Punishment8")),255);
PlayerInfo[idx][pNextPunishment] = dini_Int(file,"NextPunishment");
PlayerInfo[idx][pTazerBullets] = dini_Int(file,"TazerBullets");
strmid(PlayerInfo[idx][pIP],dini_Get(file,"IP"),0,strlen(dini_Get(file,"IP")),255);
strmid(PlayerInfo[idx][pLastSeen],dini_Get(file,"LastLogged"),0,strlen(dini_Get(file,"LastLogged")),255);
PlayerInfo[idx][pChanged] = dini_Int(file,"Changed");
strmid(PlayerInfo[idx][pRegistredDate],dini_Get(file,"RegistredDate"),0,strlen(dini_Get(file,"RegistredDate")),255);
BizzEntered[idx] = dini_Int(file,"BizzEntered");
SBizzEntered[idx] = dini_Int(file,"SBizzEntered");
HouseEntered[idx] = dini_Int(file,"HouseEntered");
PlayerInfo[idx][pDecoder] = dini_Int(file,"Decoder");
strmid(PlayerInfo[idx][pEmail],dini_Get(file,"Email"),0,strlen(dini_Get(file,"Email")),255);
}
}
print("[SCRIPT]: Comptes chargйs");
return 1;
}
Someone have an idea?
I made certainly something wrong with the fact that the users files are not listed in numbers (idx) but in names