Hir SaveCar bitte:
stock SaveCar()
{
for(new x=0; x<MAX_VEHICLES; x++)
{
new dingsid[10];
format(dingsid,sizeof(dingsid),"%i",x);
mysql_SetInt("cars", "Key",pAutoInfo[x][pKey], "vID",dingsid);
mysql_SetString("cars", "Name",pAutoInfo[x][aBesitzer], "vID",dingsid);
mysql_SetInt("cars", "VKPreis",pAutoInfo[x][Preis], "vID",dingsid);
mysql_SetInt("cars", "ReparaturPreis",pAutoInfo[x][reppreis], "vID",dingsid);
mysql_SetInt("cars", "ModelID",pAutoInfo[x][ModelID], "vID",dingsid);
mysql_SetInt("cars", "Abgeschleppt",pAutoInfo[x][Abgeschlept], "vID",dingsid);
mysql_SetInt("cars", "Farbe1",pAutoInfo[x][Farbe1], "vID",dingsid);
mysql_SetInt("cars", "Farbe2",pAutoInfo[x][Farbe2], "vID",dingsid);
mysql_SetInt("cars", "Spoiler",pAutoInfo[x][modspoiler], "vID",dingsid);
mysql_SetInt("cars", "Nitro",pAutoInfo[x][modnitro], "vID",dingsid);
mysql_SetInt("cars", "Wheels",pAutoInfo[x][modwheels], "vID",dingsid);
mysql_SetInt("cars", "Lights",pAutoInfo[x][modlights], "vID",dingsid);
mysql_SetInt("cars", "MotorHaube",pAutoInfo[x][modhood], "vID",dingsid);
mysql_SetInt("cars", "Auspuff",pAutoInfo[x][modexhaust], "vID",dingsid);
mysql_SetInt("cars", "Hydraulic",pAutoInfo[x][modhydrau], "vID",dingsid);
mysql_SetInt("cars", "AutoDach",pAutoInfo[x][modroof], "vID",dingsid);
mysql_SetInt("cars", "Stereo",pAutoInfo[x][modstereo], "vID",dingsid);
mysql_SetInt("cars", "Frontstossstange",pAutoInfo[x][modfrontbumper], "vID",dingsid);
mysql_SetInt("cars", "Heckstossstange",pAutoInfo[x][modrearfumper], "vID",dingsid);
mysql_SetInt("cars", "VentsLinks",pAutoInfo[x][modventsl], "vID",dingsid);
mysql_SetInt("cars", "VentsRechts",pAutoInfo[x][modventsr], "vID",dingsid);
mysql_SetInt("cars", "SchwellerleistenRechts",pAutoInfo[x][modsideskirtr], "vID",dingsid);
mysql_SetInt("cars", "SchwellerleistenLinks",pAutoInfo[x][modsideskirtl], "vID",dingsid);
mysql_SetInt("cars", "BullBar",pAutoInfo[x][modbullbar], "vID",dingsid);
mysql_SetInt("cars", "rearbullbars",pAutoInfo[x][modrearbullbars], "vID",dingsid);
mysql_SetInt("cars", "frontbullbars",pAutoInfo[x][modfrontbullbars], "vID",dingsid);
mysql_SetInt("cars", "Stossstangen",pAutoInfo[x][modbullbars], "vID",dingsid);
mysql_SetInt("cars", "PaintJob",pAutoInfo[x][spaintjobid], "vID",dingsid);
mysql_SetFloat("cars", "AutoX",pAutoInfo[x][pAUTOPoS_X], "vID",dingsid);
mysql_SetFloat("cars", "AutoY",pAutoInfo[x][pAUTOPoS_Y], "vID",dingsid);
mysql_SetFloat("cars", "AutoZ",pAutoInfo[x][pAUTOPoS_Z], "vID",dingsid);
mysql_SetFloat("cars", "AutoA",pAutoInfo[x][pAUTOPoS_A], "vID",dingsid);
}
return 1;
}