SA-MP Forums Archive
ASCII help - 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: ASCII help (/showthread.php?tid=519292)



ASCII help - Lidor124 - 13.06.2014

Okay i need two conditions:

Its under OnDialogResponse - DIALOG_STYLE_INPUT

I want to use ASCII for inputtext, one only letters allowed (A-Z), the other one only numbers allowed (0-9)

Since inputtext cannot be indexed with arrays i have no idea what to do...

Код:
for(new l; l < sizeof(inputtext); l++) inputtext hasn't arrays so it gives me an error that it must be indexed.
{
if('0' <= inputtext[l] <= '9')