How to make a check for not-allowed symbols?
#2

Use
pawn Код:
if(strfind(insert_new_name_string_here, "&") != -1 ||
strfind(insert_new_name_string_here, "$") != -1 ||
strfind(insert_new_name_string_here, "^") != -1 ||
strfind(insert_new_name_string_here, "@") != -1) return SendClientMesssage(playerid, 0xFF0000FF, "Invalid characters!");
//Here goes your code to change the nick.
Reply


Messages In This Thread
How to make a check for not-allowed symbols? - by HB - 29.03.2009, 12:28
Re: How to make a check for not-allowed symbols? - by bogeymanEST - 29.03.2009, 13:01
Re: How to make a check for not-allowed symbols? - by HB - 29.03.2009, 13:04
Re: How to make a check for not-allowed symbols? - by bogeymanEST - 29.03.2009, 13:11
Re: How to make a check for not-allowed symbols? - by HB - 29.03.2009, 13:35
Re: How to make a check for not-allowed symbols? - by PawnNewCommer - 22.07.2009, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)