SA-MP Forums Archive
Selection with arrows - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Selection with arrows (/showthread.php?tid=591417)



Selection with arrows - ZmaXy - 11.10.2015

Hi all,
I'm working on registration, and I came to the selection year.

I have something like this:
PHP код:
new
    
age[2]; 
PHP код:
else if(clickedid == RegisterTD[24])// Arrows Left
{
    
format(agesizeof(age), "Example");
    
TextDrawSetString(Text:RegisterTD[23], age);
}
else if(
clickedid == RegisterTD[25])// Arrows Right
{
    
format(agesizeof(age), "Example");
    
TextDrawSetString(Text:RegisterTD[23], age);

How to do when you reach a certain number can't go further and that it must use a another arrows to go back?


Re: Selection with arrows - Unte99 - 11.10.2015

You just hide the textdraw, so the player can't press the button anymore.


Re: Selection with arrows - ZmaXy - 11.10.2015

Quote:
Originally Posted by Unte99
Посмотреть сообщение
You just hide the textdraw, so the player can't press the button anymore.
I didn't think of it. Thanks.