Advertisement
mrdrifter

Untitled

Mar 29th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. LoadArena_Ch()
  2. {
  3. new string[128];
  4. new DBResult:Chowany;
  5. Chowany = db_query(fun_db,"SELECT * FROM `fun_ch` ORDER BY RANDOM() LIMIT 1;");
  6. if(db_num_rows(Chowany)>0)
  7. {
  8. db_get_field(Chowany,0,string,128);
  9. printf("%s ", string);
  10. }
  11. else print("brak rek");
  12. db_free_result(Chowany);
  13.  
  14. new Arena, Int, Float:x[3], x2[3];
  15. sscanf(string, "ddp<,>ffffff", Arena, Int, x[0], x[1], x[2], x2[0], x2[1], x[2]);
  16. printf("%d %d %0.f %0.f %0.f %0.f %0.f %0.f", Arena, Int, x[0], x[1], x[2], x2[0], x2[1], x2[2]);
  17.  
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement