Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. var mytype=arugment0;
  2. var amount=argument1
  3. var map = obj_game_core.active.s_cargo
  4. if(!ds_map_exists(map,mytype)){
  5. map[? mytype] = amount
  6. }else{
  7. map[? mytype] = map[? mytype] + amount;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement