Define
#1

Hey guys,

Im making a dialog where you can buy guns. Now im trying to make dynamic prices behind the weapon like this:
pawn Code:
ShowPlayerDialog(playerid, HANDWEP, DIALOG_STYLE_LIST, "Choose the weapon you want", "Knife($KNIFE) \nBaseball Bat($BASEBALL) \nShovel($SHOVEL) \nKatana($KATANA) \nChainsaw($CHAINSAW)", "Buy", "Back");
The ($KNIFE) is a define, just like all the other things. Somehow, it shows ingame just like this in the dialog:
Knife($KNIFE)
It should be "Knife($500)". I got all the defines right, and i dont see the problem here. Can anyone help me with this?

Weapon prices defines:
pawn Code:
#define KNIFE               500
#define BASEBALL            800
#define SHOVEL              900
#define KATANA              1000
#define CHAINSAW            1500
~Wesley
Reply


Messages In This Thread
Define - by Wesley221 - 22.08.2011, 17:40
Re: Define - by RyDeR` - 22.08.2011, 17:50
Re: Define - by Wesley221 - 22.08.2011, 17:51
Re: Define - by RyDeR` - 22.08.2011, 17:54
Re: Define - by Wesley221 - 22.08.2011, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)