"Array index out of bounds" in server.log| Script lädt keine Fahrzeuge mehr | Vermute auf MySQL Problem im Script

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
  • Hey Leute,


    ich habe ein sehr schwerwiegendes Problem mit meinem Script:


    Wenn ich das compiliere, erhalte ich 0 Fehler / 0 Warnings und starte, wie üblich, den Server.
    Nachdem er gestartet ist, werden alle Sachen ganz normal geladen, so wie es sein soll.


    Ausschnitt aus Server.log | Beim Serverstart



    Sobald ich mich jedoch mit den Server verbinde und mich einlogge (und alles eigentlich normal geladen werden soll) bricht das totale Chaos aus!
    Die Map lädt nicht mehr, wie sie soll und Autos werden gar nicht mehr gespawnt, sind alle nicht mehr da.


    In der Server.log Datei steht dann folgendes:



    Ich bin schon dermaßen am verzweifeln... :(



    Ich hoffe ihr könnt mir helfen, diesen Server wieder "normal" zum laufen zu bringen :S



    GrußDCF

  • Teil mit Fehler (Zeile 26891)


    stock s_CreateVehicle(vehicletype,Float:x,Float:y,Float:z,Float:rotation,color1,color2,respawn_delay)
    {
    new vID = CreateVehicle(vehicletype,x,y,z,rotation,color1,color2,respawn_delay); // Zeile 26891
    CheckPanzerung(vID,-1);
    hbremse[vID][hb_Status] = 0;
    hbremse[vID][hb_X] = x;
    hbremse[vID][hb_Y] = y;
    hbremse[vID][hb_A] = rotation;
    return vID;
    }


    Teil mit Fehler (Zeile 22724)


    stock LoadPlayercar(playerid,slot)
    {
    if(slot == -1)return 1;
    new slotstr[16];
    valstr(slotstr,slot);
    for(new i=0;i<MAX_VEHICLES;i++)
    {
    if(FahrzeugInfo[i][fz_ID] == 0)
    {
    FahrzeugInfo[i][fz_Besitzer] = playerid;
    FahrzeugInfo[i][fz_Typ] = 1;
    FahrzeugInfo[i][fz_Slot] = slot;
    FahrzeugInfo[i][fz_Preis] = mysql_GetInt("userautos","Preis","Slot",slotstr);
    FahrzeugInfo[i][fz_Model] = mysql_GetInt("userautos","Model","Slot",slotstr);
    FahrzeugInfo[i][fz_Farbe1] = mysql_GetInt("userautos","Farbe1","Slot",slotstr);
    FahrzeugInfo[i][fz_Farbe2] = mysql_GetInt("userautos","Farbe2","Slot",slotstr);
    FahrzeugInfo[i][fz_X] = mysql_GetFloat("userautos","X","Slot",slotstr);
    FahrzeugInfo[i][fz_Y] = mysql_GetFloat("userautos","Y","Slot",slotstr);
    FahrzeugInfo[i][fz_Z] = mysql_GetFloat("userautos","Z","Slot",slotstr);
    FahrzeugInfo[i][fz_A] = mysql_GetFloat("userautos","A","Slot",slotstr);
    FahrzeugInfo[i][fz_mod1] = mysql_GetInt("userautos","mod1","Slot",slotstr);
    FahrzeugInfo[i][fz_mod2] = mysql_GetInt("userautos","mod2","Slot",slotstr);
    FahrzeugInfo[i][fz_mod3] = mysql_GetInt("userautos","mod3","Slot",slotstr);
    FahrzeugInfo[i][fz_mod4] = mysql_GetInt("userautos","mod4","Slot",slotstr);
    FahrzeugInfo[i][fz_mod5] = mysql_GetInt("userautos","mod5","Slot",slotstr);
    FahrzeugInfo[i][fz_mod6] = mysql_GetInt("userautos","mod6","Slot",slotstr);
    FahrzeugInfo[i][fz_mod7] = mysql_GetInt("userautos","mod7","Slot",slotstr);
    FahrzeugInfo[i][fz_mod8] = mysql_GetInt("userautos","mod8","Slot",slotstr);
    FahrzeugInfo[i][fz_mod9] = mysql_GetInt("userautos","mod9","Slot",slotstr);
    FahrzeugInfo[i][fz_mod10] = mysql_GetInt("userautos","mod10","Slot",slotstr);
    FahrzeugInfo[i][fz_mod11] = mysql_GetInt("userautos","mod11","Slot",slotstr);
    FahrzeugInfo[i][fz_mod12] = mysql_GetInt("userautos","mod12","Slot",slotstr);
    FahrzeugInfo[i][fz_mod13] = mysql_GetInt("userautos","mod13","Slot",slotstr);
    FahrzeugInfo[i][fz_mod14] = mysql_GetInt("userautos","mod14","Slot",slotstr);
    FahrzeugInfo[i][fz_Tank] = mysql_GetInt("userautos","Tank","Slot",slotstr);
    FahrzeugInfo[i][fz_Opark] = mysql_GetInt("userautos","Opark","Slot",slotstr);
    FahrzeugInfo[i][fz_Glas] = mysql_GetInt("userautos","Glas","Slot",slotstr);
    FahrzeugInfo[i][fz_Panzer] = mysql_GetInt("userautos","Panzer","Slot",slotstr);
    FahrzeugInfo[i][fz_Lock] = 0; // Zeile 22724
    FahrzeugInfo[i][fz_Radio] = 0;
    FahrzeugInfo[i][fz_ID] = s_CreateVehicle(FahrzeugInfo[i][fz_Model],FahrzeugInfo[i][fz_X],FahrzeugInfo[i][fz_Y],FahrzeugInfo[i][fz_Z],FahrzeugInfo[i][fz_A],FahrzeugInfo[i][fz_Farbe1],FahrzeugInfo[i][fz_Farbe2],-1);
    new vID = FahrzeugInfo[i][fz_ID];
    FahrzeugInfo[i][fz_Motor] = 0;
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(FahrzeugInfo[i][fz_ID], engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(FahrzeugInfo[i][fz_ID], engine, lights, alarm, 0, bonnet, boot, objective);
    hbremse[vID][hb_Status] = mysql_GetInt("userautos","HandBremse","Slot",slotstr);
    if(FahrzeugInfo[i][fz_Opark] == 1)
    {
    hbremse[vID][hb_Status] = 2;
    }
    SetVehicleNumberPlate(vID,SpielerName(playerid));
    if(FahrzeugInfo[i][fz_mod1] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod1]);}
    if(FahrzeugInfo[i][fz_mod2] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod2]);}
    if(FahrzeugInfo[i][fz_mod3] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod3]);}
    if(FahrzeugInfo[i][fz_mod4] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod4]);}
    if(FahrzeugInfo[i][fz_mod5] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod5]);}
    if(FahrzeugInfo[i][fz_mod6] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod6]);}
    if(FahrzeugInfo[i][fz_mod7] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod7]);}
    if(FahrzeugInfo[i][fz_mod8] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod8]);}
    if(FahrzeugInfo[i][fz_mod9] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod9]);}
    if(FahrzeugInfo[i][fz_mod10] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod10]);}
    if(FahrzeugInfo[i][fz_mod11] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod11]);}
    if(FahrzeugInfo[i][fz_mod12] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod12]);}
    if(FahrzeugInfo[i][fz_mod13] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod13]);}
    if(FahrzeugInfo[i][fz_mod14] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod14]);}
    return 1;
    }
    }
    return 1;
    }


    Teil mit Fehler (Zeile 22680)


    stock AutosysLoadplayer(playerid)
    {
    SpielerInfo[playerid][auto1] = mysql_GetInt("accounts","auto1","Name",SpielerName(playerid));
    SpielerInfo[playerid][auto2] = mysql_GetInt("accounts","auto2","Name",SpielerName(playerid));
    SpielerInfo[playerid][auto3] = mysql_GetInt("accounts","auto3","Name",SpielerName(playerid)); // Zeile 22680
    LoadPlayercar(playerid,SpielerInfo[playerid][auto1]);
    LoadPlayercar(playerid,SpielerInfo[playerid][auto2]);
    LoadPlayercar(playerid,SpielerInfo[playerid][auto3]);
    return 1;
    }


    Teil mit Fehler (Zeile 19191)


    stock LoadPlayer(playerid)
    {
    countlogin[playerid] = GetTickCount();
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    SetPlayerScore(playerid,mysql_GetInt("accounts", "Level", "Name", name));
    SetPVarInt(playerid,"Respektpunkte",mysql_GetInt("accounts", "Respektpunkte", "Name", name));
    ResetPlayerMoney(playerid);
    SetPVarInt(playerid,"Geld",0);
    GiveMoney(playerid,mysql_GetInt("accounts", "Geld", "Name", name));
    SetPVarInt(playerid,"Adminlevel",mysql_GetInt("accounts", "Admin", "Name", name));
    SetPVarInt(playerid,"Alter",mysql_GetInt("accounts", "Alter", "Name", name));
    SetPVarInt(playerid,"geschlecht",mysql_GetInt("accounts", "Geschlecht", "Name", name));
    SetPVarInt(playerid,"Fraktion",mysql_GetInt("accounts", "Fraktion", "Name", name));
    SetPVarInt(playerid,"Autowarn",mysql_GetInt("accounts", "Autowarn", "Name", name));
    SetPVarInt(playerid,"Bike",mysql_GetInt("accounts", "Bike", "Name", name));
    SetPVarInt(playerid,"Autoschein",mysql_GetInt("accounts", "Autoschein", "Name", name));
    SetPVarInt(playerid,"Fly",mysql_GetInt("accounts", "Flug", "Name", name));
    SetPVarInt(playerid,"Lkwschein",mysql_GetInt("accounts", "LKWschein", "Name", name));
    SetPVarInt(playerid,"Helischein",mysql_GetInt("accounts", "Helischein", "Name", name));
    SetPVarInt(playerid,"Boot",mysql_GetInt("accounts", "Boot", "Name", name));
    SetPVarInt(playerid,"LKwarn",mysql_GetInt("accounts", "LKwarn", "Name", name));
    SetPVarInt(playerid,"Bikewarn",mysql_GetInt("accounts", "Bikewarn", "Name", name));
    SetPVarInt(playerid,"Wanted",mysql_GetInt("accounts", "Wanted", "Name", name));
    SetPVarInt(playerid,"bank",mysql_GetInt("accounts", "Bank", "Name", name));
    SetPVarInt(playerid,"Tode", mysql_GetInt("accounts", "Tode", "Name", name));
    SetPVarInt(playerid,"Spielzeit", mysql_GetInt("accounts", "Spielzeit", "Name", name));
    SetPVarInt(playerid,"Leader", mysql_GetInt("accounts", "Leader", "Name", name));
    SetPVarInt(playerid,"Member", mysql_GetInt("accounts", "Member", "Name", name));
    SetPVarInt(playerid,"Rang", mysql_GetInt("accounts", "Rang", "Name", name));
    SetPVarInt(playerid,"Perso", mysql_GetInt("accounts", "Perso", "Name", name));
    PAYDAYG[playerid] = mysql_GetInt("accounts", "ZSPD", "Name", name);
    SetPVarInt(playerid,"Job", mysql_GetInt("accounts", "Job", "Name", name));
    SetPVarInt(playerid,"Skin", mysql_GetInt("accounts", "Skin", "Name", name));
    SetPVarInt(playerid,"DutySkin", mysql_GetInt("accounts", "DutySkin", "Name", name));
    SetPVarInt(playerid,"Neu", mysql_GetInt("accounts", "Neu", "Name", name));
    SetPVarInt(playerid,"Kills", mysql_GetInt("accounts", "Kills", "Name", name));
    SetPVarInt(playerid,"Radio", mysql_GetInt("accounts", "Radio", "Name", name));
    SetPVarInt(playerid,"Navi", mysql_GetInt("accounts", "Navi", "Name", name));
    SetPVarInt(playerid,"mp3", mysql_GetInt("accounts", "mp3", "Name", name));
    SetPVarInt(playerid,"Gesellschaft", mysql_GetInt("accounts", "Gesellschaft", "Name", name));
    SetPVarInt(playerid,"Rucksack", mysql_GetInt("accounts", "Rucksack", "Name", name));
    SetPVarInt(playerid,"Versicherung", mysql_GetInt("accounts", "Versicherung", "Name", name));
    SetPVarInt(playerid,"Verwarnungen", mysql_GetInt("accounts", "Verwarnungen", "Name", name));
    SetPVarInt(playerid,"hunger", mysql_GetInt("accounts", "Hunger", "Name", name));
    SetPVarInt(playerid,"Nummer", mysql_GetInt("accounts", "Nummer", "Name", name));
    SetPVarInt(playerid,"Telefon", mysql_GetInt("accounts", "Telefon", "Name", name));
    //SetPVarInt(playerid,"Mats", mysql_GetInt("accounts", "Mats", "Name", name));
    SetPVarInt(playerid,"TelefonBuch", mysql_GetInt("accounts", "TelefonBuch", "Name", name));
    KnastZeit[playerid] = mysql_GetInt("accounts", "Knastzeit", "Name", name);
    SetPVarInt(playerid,"Kopfgeld",mysql_GetInt("accounts", "Kopfgeld", "Name", name));
    SetPVarInt(playerid,"Aufbrechen",mysql_GetInt("accounts", "AufbrechenZeit", "Name", name));
    SetPVarInt(playerid,"Mülltimer",mysql_GetInt("accounts", "MüllZeit", "Name", name));
    FriedhofZeit[playerid] = mysql_GetInt("accounts", "FriedhofZeit", "Name", name);
    FriedhofStatus[playerid] = mysql_GetInt("accounts", "FriedhofStatus", "Name", name);
    SetPVarFloat(playerid,"TotX",mysql_GetFloat("accounts", "TotX", "Name", name));
    SetPVarFloat(playerid,"TotY",mysql_GetFloat("accounts", "TotY", "Name", name));
    SetPVarFloat(playerid,"TotZ",mysql_GetFloat("accounts", "TotZ", "Name", name));
    SetPVarInt(playerid,"TotW",mysql_GetInt("accounts", "TotW", "Name", name));
    SetPVarInt(playerid,"TotI",mysql_GetInt("accounts", "TotI", "Name", name));
    SetPVarInt(playerid,"Lottonummer",mysql_GetInt("accounts", "Lottonummer", "Name", name));
    SetPVarFloat(playerid,"AuslogPosX",mysql_GetFloat("accounts", "AuslogPosX", "Name", name));
    SetPVarFloat(playerid,"AuslogPosY",mysql_GetFloat("accounts", "AuslogPosY", "Name", name));
    SetPVarFloat(playerid,"AuslogPosZ",mysql_GetFloat("accounts", "AuslogPosZ", "Name", name));
    SetPVarInt(playerid,"AuslogWorld",mysql_GetInt("accounts", "AuslogWorld", "Name", name));
    SetPVarInt(playerid,"AuslogInt",mysql_GetInt("accounts", "AuslogInt", "Name", name));
    SetPVarInt(playerid,"KnastzeitGesamt",mysql_GetInt("accounts", "KnastzeitGesamt", "Name", name));
    SetPVarInt(playerid,"Verbrechen",mysql_GetInt("accounts", "Verbrechen", "Name", name));
    SetPVarFloat(playerid,"AuslogHeal",mysql_GetFloat("accounts", "AuslogHeal", "Name", name));
    SetWeste(playerid,mysql_GetInt("accounts", "Weste", "Name", name));
    SetPVarInt(playerid,"AuslogDuty",mysql_GetInt("accounts", "AuslogDuty", "Name", name));
    SetPVarInt(playerid,"Biz",mysql_GetInt("accounts", "biz", "Name", name));
    SetPVarInt(playerid,"TeilBiz",mysql_GetInt("accounts", "teilbiz", "Name", name));
    SetPVarInt(playerid,"PBKills",mysql_GetInt("accounts", "pbkills", "Name", name));
    SetPVarInt(playerid,"PBDeath",mysql_GetInt("accounts", "pbdeath", "Name", name));
    SetPVarInt(playerid,"SkillZeit",mysql_GetInt("accounts", "SkillZeit", "Name", name));
    SetPVarInt(playerid,"Sucht",mysql_GetInt("accounts", "Sucht", "Name", name));
    //SetPVarInt(playerid,"Heroin",mysql_GetInt("accounts", "Heroin", "Name", name));
    //SetPVarInt(playerid,"Marihuana",mysql_GetInt("accounts", "Marihuana", "Name", name));
    SetPVarInt(playerid,"safe_Marihuana",mysql_GetInt("accounts", "safe_Marihuana", "Name", name));
    SetPVarInt(playerid,"safe_Heroin",mysql_GetInt("accounts", "safe_Heroin", "Name", name));
    SetPVarInt(playerid,"safe_Mats",mysql_GetInt("accounts", "safe_Mats", "Name", name));
    SetPVarInt(playerid,"JobSkill1",mysql_GetInt("accounts", "JobSkill1", "Name", name));
    SetPVarInt(playerid,"GeradeEingeloggt",1);
    SkillInfo[playerid][23] = mysql_GetInt("accounts", "Skill23", "Name", name);
    SkillInfo[playerid][24] = mysql_GetInt("accounts", "Skill24", "Name", name);
    SkillInfo[playerid][29] = mysql_GetInt("accounts", "Skill29", "Name", name);
    SkillInfo[playerid][30] = mysql_GetInt("accounts", "Skill30", "Name", name);
    SkillInfo[playerid][31] = mysql_GetInt("accounts", "Skill31", "Name", name);
    weapons[playerid][1][0]=mysql_GetInt("accounts", "WaffeSlot1", "Name", name);
    weapons[playerid][1][1]=mysql_GetInt("accounts", "WaffeMuni1", "Name", name);
    weapons[playerid][2][0]=mysql_GetInt("accounts", "WaffeSlot2", "Name", name);
    weapons[playerid][2][1]=mysql_GetInt("accounts", "WaffeMuni2", "Name", name);
    weapons[playerid][3][0]=mysql_GetInt("accounts", "WaffeSlot3", "Name", name);
    weapons[playerid][3][1]=mysql_GetInt("accounts", "WaffeMuni3", "Name", name);
    weapons[playerid][4][0]=mysql_GetInt("accounts", "WaffeSlot4", "Name", name);
    weapons[playerid][4][1]=mysql_GetInt("accounts", "WaffeMuni4", "Name", name);
    weapons[playerid][5][0]=mysql_GetInt("accounts", "WaffeSlot5", "Name", name);
    weapons[playerid][5][1]=mysql_GetInt("accounts", "WaffeMuni5", "Name", name);
    weapons[playerid][6][0]=mysql_GetInt("accounts", "WaffeSlot6", "Name", name);
    weapons[playerid][6][1]=mysql_GetInt("accounts", "WaffeMuni6", "Name", name);
    weapons[playerid][7][0]=mysql_GetInt("accounts", "WaffeSlot7", "Name", name);
    weapons[playerid][7][1]=mysql_GetInt("accounts", "WaffeMuni7", "Name", name);
    weapons[playerid][8][0]=mysql_GetInt("accounts", "WaffeSlot8", "Name", name);
    weapons[playerid][8][1]=mysql_GetInt("accounts", "WaffeMuni8", "Name", name);
    weapons[playerid][9][0]=mysql_GetInt("accounts", "WaffeSlot9", "Name", name);
    weapons[playerid][9][1]=mysql_GetInt("accounts", "WaffeMuni9", "Name", name);
    weapons[playerid][10][0]=mysql_GetInt("accounts", "WaffeSlot10", "Name", name);
    weapons[playerid][10][1]=mysql_GetInt("accounts", "WaffeMuni10", "Name", name);
    weapons[playerid][11][0]=mysql_GetInt("accounts", "WaffeSlot11", "Name", name);
    weapons[playerid][11][1]=mysql_GetInt("accounts", "WaffeMuni11", "Name", name);
    weapons[playerid][12][0]=mysql_GetInt("accounts", "WaffeSlot12", "Name", name);
    weapons[playerid][12][1]=mysql_GetInt("accounts", "WaffeMuni12", "Name", name); // Zeile 19191
    AutosysLoadplayer(playerid);
    //LoadPlayerInv(playerid);
    SetPVarInt(playerid,"RespektpunkteBenötigt",GetPlayerScore(playerid) * 3);
    SpawnPlayer(playerid);
    ReloadWeaponSkills(playerid);
    return 0;
    }


    Zeile 15010
    SetPVarInt(playerid,"loggedin",1);


    Ich erkenne aber keinen einzigen Fehler!!! :/

  • Ich nutze INVALID_PLAYER_ID öfters..


    Soll ich jetzt alles druchgehen? :o


    Das sieht mir aber bisschen suspekt aus, oder?:


    stock SCMF(playerid, color, fstring[], {Float, _}:...)
    {
    static const STATIC_ARGS = 3;
    new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
    if(n)
    {
    new message[144],arg_start,arg_end;
    #emit CONST.alt fstring
    #emit LCTRL 5
    #emit ADD
    #emit STOR.S.pri arg_start


    #emit LOAD.S.alt n
    #emit ADD
    #emit STOR.S.pri arg_end
    do
    {
    #emit LOAD.I
    #emit PUSH.pri
    arg_end -= BYTES_PER_CELL;
    #emit LOAD.S.pri arg_end
    }
    while(arg_end > arg_start);


    #emit PUSH.S fstring
    #emit PUSH.C 144
    #emit PUSH.ADR message


    n += BYTES_PER_CELL * 3;
    #emit PUSH.S n
    #emit SYSREQ.C format


    n += BYTES_PER_CELL;
    #emit LCTRL 4
    #emit LOAD.S.alt n
    #emit ADD
    #emit SCTRL 4


    if(playerid == INVALID_PLAYER_ID)
    {
    #pragma unused playerid
    return SendClientMessageToAll(color, message);
    } else {
    return SCM(playerid, color, message);
    }
    } else {
    if(playerid == INVALID_PLAYER_ID)
    {
    #pragma unused playerid
    return SendClientMessageToAll(color, fstring);
    } else {
    return SCM(playerid, color, fstring);
    }
    }
    }

  • Geht es dann?
    Wenn nicht, was sagt der Log?


    Ich habe es gemacht, aber es wurden ebenfalls weder die PlayerCar's noch die Fraktionsfahrzeuge gespawnt!
    Außerdem sind auch einige Teile aus meinem Map-Filterscript (wo alle Objekte drin sind) nicht geladen worden (<--- das war aber auch vorher schon so).


    Die Serverlog zeigt jedoch keine Fehler mehr an :o



    Kann es an einem Streamer (bzw. YSI) liegen? :huh:

  • Ne, das war nur zum testen ob es an MySQL liegt, damit wir uns später nicht zu Tode suchen. Liegt es aber nicht, zum Glück.


    Schreib es so, geht es dann? Ich verstehe dein System noch nicht wirklich, aber vielleicht passt es ja schon.
    stock LoadPlayercar(playerid,slot)
    {
    if(slot == -1)return 1;
    new slotstr[16];
    valstr(slotstr,slot);
    for(new i=0;i<MAX_VEHICLES;i++)
    {
    if(FahrzeugInfo[i][fz_ID] == 0)
    {
    FahrzeugInfo[i][fz_Besitzer] = playerid;
    FahrzeugInfo[i][fz_Typ] = 1;
    FahrzeugInfo[i][fz_Slot] = slot;
    FahrzeugInfo[i][fz_Preis] = mysql_GetInt("userautos","Preis","Slot",slotstr);
    FahrzeugInfo[i][fz_Model] = mysql_GetInt("userautos","Model","Slot",slotstr);
    FahrzeugInfo[i][fz_Farbe1] = mysql_GetInt("userautos","Farbe1","Slot",slotstr);
    FahrzeugInfo[i][fz_Farbe2] = mysql_GetInt("userautos","Farbe2","Slot",slotstr);
    FahrzeugInfo[i][fz_X] = mysql_GetFloat("userautos","X","Slot",slotstr);
    FahrzeugInfo[i][fz_Y] = mysql_GetFloat("userautos","Y","Slot",slotstr);
    FahrzeugInfo[i][fz_Z] = mysql_GetFloat("userautos","Z","Slot",slotstr);
    FahrzeugInfo[i][fz_A] = mysql_GetFloat("userautos","A","Slot",slotstr);
    FahrzeugInfo[i][fz_mod1] = mysql_GetInt("userautos","mod1","Slot",slotstr);
    FahrzeugInfo[i][fz_mod2] = mysql_GetInt("userautos","mod2","Slot",slotstr);
    FahrzeugInfo[i][fz_mod3] = mysql_GetInt("userautos","mod3","Slot",slotstr);
    FahrzeugInfo[i][fz_mod4] = mysql_GetInt("userautos","mod4","Slot",slotstr);
    FahrzeugInfo[i][fz_mod5] = mysql_GetInt("userautos","mod5","Slot",slotstr);
    FahrzeugInfo[i][fz_mod6] = mysql_GetInt("userautos","mod6","Slot",slotstr);
    FahrzeugInfo[i][fz_mod7] = mysql_GetInt("userautos","mod7","Slot",slotstr);
    FahrzeugInfo[i][fz_mod8] = mysql_GetInt("userautos","mod8","Slot",slotstr);
    FahrzeugInfo[i][fz_mod9] = mysql_GetInt("userautos","mod9","Slot",slotstr);
    FahrzeugInfo[i][fz_mod10] = mysql_GetInt("userautos","mod10","Slot",slotstr);
    FahrzeugInfo[i][fz_mod11] = mysql_GetInt("userautos","mod11","Slot",slotstr);
    FahrzeugInfo[i][fz_mod12] = mysql_GetInt("userautos","mod12","Slot",slotstr);
    FahrzeugInfo[i][fz_mod13] = mysql_GetInt("userautos","mod13","Slot",slotstr);
    FahrzeugInfo[i][fz_mod14] = mysql_GetInt("userautos","mod14","Slot",slotstr);
    FahrzeugInfo[i][fz_Tank] = mysql_GetInt("userautos","Tank","Slot",slotstr);
    FahrzeugInfo[i][fz_Opark] = mysql_GetInt("userautos","Opark","Slot",slotstr);
    FahrzeugInfo[i][fz_Glas] = mysql_GetInt("userautos","Glas","Slot",slotstr);
    FahrzeugInfo[i][fz_Panzer] = mysql_GetInt("userautos","Panzer","Slot",slotstr);
    FahrzeugInfo[i][fz_Lock] = 0;
    FahrzeugInfo[i][fz_Radio] = 0;
    if(FahrzeugInfo[i][fz_Model] < 400 || FahrzeugInfo[i][fz_Model] > 611) continue;
    FahrzeugInfo[i][fz_ID] = s_CreateVehicle(FahrzeugInfo[i][fz_Model],FahrzeugInfo[i][fz_X],FahrzeugInfo[i][fz_Y],FahrzeugInfo[i][fz_Z],FahrzeugInfo[i][fz_A],FahrzeugInfo[i][fz_Farbe1],FahrzeugInfo[i][fz_Farbe2],-1);
    new vID = FahrzeugInfo[i][fz_ID];
    FahrzeugInfo[i][fz_Motor] = 0;
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(FahrzeugInfo[i][fz_ID], engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(FahrzeugInfo[i][fz_ID], engine, lights, alarm, 0, bonnet, boot, objective);
    hbremse[vID][hb_Status] = mysql_GetInt("userautos","HandBremse","Slot",slotstr);
    if(FahrzeugInfo[i][fz_Opark] == 1)
    {
    hbremse[vID][hb_Status] = 2;
    }
    SetVehicleNumberPlate(vID,SpielerName(playerid));
    if(FahrzeugInfo[i][fz_mod1] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod1]);}
    if(FahrzeugInfo[i][fz_mod2] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod2]);}
    if(FahrzeugInfo[i][fz_mod3] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod3]);}
    if(FahrzeugInfo[i][fz_mod4] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod4]);}
    if(FahrzeugInfo[i][fz_mod5] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod5]);}
    if(FahrzeugInfo[i][fz_mod6] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod6]);}
    if(FahrzeugInfo[i][fz_mod7] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod7]);}
    if(FahrzeugInfo[i][fz_mod8] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod8]);}
    if(FahrzeugInfo[i][fz_mod9] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod9]);}
    if(FahrzeugInfo[i][fz_mod10] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod10]);}
    if(FahrzeugInfo[i][fz_mod11] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod11]);}
    if(FahrzeugInfo[i][fz_mod12] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod12]);}
    if(FahrzeugInfo[i][fz_mod13] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod13]);}
    if(FahrzeugInfo[i][fz_mod14] != -1){AddVehicleComponent(vID,FahrzeugInfo[i][fz_mod14]);}
    return 1;
    }
    }
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen