Server closed the connection
#5

Quote:
Originally Posted by DeathTone
Посмотреть сообщение
Your doing it reversed.

Correct way:

pawn Код:
if(strfind(pName, "_", true) != -1)
{
format(sstring, 128, "You do not have an proper roleplay name! Example: John_Smith.");
SendClientMessage(playerid,ROJO, sstring);
Kick(playerid);
return 1;
}
if(strfind(pName, "_", true) == -1) will return 1 if it DID find a "_" in the username.
strfind returns the position in the string where the desired character was found

example
pawn Код:
new string[] = "F@#%";

printf("%d", strfind(string, '#', true));
will print out 2.
Reply


Messages In This Thread
Server closed the connection - by Adam420 - 06.08.2012, 02:51
Re: Server closed the connection - by Eminem 2ka9 - 06.08.2012, 02:53
Re: Server closed the connection - by DeathTone - 06.08.2012, 02:57
Re: Server closed the connection - by Adam420 - 06.08.2012, 03:06
Re: Server closed the connection - by ReneG - 06.08.2012, 03:08

Forum Jump:


Users browsing this thread: 1 Guest(s)