SA-MP Forums Archive
Checking for valid name in /changename - 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: Checking for valid name in /changename (/showthread.php?tid=253289)



Checking for valid name in /changename - lolumadd_ - 05.05.2011

Does anybody have a IsValidName function that detects if a name has any bad symbols. I don't want someone to make a name like "poop\/" and complain that he cant join back in to change it.

If there is no function, can someone tell me the symbols that aren't allowed in a name?


Re: Checking for valid name in /changename - DRIFT_HUNTER - 05.05.2011

pawn Код:
strfind(string,"@",true,1)return 0;//You found @



Re: Checking for valid name in /changename - lolumadd_ - 05.05.2011

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
pawn Код:
strfind(string,"@",true,1)return 0;//You found @
I know, I said what SYMBOLS ARE NOT ALLOWED IN A NAME?