Change the value of a Global Variable from an if statement
#5

I have a TextDraw, like a cellphone with numbered buttons 0-9 and stuffs like that. And I created a TextDraw which should show the value of the pressed button. This part is the button 0. Now if i press 0, it appears on the "screen" but if I press another button for example 2, it change the number to 2. But it should show 02 and so on like how I press the buttons.

The 'if' part make a 0 after a pressed button. The else part should be for if yet theres no value on the screen, then show 0 and does nothing after it. But I have to change the value of the hossz variable to 1 for shows a 2nd 0 and not replace it to one 0 again.
Reply


Messages In This Thread
How to change the value of a Global Variable from an if statement - by Matteos - 26.01.2016, 17:16
Re: Change the value of a Global Variable from an if statement - by Untonyst - 26.01.2016, 17:55
Re: Change the value of a Global Variable from an if statement - by Matteos - 26.01.2016, 18:10
Re: Change the value of a Global Variable from an if statement - by TheLegend1 - 26.01.2016, 18:24
Re: Change the value of a Global Variable from an if statement - by Matteos - 26.01.2016, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)