I
ItsRealGaming
Guest
hOi, I have a problem about the placeholder message. For example, I got 3 weapons with 3 descriptions.
When I start the game, the weapon and the description is drawn like normal. If I add 4th weapon and I don't add the description, how can I make it drawn the message like: "Missing variable: <global.weaponDescription[ /*The current weapon*/ ]>"?. For example: "Missing variable: <global.weaponDescription[OrbitBall]>"
I can provide you my variable and code:
When I start the game, the weapon and the description is drawn like normal. If I add 4th weapon and I don't add the description, how can I make it drawn the message like: "Missing variable: <global.weaponDescription[ /*The current weapon*/ ]>"?. For example: "Missing variable: <global.weaponDescription[OrbitBall]>"
I can provide you my variable and code:
Code:
draw_text(75,180,"Weapon Description:##" + string(global.weaponDescription[global.currentWeapon]));