Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. forward UcitajDrogu();
  2. public UcitajDrogu()
  3. {
  4. new rows, fields;
  5. cache_get_row_count(rows);
  6. cache_get_field_count(fields);
  7. new drg = 0;
  8. if(rows)
  9. {
  10. while(drg<rows)
  11. {
  12. cache_get_value_name_int(sm,"drgfraktid",DrugInfo[drg][drgfraktid]);
  13. cache_get_value_name_int(sm,"drgArt",DrugInfo[drg][drgArt]);
  14. cache_get_value_name_float(sm,"drgXpos",DrugInfo[drg][drgXpos]);
  15. cache_get_value_name_float(sm,"drgYpos",DrugInfo[drg][drgYpos]);
  16. cache_get_value_name_float(sm,"drgZpos",DrugInfo[drg][drgZpos]);
  17. cache_get_value_name_int(sm,"drginterior",DrugInfo[drg][drginterior]);
  18. cache_get_value_name_int(sm,"drgvirtualworld",DrugInfo[drg][drgvirtualworld]);
  19. cache_get_value_name_int(sm,"drgProduceDrugs",DrugInfo[drg][drgProduceDrugs]);
  20. cache_get_value_name_int(sm,"drgNextDrugsIn",DrugInfo[drg][drgNextDrugsIn]);
  21. cache_get_value_name_int(sm,"drgWasserzustand",DrugInfo[drg][drgWasserzustand]);
  22. cache_get_value_name(sm,"drgOwner",DrugInfo[drg][drgOwner], 24);
  23.  
  24.  
  25.  
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement