Und wie lässt du das Speichern ?
stock SaveCar(carid)
{
/*new query[200];
format(query,sizeof(query),"UPDATE cars SET cVID='%i',cPreis='%i',cColor1='%i',cColor2='%i',cOwner='%s',cX='%f',cY='%f',cZ='%f',cA='%f',cFuel='%i',cFraktion='%i',cJob='%i',cZivil='%i' WHERE `cID` = '%i'",cInfo[carid][cVID],cInfo[carid][cPreis],cInfo[carid][cColor1],cInfo[carid][cColor2],cInfo[carid][cOwner],cInfo[carid][cX],cInfo[carid][cY],cInfo[carid][cZ],cInfo[carid][cA],cInfo[carid][cFuel],cInfo[carid][cFraktion],cInfo[carid][cJob],cInfo[carid][cZivil],carid);
mysql_function_query(sqlHandle,query,false,"","");
return 1;
}*/
new query[1000], result[1024];
format(query, sizeof(query), "\
`cVID` = '%i',\
`cPreis` = '%i',\
`cColor1` = '%i',\
`cColor2` = '%i',\
`cOwner` = '%s',\
`cX` = '%f',\
`cY` = '%f',\
`cZ` = '%f',\
`cA` = '%f',\
`cFuel` = '%i',\
`cFraktion` = '%i',\
`cJob` = '%i',\
`cZivil` = '%i'",
cInfo[carid][cVID],
cInfo[carid][cPreis],
cInfo[carid][cColor1],
cInfo[carid][cColor2],
cInfo[carid][cOwner],
cInfo[carid][cX],
cInfo[carid][cY],
cInfo[carid][cZ],
cInfo[carid][cA],
cInfo[carid][cFuel],
cInfo[carid][cFraktion],
cInfo[carid][cJob],
cInfo[carid][cZivil]);
format(result, sizeof(result), "\
UPDATE `cars` SET %s WHERE `cID` = '%i'",
query,
carid);
db_query(Database, result);
return 1;
}
#push