Stock IsValidName - HELP
#1

How can I make a valid name Checker for Roleplay.
  • Needs to be 2 _ Example: Dante_M_Williams
  • Detect if the single name is an Admin. Example: Dante can log in with single name
Thanks to who ever can help me. Greatly appreciated.
Reply
#2

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

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.
Reply
#4

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.
Reply
#5

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)