Job beim Spawn

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Abend.
    Ich habe folgendes Problem bei meinem Script:


    Wenn sich ein neuer Spieler auf dem Server registriert, kriegt er automatisch den Job "Trucker". Das ist blöd, da sie sonst nie in eine Fraktion können. Könnte mir einer sagen, wie man dies ausstellt.


    P.S. Kennt jemand ein gutes House und/oder Jobsystem?

  • public OnPlayerConnect(playerid)
    {
    //-----------------------------------------[NPC]--------------------------------
    if(IsPlayerNPC(playerid))
    {
    gPlayerLogged[playerid] = 1;
    }
    //------------------------------------------------------------------------------
    if(Security != 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    PlayerInfo[playerid][pKicks] ++;
    return 1;
    }
    ResetData(playerid);
    SetPlayerSpecialAction(playerid, 0);
    SetPlayerColor(playerid,COLOR_GRAD2);

    new name[MAX_PLAYER_NAME], ip[20], string10[256];
    GetPlayerName(playerid,name, sizeof(name));
    GetPlayerIp(playerid, ip, 128);
    new time[3], time2[6];
    gettime(time[0], time[1], time[2]);
    if(time[1] < 10)
    {
    format(time2, sizeof(time2), "%d:0%d",time[0], time[1]);
    }
    else
    {
    format(time2, sizeof(time2), "%d:%d",time[0], time[1]);
    }
    format(string10, sizeof(string10), "* %s hat den Server betreten.(IP. %s) || %s", name, ip, time2);
    SendAdminMessage(0xCCCCCCFF, string10);
    IPLog(string10);
    return 1;
    }


    Ich bin mit ihm im Adminteam deshalb schreib ich das hier.

  • public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[32];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    new var[32];
    format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
    PlayerInfo[playerid][pCash] = PlayerMoney[playerid];
    format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
    format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
    format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
    format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
    format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
    format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
    format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
    format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
    format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
    format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
    format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
    format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
    format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
    format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
    format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
    format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
    format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
    format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
    format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
    format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
    format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
    format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
    format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
    format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
    format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
    format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
    format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
    format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
    format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
    format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
    format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
    format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
    format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
    format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
    format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
    format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
    format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
    format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
    format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
    format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
    format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
    format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
    format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
    PlayerInfo[playerid][pHealth] = Health[playerid];
    format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
    format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
    format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
    format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
    format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
    format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
    format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
    format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
    if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
    {
    PlayerInfo[playerid][pPos_x] = 1007.6252;
    PlayerInfo[playerid][pPos_y] = -1853.5090;
    PlayerInfo[playerid][pPos_z] = 12.8146;
    }
    if(Spectate[playerid] != 255)
    {
    PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
    PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
    PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
    PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
    PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
    }
    format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
    format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
    format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
    format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
    format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
    format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
    format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
    format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
    format(var, 32, "BikeLic=%d\n",PlayerInfo[playerid][pBikeLic]);fwrite(hFile, var);
    format(var, 32, "TruckLic=%d\n",PlayerInfo[playerid][pTruckLic]);fwrite(hFile, var);
    format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
    format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
    format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
    format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
    format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
    format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
    format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
    format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
    format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);


    format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
    format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
    format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
    format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
    format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
    format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
    format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
    format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
    format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
    format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
    format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
    format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
    format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
    format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
    format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
    format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);

    format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
    format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
    format(var, 32, "Information=%d\n",PlayerInfo[playerid][pInfoTut]);fwrite(hFile, var);
    format(var, 32, "Caught=%d\n", PlayerInfo[playerid][pCaught]); fwrite(hFile, var);
    format(var, 32, "ADuty=%d\n", PlayerInfo[playerid][pADuty]); fwrite(hFile, var);
    format(var, 32, "Materials=%d\n", PlayerInfo[playerid][pMats]); fwrite(hFile, var);
    format(var, 32, "PayDayTime=%d\n",PlayerInfo[playerid][pPayDayTime]);fwrite(hFile, var);
    format(var, 32, "RequestJobMoney=%d\n",RequestJobMoney[playerid]);fwrite(hFile, var);

    format(var, 32, "RhymesFound=%d\n",PlayerInfo[playerid][pRhymesFound]);fwrite(hFile, var);
    format(var, 32, "Rhyme0=%d\n",PlayerInfo[playerid][pRhyme0]);fwrite(hFile, var);
    format(var, 32, "Rhyme1=%d\n",PlayerInfo[playerid][pRhyme1]);fwrite(hFile, var);
    format(var, 32, "Rhyme2=%d\n",PlayerInfo[playerid][pRhyme2]);fwrite(hFile, var);
    format(var, 32, "Rhyme3=%d\n",PlayerInfo[playerid][pRhyme3]);fwrite(hFile, var);
    format(var, 32, "Rhyme4=%d\n",PlayerInfo[playerid][pRhyme4]);fwrite(hFile, var);
    format(var, 32, "Rhyme5=%d\n",PlayerInfo[playerid][pRhyme5]);fwrite(hFile, var);
    format(var, 32, "Rhyme6=%d\n",PlayerInfo[playerid][pRhyme6]);fwrite(hFile, var);
    format(var, 32, "Rhyme7=%d\n",PlayerInfo[playerid][pRhyme7]);fwrite(hFile, var);
    format(var, 32, "Rhyme8=%d\n",PlayerInfo[playerid][pRhyme8]);fwrite(hFile, var);
    format(var, 32, "Rhyme9=%d\n",PlayerInfo[playerid][pRhyme9]);fwrite(hFile, var);
    format(var, 32, "Rhyme10=%d\n",PlayerInfo[playerid][pRhyme10]);fwrite(hFile, var);
    format(var, 32, "Rhyme11=%d\n",PlayerInfo[playerid][pRhyme11]);fwrite(hFile, var);
    format(var, 32, "Rhyme12=%d\n",PlayerInfo[playerid][pRhyme12]);fwrite(hFile, var);
    format(var, 32, "Rhyme13=%d\n",PlayerInfo[playerid][pRhyme13]);fwrite(hFile, var);
    format(var, 32, "Rhyme14=%d\n",PlayerInfo[playerid][pRhyme14]);fwrite(hFile, var);
    format(var, 32, "Rhyme15=%d\n",PlayerInfo[playerid][pRhyme15]);fwrite(hFile, var);
    format(var, 32, "Rhyme16=%d\n",PlayerInfo[playerid][pRhyme16]);fwrite(hFile, var);
    format(var, 32, "Rhyme17=%d\n",PlayerInfo[playerid][pRhyme17]);fwrite(hFile, var);
    format(var, 32, "Rhyme18=%d\n",PlayerInfo[playerid][pRhyme18]);fwrite(hFile, var);
    format(var, 32, "Rhyme19=%d\n",PlayerInfo[playerid][pRhyme19]);fwrite(hFile, var);
    format(var, 32, "Rhyme20=%d\n",PlayerInfo[playerid][pRhyme20]);fwrite(hFile, var);
    format(var, 32, "Rhyme21=%d\n",PlayerInfo[playerid][pRhyme21]);fwrite(hFile, var);
    format(var, 32, "Rhyme22=%d\n",PlayerInfo[playerid][pRhyme22]);fwrite(hFile, var);
    format(var, 32, "Rhyme23=%d\n",PlayerInfo[playerid][pRhyme23]);fwrite(hFile, var);
    format(var, 32, "Rhyme24=%d\n",PlayerInfo[playerid][pRhyme24]);fwrite(hFile, var);
    format(var, 32, "PassPort=%d\n",PlayerInfo[playerid][pPassPort]);fwrite(hFile, var);
    format(var, 32, "Locked=%d\n",PlayerInfo[playerid][pLocked]);fwrite(hFile, var);
    format(var, 32, "Dead=%d\n",PlayerInfo[playerid][pDead]);fwrite(hFile, var);
    format(var, 32, "Rentkey=%d\n",PlayerInfo[playerid][pRentkey]);fwrite(hFile, var);
    format(var, 32, "JobLock=%d\n",PlayerInfo[playerid][pJobLock]);fwrite(hFile, var);
    format(var, 32, "JobLockDate=%d\n",PlayerInfo[playerid][pJobLockDate]);fwrite(hFile, var);
    format(var, 32, "JobLockMonth=%d\n",PlayerInfo[playerid][pJobLockMonth]);fwrite(hFile, var);
    format(var, 32, "JobInvite=%d\n",PlayerInfo[playerid][pJobInvite]);fwrite(hFile, var);
    format(var, 32, "JobInviteDate=%d\n",PlayerInfo[playerid][pJobInviteDate]);fwrite(hFile, var);
    format(var, 32, "JobInviteMonth=%d\n",PlayerInfo[playerid][pJobInviteMonth]);fwrite(hFile, var);
    format(var, 32, "JobHours=%d\n",PlayerInfo[playerid][pJobHours]);fwrite(hFile, var);
    format(var, 32, "JobLockHours=%d\n",PlayerInfo[playerid][pJobLockHours]);fwrite(hFile, var);
    format(var, 32, "Logins=%d\n",PlayerInfo[playerid][pLogins]);fwrite(hFile, var);
    format(var, 32, "Kicks=%d\n",PlayerInfo[playerid][pKicks]);fwrite(hFile, var);
    format(var, 32, "LoginDate=%d\n",PlayerInfo[playerid][pLoginDate]);fwrite(hFile, var);
    format(var, 32, "LoginMonth=%d\n",PlayerInfo[playerid][pLoginMonth]);fwrite(hFile, var);
    format(var, 32, "LoginHour=%d\n",PlayerInfo[playerid][pLoginHour]);fwrite(hFile, var);
    format(var, 32, "LoginMinute=%d\n",PlayerInfo[playerid][pLoginMinute]);fwrite(hFile, var);

    format(var, 32, "BoughtCar=%d\n",BoughtCar[playerid]);fwrite(hFile, var);
    format(var, 32, "BoughtVehType=%d\n",BoughtVehType[playerid]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",CarModel[playerid]);fwrite(hFile, var);
    format(var, 32, "CarColor1=%d\n",CarColor1[playerid]);fwrite(hFile, var);
    format(var, 32, "CarColor2=%d\n",CarColor2[playerid]);fwrite(hFile, var);
    format(var, 32, "CarPosX=%f\n",CarPosX[playerid]);fwrite(hFile, var);
    format(var, 32, "CarPosY=%f\n",CarPosY[playerid]);fwrite(hFile, var);
    format(var, 32, "CarPosZ=%f\n",CarPosZ[playerid]);fwrite(hFile, var);
    format(var, 32, "CarPosRot=%f\n",CarPosRot[playerid]);fwrite(hFile, var);
    format(var, 32, "CarPrice=%d\n",bCarPrice[playerid]);fwrite(hFile, var);
    format(var, 32, "NitroBought=%d\n",NitroBought[playerid]);fwrite(hFile, var);
    format(var, 32, "NitroType=%d\n",NitroType[playerid]);fwrite(hFile, var);

    format(var, 32, "BoughtBoat=%d\n",BoughtBoat[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatModel=%d\n",BoatModel[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatColor1=%d\n",BoatColor1[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatColor2=%d\n",BoatColor2[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatPosX=%f\n",BoatPosX[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatPosY=%f\n",BoatPosY[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatPosZ=%f\n",BoatPosZ[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatPosRot=%f\n",BoatPosRot[playerid]);fwrite(hFile, var);
    format(var, 32, "BoatPrice=%d\n",bBoatPrice[playerid]);fwrite(hFile, var);

    format(var, 32, "BoughtHeli=%d\n",BoughtHeli[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliModel=%d\n",HeliModel[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliColor1=%d\n",HeliColor1[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliColor2=%d\n",HeliColor2[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliPosX=%f\n",HeliPosX[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliPosY=%f\n",HeliPosY[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliPosZ=%f\n",HeliPosZ[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliPosRot=%f\n",HeliPosRot[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliPrice=%d\n",bHeliPrice[playerid]);fwrite(hFile, var);
    format(var, 32, "HeliPriceCategory=%d\n",HeliPriceCategory[playerid]);fwrite(hFile, var);

    format(var, 32, "Armor=%1.f\n",Armor[playerid]);fwrite(hFile, var);
    format(var, 32, "Health=%1.f\n",Health[playerid]);fwrite(hFile, var);
    format(var, 32, "JobMute=%d\n",jobmute[playerid]);fwrite(hFile, var);
    format(var, 32, "Armordrugs=%d\n",PlayerInfo[playerid][armordrugs]);fwrite(hFile, var);
    format(var, 32, "GetArmor=%d\n",PlayerInfo[playerid][pGetArmor]);fwrite(hFile, var);
    format(var, 32, "PrepareArmor=%d\n",PlayerInfo[playerid][pPrepareArmor]);fwrite(hFile, var);

    //format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);

    format(var, 32, "LottoWins=%d\n",PlayerInfo[playerid][pLottoWins]);fwrite(hFile, var);
    format(var, 32, "LottoLosts=%d\n",PlayerInfo[playerid][pLottoLosts]);fwrite(hFile, var);
    format(var, 32, "GangWar=%d\n",allowedgangwar[playerid]);fwrite(hFile, var);
    format(var, 32, "SpawnChange=%d\n",SpawnChange[playerid]);fwrite(hFile, var);
    format(var, 32, "Zigaretten=%d\n",Zigaretten[playerid]);fwrite(hFile, var);
    format(var, 32, "TrueFalseCarLic=%d\n",PlayerInfo[playerid][pCarLic_2]);fwrite(hFile, var);
    format(var, 32, "ApprovedLawyer=%d\n",ApprovedLawyer[playerid]);fwrite(hFile, var);
    format(var, 32, "DutyMinutes=%d\n",PlayerInfo[playerid][pDutyMinutes]);fwrite(hFile, var);
    format(var, 32, "BankPin=%d\n",PlayerInfo[playerid][pBankPin]);fwrite(hFile, var);
    format(var, 32, "BankPinCode=%d\n",PlayerInfo[playerid][pBankPinCode]);fwrite(hFile, var);
    format(var, 32, "VehComp_Spoiler=%d\n",VehComp[playerid][0]);fwrite(hFile, var);
    format(var, 32, "VehComp_Hood=%d\n",VehComp[playerid][1]);fwrite(hFile, var);
    format(var, 32, "VehComp_Roof=%d\n",VehComp[playerid][2]);fwrite(hFile, var);
    format(var, 32, "VehComp_Sideskirt=%d\n",VehComp[playerid][3]);fwrite(hFile, var);
    format(var, 32, "VehComp_Lamps=%d\n",VehComp[playerid][4]);fwrite(hFile, var);
    format(var, 32, "VehComp_Nitro=%d\n",VehComp[playerid][5]);fwrite(hFile, var);
    format(var, 32, "VehComp_Exhaust=%d\n",VehComp[playerid][6]);fwrite(hFile, var);
    format(var, 32, "VehComp_Wheels=%d\n",VehComp[playerid][7]);fwrite(hFile, var);
    format(var, 32, "VehComp_Stereo=%d\n",VehComp[playerid][8]);fwrite(hFile, var);
    format(var, 32, "VehComp_Hydraulics=%d\n",VehComp[playerid][9]);fwrite(hFile, var);
    format(var, 32, "VehComp_Front_Bumper=%d\n",VehComp[playerid][10]);fwrite(hFile, var);
    format(var, 32, "VehComp_Rear_Bumper=%d\n",VehComp[playerid][11]);fwrite(hFile, var);
    format(var, 32, "VehComp_Vent_Right=%d\n",VehComp[playerid][12]);fwrite(hFile, var);
    format(var, 32, "VehComp_Vent_Left=%d\n",VehComp[playerid][13]);fwrite(hFile, var);
    format(var, 32, "PlayerPaintjob=%d\n",PlayerPaintjob[playerid]);fwrite(hFile, var);
    format(var, 32, "JailPrice=%d\n",JailPrice[playerid]);fwrite(hFile, var);
    format(var, 32, "LoggedIn=%d\n",PlayerInfo[playerid][pLoggedIn]);fwrite(hFile, var);
    format(var, 32, "BombAgain=%d\n",PlayerInfo[playerid][pBombAgain]);fwrite(hFile, var);
    format(var, 32, "Hitman=%d\n",PlayerInfo[playerid][pHitman]);fwrite(hFile, var);
    format(var, 32, "HitmanRank=%d\n",PlayerInfo[playerid][pHitmanRank]);fwrite(hFile, var);
    format(var, 32, "DPoints=%d\n",PlayerInfo[playerid][pDPoints]);fwrite(hFile, var);
    format(var, 32, "LicSperre=%d\n",PlayerInfo[playerid][pLicSperre]);fwrite(hFile, var);
    format(var, 32, "MYSQL=%d\n",PlayerInfo[playerid][pMySQL]);fwrite(hFile, var);
    fclose(hFile);
    new r[256];
    format(r, sizeof(r), "Du hast schon einen registrierten Account auf dem xxxxx Server. \nBitte log dich jetzt mit deinem Passwort ein. \nAccountname: %s", playername3);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Einloggen auf dem xxxxxxxxx Server", r, "Login", "Abbrechen");
    }
    }
    return 1;
    }

  • Vielen Dank!!! Hab den Fehler gefunden und behoben. Der vorherige Scripter hatte das gemacht:
    if(PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pLeader] != 18 )//trucker fix
    {
    PlayerInfo[playerid][pJob] = 0;
    }
    if(PlayerInfo[playerid][pJob] == 0 && PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pJob] == 0 && PlayerInfo[playerid][pLeader] != 18 )//trucker fix
    {
    PlayerInfo[playerid][pJob] = 16;
    }


    Hab ich jetzt geändert in das:


    if(PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pLeader] != 18 )//trucker fix
    {
    PlayerInfo[playerid][pJob] = 0;
    }
    if(PlayerInfo[playerid][pJob] == 0 && PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pJob] == 0 && PlayerInfo[playerid][pLeader] != 18 )//trucker fix
    {
    PlayerInfo[playerid][pJob] = 0;
    }