Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

when I drop something from my inventory by draging into the drop slot the game crashes.

___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_player:

string_pos argument 2 incorrect type (undefined) expecting a String (YYGS)
############################################################################################
--------------------------------------------------------------------------------------------
called from - gml_Script_weapon_type (line 8)
called from - gml_Object_obj_player_Draw_0 (line 77)

(2 edits)

Do you remember the item you dropped? I am having a hard time reproducing it

well thats wierd it only does when I drop from the first hotbar slot,  but it does whit every item I tried whit, any meele- ranged weapon, stacks that i had. for example: stack of cloth, rifle, bow, lab coat,  some of them where damaged.

(+1)

ahh I'll check that from the hot bar slot. It could be messed up. I modified that code slightly.