Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward UcitajDrogu();
- public UcitajDrogu()
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- new drg = 0;
- if(rows)
- {
- while(drg<rows)
- {
- cache_get_value_name_int(sm,"drgfraktid",DrugInfo[drg][drgfraktid]);
- cache_get_value_name_int(sm,"drgArt",DrugInfo[drg][drgArt]);
- cache_get_value_name_float(sm,"drgXpos",DrugInfo[drg][drgXpos]);
- cache_get_value_name_float(sm,"drgYpos",DrugInfo[drg][drgYpos]);
- cache_get_value_name_float(sm,"drgZpos",DrugInfo[drg][drgZpos]);
- cache_get_value_name_int(sm,"drginterior",DrugInfo[drg][drginterior]);
- cache_get_value_name_int(sm,"drgvirtualworld",DrugInfo[drg][drgvirtualworld]);
- cache_get_value_name_int(sm,"drgProduceDrugs",DrugInfo[drg][drgProduceDrugs]);
- cache_get_value_name_int(sm,"drgNextDrugsIn",DrugInfo[drg][drgNextDrugsIn]);
- cache_get_value_name_int(sm,"drgWasserzustand",DrugInfo[drg][drgWasserzustand]);
- cache_get_value_name(sm,"drgOwner",DrugInfo[drg][drgOwner], 24);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement