Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SauvegardeVoiture(v)
- {
- new string[200],query[1500];
- format(string, sizeof(string),"UPDATE `cars` SET `cLocation`=%d, `cFaction`=%d, `cModel`=%d, `cLocationx`=%f, `cLocationy`=%f, `cLocationz`=%f, `cAngle`=%f, `cColorOne`=%d, `cColorTwo`=%d, `cOwner`='%s', ",\
- CarInfo[v][cLocation], CarInfo[v][cFaction], CarInfo[v][cModel], CarInfo[v][cLocationx], CarInfo[v][cLocationy], CarInfo[v][cLocationz], CarInfo[v][cAngle], CarInfo[v][cColorOne],CarInfo[v][cColorTwo], CarInfo[v][cOwner]);
- strcat(query, string);
- format(string, sizeof(string),"`cDescription`='%s', `cValue`=%d, `cLicense`='%s', `cRegistration`=%d, `cOwned`=%d, `cLock`=%d, `mod1`=%d, `mod2`=%d, `mod3`=%d, `mod4`=%d, `mod5`=%d, `mod6`=%d, ",\
- CarInfo[v][cDescription],CarInfo[v][cValue],CarInfo[v][cLicense],CarInfo[v][cRegistration],CarInfo[v][cOwned],CarInfo[v][cLock],CarInfo[v][mod1],CarInfo[v][mod2],CarInfo[v][mod3],CarInfo[v][mod4],CarInfo[v][mod5], CarInfo[v][mod6]);
- strcat(query, string);
- format( string, sizeof(string),"`mod7`=%d, `mod8`=%d, `mod9`=%d, `mod10`=%d, `mod11`=%d, `mod12`=%d, `mod13`=%d, `mod14`=%d, `mod15`=%d, `mod16`=%d, `mod17`=%d, ",\
- CarInfo[v][mod7],CarInfo[v][mod8],CarInfo[v][mod9],CarInfo[v][mod10],CarInfo[v][mod11], CarInfo[v][mod12],CarInfo[v][mod13],CarInfo[v][mod14],CarInfo[v][mod15],CarInfo[v][mod16], CarInfo[v][mod17]);
- strcat(query, string);
- format(string, sizeof(string),"`paintjob`=%d, `tNeon`=%d, `CT`=%d, `Assurance`=%d WHERE `ID`=%d", CarInfo[v][paintjob],CarInfo[v][tNeon],CarInfo[v][CT],CarInfo[v][Assurance], CarInfo[v][cID]);
- strcat(query, string);
- mysql_tquery(mysql, query, "", "");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement