Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward LoadVehicles();
- public LoadVehicles()
- {
- new result[128],
- query[64],
- i = 0;
- format(query, sizeof(query), "SELECT * FROM `m_vehicles`");
- mysql_query(query);
- mysql_store_result();
- while(mysql_fetch_row_format(result, "|"))
- {
- new uid, name[24], model, col1, col2, Float:x, Float:y, Float:z, Float:a;
- sscanf(result, "p<|>ds[24]dddffff", uid, name, model, col1, col2, x, y, z, a);
- CreateVehicle(model, x, y, z, a, col1, col2, -1);
- i++;
- }
- mysql_free_result();
- printf("Wczytano %d pojazdow", i);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment