SA-MP Forums Archive
Login Register script fails - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Login Register script fails (/showthread.php?tid=253495)



Login Register script fails - Webghost - 06.05.2011

Hi guys.

I got a register/login system made in Dialog boxes.
Just now i noticed that people could login with for example, my name, then type \n \t \i and something like that, to return to a register dialog.

Is there any way to accept characters and numbers ONLY? I mean like a regular expression from a-z 0-9?

I tried this, but ofc that would only work on \ not characters like ~ Ѕ с etc
if(strfind(inputtext,"\\",true)!= -1)


Re: Login Register script fails - Calgon - 06.05.2011

Fro1sha did release a plugin for regular expressions that you could use, click here for a direct link.


Re: Login Register script fails - Webghost - 06.05.2011

Oh great, thank you i will give this a shot