Crash?
#1

Hi, when i connect to my server, i type my password and i crash, Players also crash. Why? help me, plz. 0 errors when i compile the GM
Reply
#2

Give us:
OnPlayerSpawn
Your OnPlayerLogin (whatsoever)
OnPlayerRequestClass / Spawn
Reply
#3

There's:

public OnPlayerSpawn(playerid)
{
AntiDeAMX();
if (!AlreadyGiveWeapons[playerid]) SetTimerEx("LoadWeaponsToFile",250,false,"i",playe rid);

if (gPlayerAccount[playerid] == 0) {
SendClientMessage(playerid,COLOR_LIGHTRED,"[SERVEUR]: Vous avez йtй kickй car vous ne vous кtes pas enregistrй.");
Kick(playerid);
}
else if (gPlayerLogged[playerid] == 0) {
SendClientMessage(playerid,COLOR_LIGHTRED,"[SERVEUR]: Vous avez йtй kickй pour ne pas vous avoir connecter.");
Kick(playerid);
}
else {
if(UsingSkin[playerid] == 0) {
SetPlayerSkinEx(playerid, PlayerInfo[playerid][pModel]);
}
if(DoneSpecing[playerid] == 1) {
SetPlayerSkinEx(playerid, PlayerInfo[playerid][pModel]);
new house = PlayerInfo[playerid][pHousekey];
new motel = PlayerInfo[playerid][pComplexkey];
if(house != 255) {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,house+100);

public OnPlayerLogin(playerid,password[])
{
new string2[128], keystring[256], string[256];
// new vehi = GetPlayerVehicleID(playerid);
format(string2, sizeof(string2), "users/%s.ini", PlayerName(playerid));
keystring = dini_Get(string2, "Key");
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
if(strcmp(keystring, password, true) == 0) {
PlayerInfo[playerid][pCash] = dini_Int(string2,"Cash");
PlayerInfo[playerid][pAccount] = dini_Int(string2,"Account");
HouseRent[playerid] = dini_Int(string2,"House Rent");
PlayerInfo[playerid][pFinWeapon][0] = dini_Int(string2,"Weapon0");
PlayerInfo[playerid][pFinWeapon][1] = dini_Int(string2,"Weapon1");
PlayerInfo[playerid][pFinWeapon][2] = dini_Int(string2,"Weapon2");
PlayerInfo[playerid][pFinWeapon][3] = dini_Int(string2,"Weapon3");
PlayerInfo[playerid][pFinWeapon][4] = dini_Int(string2,"Weapon4");
PlayerInfo[playerid][pFinWeapon][5] = dini_Int(string2,"Weapon5");
PlayerInfo[playerid][pFinWeapon][6] = dini_Int(string2,"Weapon6");
PlayerInfo[playerid][pFinWeapon][7] = dini_Int(string2,"Weapon7");
PlayerInfo[playerid][pFinWeapon][8] = dini_Int(string2,"Weapon8");
PlayerInfo[playerid][pFinWeapon][9] = dini_Int(string2,"Weapon9");
PlayerInfo[playerid][pFinWeapon][10] = dini_Int(string2,"Weapon10");
PlayerInfo[playerid][pFinWeapon][11] = dini_Int(string2,"Weapon11");
PlayerInfo[playerid][pFinAmmo][0] = dini_Int(string2,"Ammos0");
PlayerInfo[playerid][pFinAmmo][1] = dini_Int(string2,"Ammos1");
PlayerInfo[playerid][pFinAmmo][2] = dini_Int(string2,"Ammos2");
PlayerInfo[playerid][pFinAmmo][3] = dini_Int(string2,"Ammos3");
PlayerInfo[playerid][pFinAmmo][4] = dini_Int(string2,"Ammos4");
PlayerInfo[playerid][pFinAmmo][5] = dini_Int(string2,"Ammos5");
PlayerInfo[playerid][pFinAmmo][6] = dini_Int(string2,"Ammos6");
PlayerInfo[playerid][pFinAmmo][7] = dini_Int(string2,"Ammos7");
PlayerInfo[playerid][pFinAmmo][8] = dini_Int(string2,"Ammos8");
PlayerInfo[playerid][pFinAmmo][9] = dini_Int(string2,"Ammos9");
PlayerInfo[playerid][pFinAmmo][10] = dini_Int(string2,"Ammos10");
PlayerInfo[playerid][pFinAmmo][11] = dini_Int(string2,"Ammos11");
PlayerInfo[playerid][pBox][0] = dini_Int(string2,"BoxItem1");
PlayerInfo[playerid][pBox][1] = dini_Int(string2,"BoxItem2");
PlayerInfo[playerid][pBox][2] = dini_Int(string2,"BoxItem3");
PlayerInfo[playerid][pBox][3] = dini_Int(string2,"BoxItem4");
PlayerInfo[playerid][pBox][4] = dini_Int(string2,"BoxItem5");
PlayerInfo[playerid][pBox][5] = dini_Int(string2,"BoxItem6");
PlayerInfo[playerid][pBox][6] = dini_Int(string2,"BoxItem7");
PlayerInfo[playerid][pBox][7] = dini_Int(string2,"BoxItem8");
PlayerInfo[playerid][pBox][8] = dini_Int(string2,"BoxItem9");
PlayerInfo[playerid][pBox][9] = dini_Int(string2,"BoxItem10");
PlayerInfo[playerid][pBox][10] = dini_Int(string2,"BoxItem11");
PlayerInfo[playerid][pBoxAmmo][0] = dini_Int(string2,"BoxAmmount1");
PlayerInfo[playerid][pBoxAmmo][1] = dini_Int(string2,"BoxAmmount2");
PlayerInfo[playerid][pBoxAmmo][2] = dini_Int(string2,"BoxAmmount3");
PlayerInfo[playerid][pBoxAmmo][3] = dini_Int(string2,"BoxAmmount4");
PlayerInfo[playerid][pBoxAmmo][4] = dini_Int(string2,"BoxAmmount5");
PlayerInfo[playerid][pBoxAmmo][5] = dini_Int(string2,"BoxAmmount6");
PlayerInfo[playerid][pBoxAmmo][6] = dini_Int(string2,"BoxAmmount7");
PlayerInfo[playerid][pBoxAmmo][7] = dini_Int(string2,"BoxAmmount8");
PlayerInfo[playerid][pBoxAmmo][8] = dini_Int(string2,"BoxAmmount9");
PlayerInfo[playerid][pBoxAmmo][9] = dini_Int(string2,"BoxAmmount10");
PlayerInfo[playerid][pBoxAmmo][10] = dini_Int(string2,"BoxAmmount11");
cAnim[playerid] = dini_Int(string2,"Chat Anim");
OldCar[playerid] = dini_Int(string2,"Old Car");
PlayerInfo[playerid][pAdmin] = dini_Int(string2,"AdminLevel");
PlayerInfo[playerid][pOrigin] = dini_Int(string2,"Origin");
PlayerInfo[playerid][pAjailc] = dini_Int(string2,"AdminJailCount");
PlayerInfo[playerid][pLevel] = dini_Int(string2,"Level");
PlayerInfo[playerid][pArrive] = dini_Int(string2,"Arrive");
PlayerInfo[playerid][pPin] = dini_Int(string2,"Bank Pin");
PlayerInfo[playerid][pChequeId] = dini_Int(string2,"Pay Cheque ID");
PlayerInfo[playerid][pChequeCode] = dini_Int(string2,"Pay Cheque Code");
PayR[playerid] = dini_Int(string2,"Pay Cheque Recieved");
PlayerInfo[playerid][pCard] = dini_Int(string2,"Debit Card");
PlayerInfo[playerid][pSeeds] = dini_Int(string2,"Seeds");
PlayerInfo[playerid][pExp] = dini_Int(string2,"Respect");
PlayerInfo[playerid][gPupgrade] = dini_Int(string2,"UpgradePoints");
PlayerInfo[playerid][pKills] = dini_Int(string2,"Kills");
PlayerInfo[playerid][pSHealth] = dini_Float(string2,"pSHealth");
PlayerInfo[playerid][pHealth] = dini_Float(string2,"Health");
PlayerInfo[playerid][pPos_x] = dini_Float(string2,"Pos_x");
PlayerInfo[playerid][pPos_y] = dini_Float(string2,"Pos_y");
PlayerInfo[playerid][pPos_z] = dini_Float(string2,"Pos_z");
PlayerInfo[playerid][pGateID][0] = dini_Int(string2,"Gate ID");
PlayerInfo[playerid][pGateID][1] = dini_Int(string2,"Gate ID2");
PlayerInfo[playerid][pGateID][2] = dini_Int(string2,"Gate ID3");
PlayerInfo[playerid][pInt] = dini_Int(string2,"Int");
PlayerInfo[playerid][pLocal] = dini_Int(string2,"Local");
PlayerInfo[playerid][pTeam] = dini_Int(string2,"Team");
PlayerInfo[playerid][pCheck] = dini_Int(string2,"Check");
PlayerInfo[playerid][pCheckr] = dini_Int(string2,"CheckRecieved");
PlayerInfo[playerid][pSavings] = dini_Int(string2,"Savings");
PlayerInfo[playerid][pModel] = dini_Int(string2,"Char");
PlayerInfo[playerid][pPnumber] = dini_Int(string2,"PhoneNr");
PlayerInfo[playerid][pHousekey] = dini_Int(string2,"pHouseKey");
PlayerInfo[playerid][pComplexkey] = dini_Int(string2,"Complex");
PlayerInfo[playerid][pPbiskey] = dini_Int(string2,"Bizz");
PlayerInfo[playerid][pBanned] = dini_Int(string2,"Banned");
PlayerInfo[playerid][pFightSkill] = dini_Int(string2,"FightSkill");
PlayerInfo[playerid][pSex] = dini_Int(string2,"Sex");
PlayerInfo[playerid][pAge] = dini_Int(string2,"Age");
PlayerInfo[playerid][pTut] = dini_Int(string2,"Tutorial");
PlayerInfo[playerid][pMember] = dini_Int(string2,"Member");
PlayerInfo[playerid][pRank] = dini_Int(string2,"Rank");
PlayerInfo[playerid][pJoined] = dini_Int(string2, "Joined");
Enter[playerid] = dini_Int(string2,"InteriorEntered");
PlayerInfo[playerid][pCrashed] = dini_Int(string2,"Crashed");
MaxC[playerid] = dini_Int(string2,"Max Contacts");
MaxC2[playerid] = dini_Int(string2,"Max Contacts2");
MaxC3[playerid] = dini_Int(string2,"Max Contacts3");
MaxC4[playerid] = dini_Int(string2,"Max Contacts4");
MaxC5[playerid] = dini_Int(string2,"Max Contacts5");
MaxC6[playerid] = dini_Int(string2,"Max Contacts6");
MaxC7[playerid] = dini_Int(string2,"Max Contacts7");
PlayerInfo[playerid][pGun1] = dini_Int(string2,"Gun1");
PlayerInfo[playerid][pGun2] = dini_Int(string2,"Gun2");
PlayerInfo[playerid][pGun3] = dini_Int(string2,"Gun3");
PlayerInfo[playerid][pGun4] = dini_Int(string2,"Gun4");
PlayerInfo[playerid][pGun5] = dini_Int(string2,"Gun5");
PlayerInfo[playerid][pGun6] = dini_Int(string2,"Gun6");
PlayerInfo[playerid][pGun7] = dini_Int(string2,"Gun7");
PlayerInfo[playerid][pGun8] = dini_Int(string2,"Gun8");
PlayerInfo[playerid][pGun9] = dini_Int(string2,"Gun9");
PlayerInfo[playerid][pGun10] = dini_Int(string2,"Gun10");
PlayerInfo[playerid][pGun11] = dini_Int(string2,"Gun11");
PlayerInfo[playerid][pGun12] = dini_Int(string2,"Gun12");
PlayerInfo[playerid][pGun13] = dini_Int(string2,"Gun13");
PlayerInfo[playerid][pAmmo1] = dini_Int(string2,"Ammo1");
PlayerInfo[playerid][pAmmo2] = dini_Int(string2,"Ammo2");
PlayerInfo[playerid][pAmmo3] = dini_Int(string2,"Ammo3");
PlayerInfo[playerid][pAmmo4] = dini_Int(string2,"Ammo4");
PlayerInfo[playerid][pAmmo5] = dini_Int(string2,"Ammo5");
PlayerInfo[playerid][pAmmo6] = dini_Int(string2,"Ammo6");
PlayerInfo[playerid][pAmmo7] = dini_Int(string2,"Ammo7");
PlayerInfo[playerid][pAmmo8] = dini_Int(string2,"Ammo8");
PlayerInfo[playerid][pAmmo9] = dini_Int(string2,"Ammo9");
PlayerInfo[playerid][pAmmo10] = dini_Int(string2,"Ammo10");
PlayerInfo[playerid][pAmmo11] = dini_Int(string2,"Ammo11");
PlayerInfo[playerid][pAmmo12] = dini_Int(string2,"Ammo12");
PlayerInfo[playerid][pAmmo13] = dini_Int(string2,"Ammo13");
PlayerInfo[playerid][pJob] = dini_Int(string2,"Job");
PlayerInfo[playerid][pPayCheck] = dini_Int(string2,"PayCheck");
PlayerInfo[playerid][pPayDay] = dini_Int(string2,"PayDay");
PlayerInfo[playerid][pDonateRank] = dini_Int(string2,"DonateRank");
PlayerInfo[playerid][pConnectTime] = dini_Int(string2,"ConnectTime");
PlayerInfo[playerid][pDonateTime] = dini_Int(string2,"DonateTime");
PlayerInfo[playerid][pJailed] = dini_Int(string2,"Jailed");
PlayerInfo[playerid][pJailTime] = dini_Int(string2,"JailTime");
PlayerInfo[playerid][pDrugs] = dini_Int(string2,"Drugs");
PlayerInfo[playerid][pMats] = dini_Int(string2,"Materials");
PlayerInfo[playerid][pVaultOwned] = dini_Int(string2,"VaultOwned");
PlayerInfo[playerid][pVaultDrugs] = dini_Int(string2,"VaultDrugs");
PlayerInfo[playerid][pVaultMats] = dini_Int(string2,"VaultMats");
PlayerInfo[playerid][pWatch] = dini_Int(string2,"Watch");
PlayerInfo[playerid][pPhoneBook] = dini_Int(string2,"PhoneBook");
PlayerInfo[playerid][pDrivLic] = dini_Int(string2,"CarLic");
PlayerInfo[playerid][pCarkey] = dini_Int(string2,"Car");
PlayerInfo[playerid][pCarkey2] = dini_Int(string2,"Car2");
PlayerInfo[playerid][pSocial] = dini_Int(string2,"Social Security");
PlayerInfo[playerid][pToolkit] = dini_Int(string2,"Toolkit");
PlayerInfo[playerid][pCarkey3] = dini_Int(string2,"Car3");
PlayerInfo[playerid][pRadioHandle] = dini_Int(string2,"Radio ID");
PlayerInfo[playerid][pGuard] = dini_Int(string2,"Prison Guard");
PlayerInfo[playerid][pPrisoner] = dini_Int(string2,"Prisoner");
PlayerInfo[playerid][pMarried] = dini_Int(string2,"Married");
PlayerInfo[playerid][pTesters] = dini_Int(string2,"Tester");
WantedLevel[playerid] = dini_Int(string2,"WantedLevel");
PlayerInfo[playerid][pGunLic] = dini_Int(string2,"GunLic");
PlayerInfo[playerid][pCrimes] = dini_Int(string2,"Crimes");
PlayerInfo[playerid][pPhoneNumber1] = dini_Int(string2,"PhoneNumber1");
PlayerInfo[playerid][pPhoneNumber2] = dini_Int(string2,"PhoneNumber2");
PlayerInfo[playerid][pPhoneNumber3] = dini_Int(string2,"PhoneNumber3");
PlayerInfo[playerid][pPhoneNumber4] = dini_Int(string2,"PhoneNumber4");
PlayerInfo[playerid][pPhoneNumber5] = dini_Int(string2,"PhoneNumber5");
PlayerInfo[playerid][pPhoneNumber6] = dini_Int(string2,"PhoneNumber6");
PlayerInfo[playerid][pPhoneNumber7] = dini_Int(string2,"PhoneNumber7");
string = dini_Get(string2, "PhoneContact1");
strmid(PlayerInfo[playerid][pPhoneContact1], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact2");
strmid(PlayerInfo[playerid][pPhoneContact2], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact3");
strmid(PlayerInfo[playerid][pPhoneContact3], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact4");
strmid(PlayerInfo[playerid][pPhoneContact4], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact5");
strmid(PlayerInfo[playerid][pPhoneContact5], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact6");
strmid(PlayerInfo[playerid][pPhoneContact6], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact7");
strmid(PlayerInfo[playerid][pPhoneContact7], string, 0, strlen(string), 255);
PlayerInfo[playerid][pArrested] = dini_Int(string2,"Arrested");
string = dini_Get(string2, "MarriedTo");
strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
string = dini_Get(string2, "Taunt");
strmid(PlayerInfo[playerid][pTaunt], string, 0, strlen(string), 255);
PlayerInfo[playerid][pInvWeapon] = dini_Int(string2,"InvWeapon");
PlayerInfo[playerid][pInvAmmo] = dini_Int(string2,"InvAmmo");
PlayerInfo[playerid][pInvWeapon2] = dini_Int(string2,"InvWeapon2");
PlayerInfo[playerid][pInvAmmo2] = dini_Int(string2,"InvAmmo2");
PlayerInfo[playerid][pInvWeapon3] = dini_Int(string2,"InvWeapon3");
PlayerInfo[playerid][pInvAmmo3] = dini_Int(string2,"InvAmmo3");
PlayerInfo[playerid][pInvWeapon4] = dini_Int(string2,"InvWeapon4");
PlayerInfo[playerid][pInvAmmo4] = dini_Int(string2,"InvAmmo4");
PlayerInfo[playerid][pInvCash] = dini_Int(string2,"InvCash");
PlayerInfo[playerid][pInvBeer] = dini_Int(string2,"InvBeer");
PlayerInfo[playerid][pInvWine] = dini_Int(string2,"InvWine");
PlayerInfo[playerid][pInvCiggy] = dini_Int(string2,"InvCiggy");
PlayerInfo[playerid][pHidden] = dini_Int(string2,"Hidden");
PlayerInfo[playerid][pWalkie] = dini_Int(string2,"Walkie");
PlayerInfo[playerid][pWalkieFreq] = dini_Int(string2,"WalkieFreq");
PlayerInfo[playerid][pLighter] = dini_Int(string2,"Lighter");
Owner[playerid] = dini_Int(string2,"CarOwned");
//CarAlarm[vehi] = dini_Int(string2,"CarAlarm");
PlayerInfo[playerid][pCigs] = dini_Int(string2,"Cigs");
string = dini_Get(string2, "CarOwner");
strmid(CarOwner[playerid], string, 0, strlen(string), 255);
string = dini_Get(string2, "BanReason");
strmid(PlayerInfo[playerid][pBanReason], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes1");
strmid(PlayerInfo[playerid][pFishes1], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes2");
strmid(PlayerInfo[playerid][pFishes2], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes3");
strmid(PlayerInfo[playerid][pFishes3], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes4");
strmid(PlayerInfo[playerid][pFishes4], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes5");
strmid(PlayerInfo[playerid][pFishes5], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes6");
strmid(PlayerInfo[playerid][pFishes6], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes7");
strmid(PlayerInfo[playerid][pFishes7], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes8");
strmid(PlayerInfo[playerid][pFishes8], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes9");
strmid(PlayerInfo[playerid][pFishes9], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes10");
strmid(PlayerInfo[playerid][pFishes10], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes11");
strmid(PlayerInfo[playerid][pFishes11], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes12");
strmid(PlayerInfo[playerid][pFishes12], string, 0, strlen(string), 255);
PlayerInfo[playerid][pFishes] = dini_Int(string2,"Fishes");
PlayerInfo[playerid][pFish][0] = dini_Int(string2,"Fish1");
PlayerInfo[playerid][pFish][1] = dini_Int(string2,"Fish2");
PlayerInfo[playerid][pFish][2] = dini_Int(string2,"Fish3");
PlayerInfo[playerid][pFish][3] = dini_Int(string2,"Fish4");
PlayerInfo[playerid][pFish][4] = dini_Int(string2,"Fish5");
PlayerInfo[playerid][pFish][5] = dini_Int(string2,"Fish6");
PlayerInfo[playerid][pFish][6] = dini_Int(string2,"Fish7");
PlayerInfo[playerid][pFish][7] = dini_Int(string2,"Fish8");
PlayerInfo[playerid][pFish][8] = dini_Int(string2,"Fish9");
PlayerInfo[playerid][pFish][9] = dini_Int(string2,"Fish10");
PlayerInfo[playerid][pFish][10] = dini_Int(string2,"Fish11");
PlayerInfo[playerid][pFish][11] = dini_Int(string2,"Fish12");
PlayerInfo[playerid][pNote1s] = dini_Int(string2,"Note1s");
PlayerInfo[playerid][pNote2s] = dini_Int(string2,"Note2s");
PlayerInfo[playerid][pNote3s] = dini_Int(string2,"Note3s");
PlayerInfo[playerid][pNote4s] = dini_Int(string2,"Note4s");
PlayerInfo[playerid][pNote5s] = dini_Int(string2,"Note5s");
PlayerInfo[playerid][pQuestion1a] = dini_Int(string2,"Question correct");
PlayerInfo[playerid][pQuestion2a] = dini_Int(string2,"Question correct2");
PlayerInfo[playerid][pQuestion3a] = dini_Int(string2,"Question correct3");
PlayerInfo[playerid][pQuestion4a] = dini_Int(string2,"Question correct4");
PlayerInfo[playerid][pQuestion5a] = dini_Int(string2,"Question correct5");
PlayerInfo[playerid][pQuestion6a] = dini_Int(string2,"Question correct6");
PlayerInfo[playerid][pQuestion7a] = dini_Int(string2,"Question correct7");
PlayerInfo[playerid][pQuestion8a] = dini_Int(string2,"Question correct8");
PlayerInfo[playerid][pQuestion9a] = dini_Int(string2,"Question correct9");
PlayerInfo[playerid][pQuestion10a] = dini_Int(string2,"Question correct10");
PlayerInfo[playerid][pQuestion11a] = dini_Int(string2,"Question correct11");
PlayerInfo[playerid][pQuestion12a] = dini_Int(string2,"Question correct12");
PlayerInfo[playerid][pQuestion13a] = dini_Int(string2,"Question correct13");
PlayerInfo[playerid][pQuestion14a] = dini_Int(string2,"Question correct14");
string = dini_Get(string2, "Note1");
strmid(PlayerInfo[playerid][pNote1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion1");
strmid(PlayerInfo[playerid][pQuestion1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion2");
strmid(PlayerInfo[playerid][pQuestion1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion3");
strmid(PlayerInfo[playerid][pQuestion3], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion4");
strmid(PlayerInfo[playerid][pQuestion4], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion5");
strmid(PlayerInfo[playerid][pQuestion5], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion6");
strmid(PlayerInfo[playerid][pQuestion6], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion7");
strmid(PlayerInfo[playerid][pQuestion7], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion8");
strmid(PlayerInfo[playerid][pQuestion8], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion9");
strmid(PlayerInfo[playerid][pQuestion9], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion10");
strmid(PlayerInfo[playerid][pQuestion10], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion11");
strmid(PlayerInfo[playerid][pQuestion11], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion12");
strmid(PlayerInfo[playerid][pQuestion12], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion13");
strmid(PlayerInfo[playerid][pQuestion13], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion14");
strmid(PlayerInfo[playerid][pQuestion14], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note2");
strmid(PlayerInfo[playerid][pNote2], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note3");
strmid(PlayerInfo[playerid][pNote3], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note4");
strmid(PlayerInfo[playerid][pNote4], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note5");
strmid(PlayerInfo[playerid][pNote5], string, 0, strlen(string), 255);
JobDelay[playerid] = dini_Int(string2,"JobDelay");
string = dini_Get(string2, "Accent");
strmid(PlayerInfo[playerid][pAccent], string, 0, strlen(string), 255);
PlayerInfo[playerid][pVoted] = dini_Int(string2,"Voted2");
string = dini_Get(string2, "AdmName");
strmid(PlayerInfo[playerid][pAdmName], string, 0, strlen(string), 255);
PlayerInfo[playerid][pHeadValue] = dini_Int(string2,"HeadValue");
PlayerInfo[playerid][pHiddenNum] = dini_Int(string2,"HiddenNum");
PlayerInfo[playerid][pSkate] = dini_Int(string2,"Skate");
PlayerInfo[playerid][pRadio] = dini_Int(string2,"Radio");
PlayerInfo[playerid][pTicket][0] = dini_Int(string2,"Ticket0");
PlayerInfo[playerid][pTicket][1] = dini_Int(string2,"Ticket1");
PlayerInfo[playerid][pTicket][2] = dini_Int(string2,"Ticket2");
PlayerInfo[playerid][pTicket][3] = dini_Int(string2,"Ticket3");
PlayerInfo[playerid][pTicket][4] = dini_Int(string2,"Ticket4");
string = dini_Get(string2, "TicketReason0");
strmid(PlayerInfo[playerid][pTicketReason0], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason1");
strmid(PlayerInfo[playerid][pTicketReason1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason2");
strmid(PlayerInfo[playerid][pTicketReason2], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason3");
strmid(PlayerInfo[playerid][pTicketReason3], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason4");
strmid(PlayerInfo[playerid][pTicketReason4], string, 0, strlen(string), 255);
string = dini_Get(string2, "App");
strmid(PlayerInfo[playerid][pApp], string, 0, strlen(string), 255);
PlayerInfo[playerid][pChanges] = dini_Int(string2,"Changes");
PlayerInfo[playerid][pFamNum] = dini_Int(string2,"FamNum");
string = dini_Get(string2, "Tattoo");
strmid(PlayerInfo[playerid][pTattoo], string, 0, strlen(string), 255);
PlayerInfo[playerid][pCellphone] = dini_Int(string2,"Cellphone");
PlayerInfo[playerid][pCelltime] = dini_Int(string2,"Celltime");
PlayerInfo[playerid][pCellplan] = dini_Int(string2,"Cellplan");
PlayerInfo[playerid][pDonerGate1] = dini_Int(string2,"DonerGate1");
BreakAllow[playerid] = dini_Int(string2,"BreakAllow");
PlayerInfo[playerid][pFurnLocked] = dini_Int(string2,"FurnLocked");
PlayerInfo[playerid][pDonatorCarDate] = dini_Int(string2,"DonateCarDate");
PlayerInfo[playerid][pWarrant] = dini_Int(string2,"Warrant");
PlayerInfo[playerid][pLockTime] = dini_Int(string2,"LockTime");
string = dini_Get(string2, "WarrentReason");
PlayerInfo[playerid][pFactionIden] = dini_Int(string2,"FactionIdent");
for(new v = 0; v < MAX_PLAYERTOYS; v++)
{
new string3[256];
format(string3, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);
dini_Int(string2,string3);
format(string3, 32, "pt%dBone\n",v);
dini_Int(string2,string3);
PlayerToyInfo[playerid][v][ptPosX] = dini_FloatSet(string2,"pt%dPosX",v);
PlayerToyInfo[playerid][v][ptPosY] = dini_FloatSet(string2,"pt%dPosY",v);
PlayerToyInfo[playerid][v][ptPosZ] = dini_FloatSet(string2,"pt%dPosZ",v);
PlayerToyInfo[playerid][v][ptRotX] = dini_FloatSet(string2,"pt%dRotX",v);
PlayerToyInfo[playerid][v][ptRotY] = dini_FloatSet(string2,"pt%dRotY",v);
PlayerToyInfo[playerid][v][ptRotZ] = dini_FloatSet(string2,"pt%dRotZ",v);






}
strmid(PlayerInfo[playerid][pWarrantReason], string, 0, strlen(string), 255);
if(PlayerInfo[playerid][pCrashed] != 0) {
HouseEntered[playerid] = dini_Int(string2,"HouseEntered");
IntEntered[playerid] = dini_Int(string2,"IntEntered");
PlayerInfo[playerid][pWorld] = dini_Int(string2,"World");
PlayerInfo[playerid][pCrashArmour] = dini_Float(string2,"CrashArmour");
PlayerInfo[playerid][pCrashHealth] = dini_Float(string2,"CrashHealth");
PlayerInfo[playerid][pMask] = dini_Int(string2,"Masque");
PlayerInfo[playerid][pMaskUse] = dini_Int(string2,"MasqueUse");
}
if(PlayerInfo[playerid][pDonateRank] >= 2) {
PlayerInfo[playerid][pMask] = dini_Int(string2,"Masque");
}
}
else {
if(WrongPass[playerid] < 5) {
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"Mauvais mot de passe\nS'il vous plait, entrez le mot de passe correct:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSW ORD,"Connexion",loginstring,"Connexion","Quitter") ;
WrongPass[playerid]++;
}
else {

public OnPlayerRequestClass(playerid, classid)
{
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
{
//PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.223;
TogglePlayerSpectating(playerid,1);
if(gPlayerAccount[playerid] == 1)
{
// new loginstring[256];
ShowPlayerDialog(playerid, 12346, DIALOG_STYLE_PASSWORD, "{05FF00}Bienvenue sur Weedhits Roleplay","{FFFFFF}Vous avez 60 secondes pour vous connecter\n{FFFFFF}N'oubliez pas de vous rendre sur notre forum http://weedhits-rp.fr\n\n\n{FFFFFF}Entrez votre mot de passe:", "Connexion", "Annuler");
// loginafk = SetTimer("LAFK",60000,1);



}
else
{
Reply
#4

up..
Reply
#5

help plz
Reply
#6

Use the [ pawn] and [/ pawn] tags please.. That will make it easier for us to use.
Reply
#7

Ok, sorry. There's:

pawn Код:
public OnPlayerSpawn(playerid)
{
AntiDeAMX();
if (!AlreadyGiveWeapons[playerid]) SetTimerEx("LoadWeaponsToFile",250,false,"i",playe rid);

if (gPlayerAccount[playerid] == 0) {
SendClientMessage(playerid,COLOR_LIGHTRED,"[SERVEUR]: Vous avez йtй kickй car vous ne vous кtes pas enregistrй.");
Kick(playerid);
}
else if (gPlayerLogged[playerid] == 0) {
SendClientMessage(playerid,COLOR_LIGHTRED,"[SERVEUR]: Vous avez йtй kickй pour ne pas vous avoir connecter.");
Kick(playerid);
}
else {
if(UsingSkin[playerid] == 0) {
SetPlayerSkinEx(playerid, PlayerInfo[playerid][pModel]);
}
if(DoneSpecing[playerid] == 1) {
SetPlayerSkinEx(playerid, PlayerInfo[playerid][pModel]);
new house = PlayerInfo[playerid][pHousekey];
new motel = PlayerInfo[playerid][pComplexkey];
if(house != 255) {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,house+100);

public OnPlayerLogin(playerid,password[])
{
new string2[128], keystring[256], string[256];
//   new vehi = GetPlayerVehicleID(playerid);
format(string2, sizeof(string2), "users/%s.ini", PlayerName(playerid));
keystring = dini_Get(string2, "Key");
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
if(strcmp(keystring, password, true) == 0) {
PlayerInfo[playerid][pCash] = dini_Int(string2,"Cash");
PlayerInfo[playerid][pAccount] = dini_Int(string2,"Account");
HouseRent[playerid] = dini_Int(string2,"House Rent");
PlayerInfo[playerid][pFinWeapon][0] = dini_Int(string2,"Weapon0");
PlayerInfo[playerid][pFinWeapon][1] = dini_Int(string2,"Weapon1");
PlayerInfo[playerid][pFinWeapon][2] = dini_Int(string2,"Weapon2");
PlayerInfo[playerid][pFinWeapon][3] = dini_Int(string2,"Weapon3");
PlayerInfo[playerid][pFinWeapon][4] = dini_Int(string2,"Weapon4");
PlayerInfo[playerid][pFinWeapon][5] = dini_Int(string2,"Weapon5");
PlayerInfo[playerid][pFinWeapon][6] = dini_Int(string2,"Weapon6");
PlayerInfo[playerid][pFinWeapon][7] = dini_Int(string2,"Weapon7");
PlayerInfo[playerid][pFinWeapon][8] = dini_Int(string2,"Weapon8");
PlayerInfo[playerid][pFinWeapon][9] = dini_Int(string2,"Weapon9");
PlayerInfo[playerid][pFinWeapon][10] = dini_Int(string2,"Weapon10");
PlayerInfo[playerid][pFinWeapon][11] = dini_Int(string2,"Weapon11");
PlayerInfo[playerid][pFinAmmo][0] = dini_Int(string2,"Ammos0");
PlayerInfo[playerid][pFinAmmo][1] = dini_Int(string2,"Ammos1");
PlayerInfo[playerid][pFinAmmo][2] = dini_Int(string2,"Ammos2");
PlayerInfo[playerid][pFinAmmo][3] = dini_Int(string2,"Ammos3");
PlayerInfo[playerid][pFinAmmo][4] = dini_Int(string2,"Ammos4");
PlayerInfo[playerid][pFinAmmo][5] = dini_Int(string2,"Ammos5");
PlayerInfo[playerid][pFinAmmo][6] = dini_Int(string2,"Ammos6");
PlayerInfo[playerid][pFinAmmo][7] = dini_Int(string2,"Ammos7");
PlayerInfo[playerid][pFinAmmo][8] = dini_Int(string2,"Ammos8");
PlayerInfo[playerid][pFinAmmo][9] = dini_Int(string2,"Ammos9");
PlayerInfo[playerid][pFinAmmo][10] = dini_Int(string2,"Ammos10");
PlayerInfo[playerid][pFinAmmo][11] = dini_Int(string2,"Ammos11");
PlayerInfo[playerid][pBox][0] = dini_Int(string2,"BoxItem1");
PlayerInfo[playerid][pBox][1] = dini_Int(string2,"BoxItem2");
PlayerInfo[playerid][pBox][2] = dini_Int(string2,"BoxItem3");
PlayerInfo[playerid][pBox][3] = dini_Int(string2,"BoxItem4");
PlayerInfo[playerid][pBox][4] = dini_Int(string2,"BoxItem5");
PlayerInfo[playerid][pBox][5] = dini_Int(string2,"BoxItem6");
PlayerInfo[playerid][pBox][6] = dini_Int(string2,"BoxItem7");
PlayerInfo[playerid][pBox][7] = dini_Int(string2,"BoxItem8");
PlayerInfo[playerid][pBox][8] = dini_Int(string2,"BoxItem9");
PlayerInfo[playerid][pBox][9] = dini_Int(string2,"BoxItem10");
PlayerInfo[playerid][pBox][10] = dini_Int(string2,"BoxItem11");
PlayerInfo[playerid][pBoxAmmo][0] = dini_Int(string2,"BoxAmmount1");
PlayerInfo[playerid][pBoxAmmo][1] = dini_Int(string2,"BoxAmmount2");
PlayerInfo[playerid][pBoxAmmo][2] = dini_Int(string2,"BoxAmmount3");
PlayerInfo[playerid][pBoxAmmo][3] = dini_Int(string2,"BoxAmmount4");
PlayerInfo[playerid][pBoxAmmo][4] = dini_Int(string2,"BoxAmmount5");
PlayerInfo[playerid][pBoxAmmo][5] = dini_Int(string2,"BoxAmmount6");
PlayerInfo[playerid][pBoxAmmo][6] = dini_Int(string2,"BoxAmmount7");
PlayerInfo[playerid][pBoxAmmo][7] = dini_Int(string2,"BoxAmmount8");
PlayerInfo[playerid][pBoxAmmo][8] = dini_Int(string2,"BoxAmmount9");
PlayerInfo[playerid][pBoxAmmo][9] = dini_Int(string2,"BoxAmmount10");
PlayerInfo[playerid][pBoxAmmo][10] = dini_Int(string2,"BoxAmmount11");
cAnim[playerid] = dini_Int(string2,"Chat Anim");
OldCar[playerid] = dini_Int(string2,"Old Car");
PlayerInfo[playerid][pAdmin] = dini_Int(string2,"AdminLevel");
PlayerInfo[playerid][pOrigin] = dini_Int(string2,"Origin");
PlayerInfo[playerid][pAjailc] = dini_Int(string2,"AdminJailCount");
PlayerInfo[playerid][pLevel] = dini_Int(string2,"Level");
PlayerInfo[playerid][pArrive] = dini_Int(string2,"Arrive");
PlayerInfo[playerid][pPin] = dini_Int(string2,"Bank Pin");
PlayerInfo[playerid][pChequeId] = dini_Int(string2,"Pay Cheque ID");
PlayerInfo[playerid][pChequeCode] = dini_Int(string2,"Pay Cheque Code");
PayR[playerid] = dini_Int(string2,"Pay Cheque Recieved");
PlayerInfo[playerid][pCard] = dini_Int(string2,"Debit Card");
PlayerInfo[playerid][pSeeds] = dini_Int(string2,"Seeds");
PlayerInfo[playerid][pExp] = dini_Int(string2,"Respect");
PlayerInfo[playerid][gPupgrade] = dini_Int(string2,"UpgradePoints");
PlayerInfo[playerid][pKills] = dini_Int(string2,"Kills");
PlayerInfo[playerid][pSHealth] = dini_Float(string2,"pSHealth");
PlayerInfo[playerid][pHealth] = dini_Float(string2,"Health");
PlayerInfo[playerid][pPos_x] = dini_Float(string2,"Pos_x");
PlayerInfo[playerid][pPos_y] = dini_Float(string2,"Pos_y");
PlayerInfo[playerid][pPos_z] = dini_Float(string2,"Pos_z");
PlayerInfo[playerid][pGateID][0] = dini_Int(string2,"Gate ID");
PlayerInfo[playerid][pGateID][1] = dini_Int(string2,"Gate ID2");
PlayerInfo[playerid][pGateID][2] = dini_Int(string2,"Gate ID3");
PlayerInfo[playerid][pInt] = dini_Int(string2,"Int");
PlayerInfo[playerid][pLocal] = dini_Int(string2,"Local");
PlayerInfo[playerid][pTeam] = dini_Int(string2,"Team");
PlayerInfo[playerid][pCheck] = dini_Int(string2,"Check");
PlayerInfo[playerid][pCheckr] = dini_Int(string2,"CheckRecieved");
PlayerInfo[playerid][pSavings] = dini_Int(string2,"Savings");
PlayerInfo[playerid][pModel] = dini_Int(string2,"Char");
PlayerInfo[playerid][pPnumber] = dini_Int(string2,"PhoneNr");
PlayerInfo[playerid][pHousekey] = dini_Int(string2,"pHouseKey");
PlayerInfo[playerid][pComplexkey] = dini_Int(string2,"Complex");
PlayerInfo[playerid][pPbiskey] = dini_Int(string2,"Bizz");
PlayerInfo[playerid][pBanned] = dini_Int(string2,"Banned");
PlayerInfo[playerid][pFightSkill] = dini_Int(string2,"FightSkill");
PlayerInfo[playerid][pSex] = dini_Int(string2,"Sex");
PlayerInfo[playerid][pAge] = dini_Int(string2,"Age");
PlayerInfo[playerid][pTut] = dini_Int(string2,"Tutorial");
PlayerInfo[playerid][pMember] = dini_Int(string2,"Member");
PlayerInfo[playerid][pRank] = dini_Int(string2,"Rank");
PlayerInfo[playerid][pJoined] = dini_Int(string2, "Joined");
Enter[playerid] = dini_Int(string2,"InteriorEntered");
PlayerInfo[playerid][pCrashed] = dini_Int(string2,"Crashed");
MaxC[playerid] = dini_Int(string2,"Max Contacts");
MaxC2[playerid] = dini_Int(string2,"Max Contacts2");
MaxC3[playerid] = dini_Int(string2,"Max Contacts3");
MaxC4[playerid] = dini_Int(string2,"Max Contacts4");
MaxC5[playerid] = dini_Int(string2,"Max Contacts5");
MaxC6[playerid] = dini_Int(string2,"Max Contacts6");
MaxC7[playerid] = dini_Int(string2,"Max Contacts7");
PlayerInfo[playerid][pGun1] = dini_Int(string2,"Gun1");
PlayerInfo[playerid][pGun2] = dini_Int(string2,"Gun2");
PlayerInfo[playerid][pGun3] = dini_Int(string2,"Gun3");
PlayerInfo[playerid][pGun4] = dini_Int(string2,"Gun4");
PlayerInfo[playerid][pGun5] = dini_Int(string2,"Gun5");
PlayerInfo[playerid][pGun6] = dini_Int(string2,"Gun6");
PlayerInfo[playerid][pGun7] = dini_Int(string2,"Gun7");
PlayerInfo[playerid][pGun8] = dini_Int(string2,"Gun8");
PlayerInfo[playerid][pGun9] = dini_Int(string2,"Gun9");
PlayerInfo[playerid][pGun10] = dini_Int(string2,"Gun10");
PlayerInfo[playerid][pGun11] = dini_Int(string2,"Gun11");
PlayerInfo[playerid][pGun12] = dini_Int(string2,"Gun12");
PlayerInfo[playerid][pGun13] = dini_Int(string2,"Gun13");
PlayerInfo[playerid][pAmmo1] = dini_Int(string2,"Ammo1");
PlayerInfo[playerid][pAmmo2] = dini_Int(string2,"Ammo2");
PlayerInfo[playerid][pAmmo3] = dini_Int(string2,"Ammo3");
PlayerInfo[playerid][pAmmo4] = dini_Int(string2,"Ammo4");
PlayerInfo[playerid][pAmmo5] = dini_Int(string2,"Ammo5");
PlayerInfo[playerid][pAmmo6] = dini_Int(string2,"Ammo6");
PlayerInfo[playerid][pAmmo7] = dini_Int(string2,"Ammo7");
PlayerInfo[playerid][pAmmo8] = dini_Int(string2,"Ammo8");
PlayerInfo[playerid][pAmmo9] = dini_Int(string2,"Ammo9");
PlayerInfo[playerid][pAmmo10] = dini_Int(string2,"Ammo10");
PlayerInfo[playerid][pAmmo11] = dini_Int(string2,"Ammo11");
PlayerInfo[playerid][pAmmo12] = dini_Int(string2,"Ammo12");
PlayerInfo[playerid][pAmmo13] = dini_Int(string2,"Ammo13");
PlayerInfo[playerid][pJob] = dini_Int(string2,"Job");
PlayerInfo[playerid][pPayCheck] = dini_Int(string2,"PayCheck");
PlayerInfo[playerid][pPayDay] = dini_Int(string2,"PayDay");
PlayerInfo[playerid][pDonateRank] = dini_Int(string2,"DonateRank");
PlayerInfo[playerid][pConnectTime] = dini_Int(string2,"ConnectTime");
PlayerInfo[playerid][pDonateTime] = dini_Int(string2,"DonateTime");
PlayerInfo[playerid][pJailed] = dini_Int(string2,"Jailed");
PlayerInfo[playerid][pJailTime] = dini_Int(string2,"JailTime");
PlayerInfo[playerid][pDrugs] = dini_Int(string2,"Drugs");
PlayerInfo[playerid][pMats] = dini_Int(string2,"Materials");
PlayerInfo[playerid][pVaultOwned] = dini_Int(string2,"VaultOwned");
PlayerInfo[playerid][pVaultDrugs] = dini_Int(string2,"VaultDrugs");
PlayerInfo[playerid][pVaultMats] = dini_Int(string2,"VaultMats");
PlayerInfo[playerid][pWatch] = dini_Int(string2,"Watch");
PlayerInfo[playerid][pPhoneBook] = dini_Int(string2,"PhoneBook");
PlayerInfo[playerid][pDrivLic] = dini_Int(string2,"CarLic");
PlayerInfo[playerid][pCarkey] = dini_Int(string2,"Car");
PlayerInfo[playerid][pCarkey2] = dini_Int(string2,"Car2");
PlayerInfo[playerid][pSocial] = dini_Int(string2,"Social Security");
PlayerInfo[playerid][pToolkit] = dini_Int(string2,"Toolkit");
PlayerInfo[playerid][pCarkey3] = dini_Int(string2,"Car3");
PlayerInfo[playerid][pRadioHandle] = dini_Int(string2,"Radio ID");
PlayerInfo[playerid][pGuard] = dini_Int(string2,"Prison Guard");
PlayerInfo[playerid][pPrisoner] = dini_Int(string2,"Prisoner");
PlayerInfo[playerid][pMarried] = dini_Int(string2,"Married");
PlayerInfo[playerid][pTesters] = dini_Int(string2,"Tester");
WantedLevel[playerid] = dini_Int(string2,"WantedLevel");
PlayerInfo[playerid][pGunLic] = dini_Int(string2,"GunLic");
PlayerInfo[playerid][pCrimes] = dini_Int(string2,"Crimes");
PlayerInfo[playerid][pPhoneNumber1] = dini_Int(string2,"PhoneNumber1");
PlayerInfo[playerid][pPhoneNumber2] = dini_Int(string2,"PhoneNumber2");
PlayerInfo[playerid][pPhoneNumber3] = dini_Int(string2,"PhoneNumber3");
PlayerInfo[playerid][pPhoneNumber4] = dini_Int(string2,"PhoneNumber4");
PlayerInfo[playerid][pPhoneNumber5] = dini_Int(string2,"PhoneNumber5");
PlayerInfo[playerid][pPhoneNumber6] = dini_Int(string2,"PhoneNumber6");
PlayerInfo[playerid][pPhoneNumber7] = dini_Int(string2,"PhoneNumber7");
string = dini_Get(string2, "PhoneContact1");
strmid(PlayerInfo[playerid][pPhoneContact1], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact2");
strmid(PlayerInfo[playerid][pPhoneContact2], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact3");
strmid(PlayerInfo[playerid][pPhoneContact3], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact4");
strmid(PlayerInfo[playerid][pPhoneContact4], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact5");
strmid(PlayerInfo[playerid][pPhoneContact5], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact6");
strmid(PlayerInfo[playerid][pPhoneContact6], string, 0, strlen(string), 255);
string = dini_Get(string2, "PhoneContact7");
strmid(PlayerInfo[playerid][pPhoneContact7], string, 0, strlen(string), 255);
PlayerInfo[playerid][pArrested] = dini_Int(string2,"Arrested");
string = dini_Get(string2, "MarriedTo");
strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
string = dini_Get(string2, "Taunt");
strmid(PlayerInfo[playerid][pTaunt], string, 0, strlen(string), 255);
PlayerInfo[playerid][pInvWeapon] = dini_Int(string2,"InvWeapon");
PlayerInfo[playerid][pInvAmmo] = dini_Int(string2,"InvAmmo");
PlayerInfo[playerid][pInvWeapon2] = dini_Int(string2,"InvWeapon2");
PlayerInfo[playerid][pInvAmmo2] = dini_Int(string2,"InvAmmo2");
PlayerInfo[playerid][pInvWeapon3] = dini_Int(string2,"InvWeapon3");
PlayerInfo[playerid][pInvAmmo3] = dini_Int(string2,"InvAmmo3");
PlayerInfo[playerid][pInvWeapon4] = dini_Int(string2,"InvWeapon4");
PlayerInfo[playerid][pInvAmmo4] = dini_Int(string2,"InvAmmo4");
PlayerInfo[playerid][pInvCash] = dini_Int(string2,"InvCash");
PlayerInfo[playerid][pInvBeer] = dini_Int(string2,"InvBeer");
PlayerInfo[playerid][pInvWine] = dini_Int(string2,"InvWine");
PlayerInfo[playerid][pInvCiggy] = dini_Int(string2,"InvCiggy");
PlayerInfo[playerid][pHidden] = dini_Int(string2,"Hidden");
PlayerInfo[playerid][pWalkie] = dini_Int(string2,"Walkie");
PlayerInfo[playerid][pWalkieFreq] = dini_Int(string2,"WalkieFreq");
PlayerInfo[playerid][pLighter] = dini_Int(string2,"Lighter");
Owner[playerid] = dini_Int(string2,"CarOwned");
//CarAlarm[vehi] = dini_Int(string2,"CarAlarm");
PlayerInfo[playerid][pCigs] = dini_Int(string2,"Cigs");
string = dini_Get(string2, "CarOwner");
strmid(CarOwner[playerid], string, 0, strlen(string), 255);
string = dini_Get(string2, "BanReason");
strmid(PlayerInfo[playerid][pBanReason], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes1");
strmid(PlayerInfo[playerid][pFishes1], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes2");
strmid(PlayerInfo[playerid][pFishes2], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes3");
strmid(PlayerInfo[playerid][pFishes3], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes4");
strmid(PlayerInfo[playerid][pFishes4], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes5");
strmid(PlayerInfo[playerid][pFishes5], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes6");
strmid(PlayerInfo[playerid][pFishes6], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes7");
strmid(PlayerInfo[playerid][pFishes7], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes8");
strmid(PlayerInfo[playerid][pFishes8], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes9");
strmid(PlayerInfo[playerid][pFishes9], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes10");
strmid(PlayerInfo[playerid][pFishes10], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes11");
strmid(PlayerInfo[playerid][pFishes11], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes12");
strmid(PlayerInfo[playerid][pFishes12], string, 0, strlen(string), 255);
PlayerInfo[playerid][pFishes] = dini_Int(string2,"Fishes");
PlayerInfo[playerid][pFish][0] = dini_Int(string2,"Fish1");
PlayerInfo[playerid][pFish][1] = dini_Int(string2,"Fish2");
PlayerInfo[playerid][pFish][2] = dini_Int(string2,"Fish3");
PlayerInfo[playerid][pFish][3] = dini_Int(string2,"Fish4");
PlayerInfo[playerid][pFish][4] = dini_Int(string2,"Fish5");
PlayerInfo[playerid][pFish][5] = dini_Int(string2,"Fish6");
PlayerInfo[playerid][pFish][6] = dini_Int(string2,"Fish7");
PlayerInfo[playerid][pFish][7] = dini_Int(string2,"Fish8");
PlayerInfo[playerid][pFish][8] = dini_Int(string2,"Fish9");
PlayerInfo[playerid][pFish][9] = dini_Int(string2,"Fish10");
PlayerInfo[playerid][pFish][10] = dini_Int(string2,"Fish11");
PlayerInfo[playerid][pFish][11] = dini_Int(string2,"Fish12");
PlayerInfo[playerid][pNote1s] = dini_Int(string2,"Note1s");
PlayerInfo[playerid][pNote2s] = dini_Int(string2,"Note2s");
PlayerInfo[playerid][pNote3s] = dini_Int(string2,"Note3s");
PlayerInfo[playerid][pNote4s] = dini_Int(string2,"Note4s");
PlayerInfo[playerid][pNote5s] = dini_Int(string2,"Note5s");
PlayerInfo[playerid][pQuestion1a] = dini_Int(string2,"Question correct");
PlayerInfo[playerid][pQuestion2a] = dini_Int(string2,"Question correct2");
PlayerInfo[playerid][pQuestion3a] = dini_Int(string2,"Question correct3");
PlayerInfo[playerid][pQuestion4a] = dini_Int(string2,"Question correct4");
PlayerInfo[playerid][pQuestion5a] = dini_Int(string2,"Question correct5");
PlayerInfo[playerid][pQuestion6a] = dini_Int(string2,"Question correct6");
PlayerInfo[playerid][pQuestion7a] = dini_Int(string2,"Question correct7");
PlayerInfo[playerid][pQuestion8a] = dini_Int(string2,"Question correct8");
PlayerInfo[playerid][pQuestion9a] = dini_Int(string2,"Question correct9");
PlayerInfo[playerid][pQuestion10a] = dini_Int(string2,"Question correct10");
PlayerInfo[playerid][pQuestion11a] = dini_Int(string2,"Question correct11");
PlayerInfo[playerid][pQuestion12a] = dini_Int(string2,"Question correct12");
PlayerInfo[playerid][pQuestion13a] = dini_Int(string2,"Question correct13");
PlayerInfo[playerid][pQuestion14a] = dini_Int(string2,"Question correct14");
string = dini_Get(string2, "Note1");
strmid(PlayerInfo[playerid][pNote1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion1");
strmid(PlayerInfo[playerid][pQuestion1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion2");
strmid(PlayerInfo[playerid][pQuestion1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion3");
strmid(PlayerInfo[playerid][pQuestion3], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion4");
strmid(PlayerInfo[playerid][pQuestion4], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion5");
strmid(PlayerInfo[playerid][pQuestion5], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion6");
strmid(PlayerInfo[playerid][pQuestion6], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion7");
strmid(PlayerInfo[playerid][pQuestion7], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion8");
strmid(PlayerInfo[playerid][pQuestion8], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion9");
strmid(PlayerInfo[playerid][pQuestion9], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion10");
strmid(PlayerInfo[playerid][pQuestion10], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion11");
strmid(PlayerInfo[playerid][pQuestion11], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion12");
strmid(PlayerInfo[playerid][pQuestion12], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion13");
strmid(PlayerInfo[playerid][pQuestion13], string, 0, strlen(string), 255);
string = dini_Get(string2, "TutQuestion14");
strmid(PlayerInfo[playerid][pQuestion14], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note2");
strmid(PlayerInfo[playerid][pNote2], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note3");
strmid(PlayerInfo[playerid][pNote3], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note4");
strmid(PlayerInfo[playerid][pNote4], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note5");
strmid(PlayerInfo[playerid][pNote5], string, 0, strlen(string), 255);
JobDelay[playerid] = dini_Int(string2,"JobDelay");
string = dini_Get(string2, "Accent");
strmid(PlayerInfo[playerid][pAccent], string, 0, strlen(string), 255);
PlayerInfo[playerid][pVoted] = dini_Int(string2,"Voted2");
string = dini_Get(string2, "AdmName");
strmid(PlayerInfo[playerid][pAdmName], string, 0, strlen(string), 255);
PlayerInfo[playerid][pHeadValue] = dini_Int(string2,"HeadValue");
PlayerInfo[playerid][pHiddenNum] = dini_Int(string2,"HiddenNum");
PlayerInfo[playerid][pSkate] = dini_Int(string2,"Skate");
PlayerInfo[playerid][pRadio] = dini_Int(string2,"Radio");
PlayerInfo[playerid][pTicket][0] = dini_Int(string2,"Ticket0");
PlayerInfo[playerid][pTicket][1] = dini_Int(string2,"Ticket1");
PlayerInfo[playerid][pTicket][2] = dini_Int(string2,"Ticket2");
PlayerInfo[playerid][pTicket][3] = dini_Int(string2,"Ticket3");
PlayerInfo[playerid][pTicket][4] = dini_Int(string2,"Ticket4");
string = dini_Get(string2, "TicketReason0");
strmid(PlayerInfo[playerid][pTicketReason0], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason1");
strmid(PlayerInfo[playerid][pTicketReason1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason2");
strmid(PlayerInfo[playerid][pTicketReason2], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason3");
strmid(PlayerInfo[playerid][pTicketReason3], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason4");
strmid(PlayerInfo[playerid][pTicketReason4], string, 0, strlen(string), 255);
string = dini_Get(string2, "App");
strmid(PlayerInfo[playerid][pApp], string, 0, strlen(string), 255);
PlayerInfo[playerid][pChanges] = dini_Int(string2,"Changes");
PlayerInfo[playerid][pFamNum] = dini_Int(string2,"FamNum");
string = dini_Get(string2, "Tattoo");
strmid(PlayerInfo[playerid][pTattoo], string, 0, strlen(string), 255);
PlayerInfo[playerid][pCellphone] = dini_Int(string2,"Cellphone");
PlayerInfo[playerid][pCelltime] = dini_Int(string2,"Celltime");
PlayerInfo[playerid][pCellplan] = dini_Int(string2,"Cellplan");
PlayerInfo[playerid][pDonerGate1] = dini_Int(string2,"DonerGate1");
BreakAllow[playerid] = dini_Int(string2,"BreakAllow");
PlayerInfo[playerid][pFurnLocked] = dini_Int(string2,"FurnLocked");
PlayerInfo[playerid][pDonatorCarDate] = dini_Int(string2,"DonateCarDate");
PlayerInfo[playerid][pWarrant] = dini_Int(string2,"Warrant");
PlayerInfo[playerid][pLockTime] = dini_Int(string2,"LockTime");
string = dini_Get(string2, "WarrentReason");
PlayerInfo[playerid][pFactionIden] = dini_Int(string2,"FactionIdent");
for(new v = 0; v < MAX_PLAYERTOYS; v++)
{
new string3[256];
format(string3, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);
dini_Int(string2,string3);
format(string3, 32, "pt%dBone\n",v);
dini_Int(string2,string3);
PlayerToyInfo[playerid][v][ptPosX] = dini_FloatSet(string2,"pt%dPosX",v);
PlayerToyInfo[playerid][v][ptPosY] = dini_FloatSet(string2,"pt%dPosY",v);
PlayerToyInfo[playerid][v][ptPosZ] = dini_FloatSet(string2,"pt%dPosZ",v);
PlayerToyInfo[playerid][v][ptRotX] = dini_FloatSet(string2,"pt%dRotX",v);
PlayerToyInfo[playerid][v][ptRotY] = dini_FloatSet(string2,"pt%dRotY",v);
PlayerToyInfo[playerid][v][ptRotZ] = dini_FloatSet(string2,"pt%dRotZ",v);






}
strmid(PlayerInfo[playerid][pWarrantReason], string, 0, strlen(string), 255);
if(PlayerInfo[playerid][pCrashed] != 0) {
HouseEntered[playerid] = dini_Int(string2,"HouseEntered");
IntEntered[playerid] = dini_Int(string2,"IntEntered");
PlayerInfo[playerid][pWorld] = dini_Int(string2,"World");
PlayerInfo[playerid][pCrashArmour] = dini_Float(string2,"CrashArmour");
PlayerInfo[playerid][pCrashHealth] = dini_Float(string2,"CrashHealth");
PlayerInfo[playerid][pMask] = dini_Int(string2,"Masque");
PlayerInfo[playerid][pMaskUse] = dini_Int(string2,"MasqueUse");
}
if(PlayerInfo[playerid][pDonateRank] >= 2) {
PlayerInfo[playerid][pMask] = dini_Int(string2,"Masque");
}
}
else {
if(WrongPass[playerid] < 5) {
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"Mauvais mot de passe\nS'il vous plait, entrez le mot de passe correct:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSW ORD,"Connexion",loginstring,"Connexion","Quitter") ;
WrongPass[playerid]++;
}
else {

public OnPlayerRequestClass(playerid, classid)
{
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
{
//PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.223;
TogglePlayerSpectating(playerid,1);
if(gPlayerAccount[playerid] == 1)
{
//  new loginstring[256];
ShowPlayerDialog(playerid, 12346, DIALOG_STYLE_PASSWORD, "{05FF00}Bienvenue sur Weedhits Roleplay","{FFFFFF}Vous avez 60 secondes pour vous connecter\n{FFFFFF}N'oubliez pas de vous rendre sur notre forum http://weedhits-rp.fr\n\n\n{FFFFFF}Entrez votre mot de passe:", "Connexion", "Annuler");
// loginafk = SetTimer("LAFK",60000,1);



}
else
{
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)