SA-MP Forums Archive
Stock IsValidName - 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: Stock IsValidName - HELP (/showthread.php?tid=456252)



Stock IsValidName - HELP - TranquiliZed - 05.08.2013

How can I make a valid name Checker for Roleplay.
Thanks to who ever can help me. Greatly appreciated.


Re: Stock IsValidName - HELP - Edix - 05.08.2013

Well you can make it urself by using sscanf and for the admin part you need to do a check when a player connects


Re: Stock IsValidName - HELP - TranquiliZed - 05.08.2013

Quote:
Originally Posted by Edix
Посмотреть сообщение
Well you can make it urself by using sscanf and for the admin part you need to do a check when a player connects
This section was meant to be for question. Please do comment telling someone to do it there self. If they could I'm pretty sure they would.


Re: Stock IsValidName - HELP - Edix - 05.08.2013

Quote:
Originally Posted by TranquiliZed
Посмотреть сообщение
This section was meant to be for question. Please do comment telling someone to do it there self. If they could I'm pretty sure they would.
I dont see any question, only a demand.


Re: Stock IsValidName - HELP - RajatPawar - 05.08.2013

METHOD: Use "strfind" function to check if "_" exists in the name, use a variable and ++ it everytime you encounter a underscore. Then check if the variable is 2, AND check if there is a gap of atleast ONE CHARACTER between those two positions (save using ANOTHER variable - simplest way)