Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var f, str;
  2. global.animal[1] = ds_list_create()
  3. global.animal[2] = ds_list_create()
  4. global.animal[3] = ds_list_create()
  5. global.animal[4] = ds_list_create()
  6. global.animal[5] = ds_list_create()
  7. f = file_text_open_read("ANIMAL.txt")
  8. do
  9. {
  10.     str = file_text_read_string(f)
  11.     ds_list_add(global.animal[real(string_char_at(str,string_pos(",",str)+2))],string_copy(str,1,string_pos(",",str)-1))
  12. }
  13. until (file_text_eof(f))
  14. file_text_close(f)
  15.  
  16. room_goto_next()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement