HAllo
Ich habe ein Problem. Und zwar er laädt das scheiss auto flasch aus der DB aber speichern tut er es richtig . wenn er lädt sagt er mir immer -1 bei den zeilen die makiert sind.
stock LoadCar(playerid)
{
GetPlayerName(playerid, pDaten[playerid][pNames], MAX_PLAYER_NAME);
Carlist[playerid][Typ] = mysql_GetInt("autohaus", "AH_Typ", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][X] = mysql_GetFloat("autohaus", "AH_X", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Y] = mysql_GetFloat("autohaus", "AH_Y", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Z] = mysql_GetFloat("autohaus", "AH_Z", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Rotation] = mysql_GetFloat("autohaus", "AH_Rot", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Status] = mysql_GetInt("autohaus", "AH_Status", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Lock] = mysql_GetInt("autohaus", "AH_Lock", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Farbe1] = mysql_GetInt("autohaus", "AH_Farbe1", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Farbe2] = mysql_GetInt("autohaus", "Ah_Farbe2", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][Paintjob] = mysql_GetInt("autohaus", "AH_Paintjob", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod1] = mysql_GetInt("autohaus", "mod1", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod2] = mysql_GetInt("autohaus", "mod2", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod3] = mysql_GetInt("autohaus", "mod3", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod4] = mysql_GetInt("autohaus", "mod4", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod5] = mysql_GetInt("autohaus", "mod5", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod6] = mysql_GetInt("autohaus", "mod6", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod7] = mysql_GetInt("autohaus", "mod7", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod8] = mysql_GetInt("autohaus", "mod8", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod9] = mysql_GetInt("autohaus", "mod9", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod10] = mysql_GetInt("autohaus", "mod10", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod11] = mysql_GetInt("autohaus", "mod11", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod12] = mysql_GetInt("autohaus", "mod12", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod13] = mysql_GetInt("autohaus", "mod13", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod14] = mysql_GetInt("autohaus", "mod14", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod15] = mysql_GetInt("autohaus", "mod15", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod16] = mysql_GetInt("autohaus", "mod16", "AH_Name", pDaten[playerid][pNames]);
Carlist[playerid][mod17] = mysql_GetInt("autohaus", "mod17", "AH_Name", pDaten[playerid][pNames]);
//Debug
printf("Type:%d X:%d Y:$d Z:%d Rotation:%d Status:%d Lock:%d",Carlist[playerid][Typ],Carlist[playerid][X],Carlist[playerid][Y],Carlist[playerid][Z],Carlist[playerid][Rotation],Carlist[playerid][Status],Carlist[playerid][Lock]);
printf("Farbe1:%d",Carlist[playerid][Farbe1]);
printf("Farbe2:%d",Carlist[playerid][Farbe2]);
printf("PaintJob:%d",Carlist[playerid][Paintjob]);
printf("Mod1:%d",Carlist[playerid][mod1]);//hier
printf("Mod2:%d",Carlist[playerid][mod2]);//hier
printf("Mod3:%d",Carlist[playerid][mod3]);//hier
printf("Mod4:%d",Carlist[playerid][mod4]);//hier
printf("Mod5:%d",Carlist[playerid][mod5]);//hier
printf("Mod6:%d",Carlist[playerid][mod6]);//hier
printf("Mod7:%d",Carlist[playerid][mod7]);//hier
printf("Mod8:%d",Carlist[playerid][mod8]);//hier
printf("Mod9:%d",Carlist[playerid][mod9]);//hier
printf("Mod10:%d",Carlist[playerid][mod10]);//hier
printf("Mod11:%d",Carlist[playerid][mod11]);//hier
printf("Mod12:%d",Carlist[playerid][mod12]);//hier
printf("Mod13:%d",Carlist[playerid][mod13]);//hier
printf("Mod14:%d",Carlist[playerid][mod14]);//hier
printf("Mod15:%d",Carlist[playerid][mod15]);//hier
printf("Mod16:%d",Carlist[playerid][mod16]);//hier
printf("Mod17:%d",Carlist[playerid][mod17]);//hier
return 1;
}Keine ahnung wieso normal sollte er das richtig auslesen aber man kennt ja pawno macht was er will.