23.11.2012, 07:34
after u show the ammo dialog, accept the ammo in a variable. Then add a new float variable and it contains the money. For eg-
Done!!
Quote:
|
new ammo=strval(inputtext);//under the dialog response of the ammo dialog new Float:money; money=ammo*0.5; new str[80]; format(str,sizeof(str),"Total money : %f ",money); ShowPlayerDialog(str); |

