Guest User

Untitled

a guest
May 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. for(new v=0; v<sizeof(vInfo); v++)
  2. {
  3. format(mysql, sizeof(mysql), "SELECT * FROM `vehicles` WHERE `VID`=%d", v);
  4. mysql_query(mysql);
  5. mysql_store_result();
  6. new field[256]; // big, has to be AFAIK
  7. if(mysql_retrieve_row())
  8. {
  9. fetch_int("VID", vInfo[v][vID]);
  10. fetch_int("Model", vInfo[v][vModel]);
  11. fetch_string("Owner", vInfo[v][vOwner]);
  12. fetch_int("Locked", vInfo[v][vLocked]);
  13. fetch_int("Lock", vInfo[v][vLock]);
  14. fetch_int("Alarm", vInfo[v][vAlarm]);
  15. fetch_int("Insurance", vInfo[v][vInsurance]);
  16. fetch_int("Color1", vInfo[v][vColor1]);
  17. fetch_int("Color2", vInfo[v][vColor2]);
  18. fetch_string("Plate", vInfo[v][vPlate]);
  19. fetch_float("vX", vInfo[v][vX]);
  20. fetch_float("vY", vInfo[v][vY]);
  21. fetch_float("vZ", vInfo[v][vZ]);
  22. fetch_int("Owned", vInfo[v][vOwned]);
  23. }
  24. CreateVehicle(vInfo[v][vModel], vInfo[v][vX], vInfo[v][vY], vInfo[v][vZ], 1.0, vInfo[v][vColor1], vInfo[v][vColor2], 1000);
  25. mysql_free_result();
  26. }
Add Comment
Please, Sign In to add comment