Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new v=0; v<sizeof(vInfo); v++)
- {
- format(mysql, sizeof(mysql), "SELECT * FROM `vehicles` WHERE `VID`=%d", v);
- mysql_query(mysql);
- mysql_store_result();
- new field[256]; // big, has to be AFAIK
- if(mysql_retrieve_row())
- {
- fetch_int("VID", vInfo[v][vID]);
- fetch_int("Model", vInfo[v][vModel]);
- fetch_string("Owner", vInfo[v][vOwner]);
- fetch_int("Locked", vInfo[v][vLocked]);
- fetch_int("Lock", vInfo[v][vLock]);
- fetch_int("Alarm", vInfo[v][vAlarm]);
- fetch_int("Insurance", vInfo[v][vInsurance]);
- fetch_int("Color1", vInfo[v][vColor1]);
- fetch_int("Color2", vInfo[v][vColor2]);
- fetch_string("Plate", vInfo[v][vPlate]);
- fetch_float("vX", vInfo[v][vX]);
- fetch_float("vY", vInfo[v][vY]);
- fetch_float("vZ", vInfo[v][vZ]);
- fetch_int("Owned", vInfo[v][vOwned]);
- }
- CreateVehicle(vInfo[v][vModel], vInfo[v][vX], vInfo[v][vY], vInfo[v][vZ], 1.0, vInfo[v][vColor1], vInfo[v][vColor2], 1000);
- mysql_free_result();
- }
Add Comment
Please, Sign In to add comment