KaLu17

[pawno.pl] -> #?

Mar 13th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.58 KB | None | 0 0
  1. forward LoadVehicles();
  2. public LoadVehicles()
  3. {
  4.     new     result[128],
  5.         query[64],
  6.         i = 0;
  7.  
  8.         format(query, sizeof(query), "SELECT * FROM `m_vehicles`");
  9.  
  10.         mysql_query(query);
  11.     mysql_store_result();
  12.  
  13.     while(mysql_fetch_row_format(result, "|"))
  14.     {
  15.         new uid, name[24], model, col1, col2, Float:x, Float:y, Float:z, Float:a;
  16.         sscanf(result, "p<|>ds[24]dddffff", uid, name, model, col1, col2, x, y, z, a);
  17.         CreateVehicle(model, x, y, z, a, col1, col2, -1);
  18.         i++;
  19.     }
  20.     mysql_free_result();
  21.  
  22.     printf("Wczytano %d pojazdow", i);
  23.     return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment