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!!!