I need to generate random numbers for a function in my game. If the number generated is even the player gets an item, if its odd it fails. At the moment my character needs to cut down some wood. I tried this:
but after i go to the tree and click enter, the game freezes. Anyone know how to fix this?
textprintf_ex(backbuffer, font, 3, 450, makecol(255, 255, 255), 0, "You obtain a piece of wood!");
textprintf_ex(backbuffer, font, 3, 450, makecol(255, 255, 255), 0, "You fail cutting the tree.");