Help with /nick
#1

When I try to change nick into other with illegal characters server don't change it.
I tried this:
pawn Code:
new CheckNick[MAX_PLAYER_NAME];
                SetPlayerName(playerid,NewNick);
               
                GetPlayerName(playerid,CheckNick,MAX_PLAYER_NAME);
                if(!strcmp(NewNick,CheckNick,true))
                    return SendClientMessage(playerid,red,"[SERVER]: Bad symbols in nickname!");
But this doesn't work, so how to make something like this, that player cant write /nick and nickname with bad symbols(!@#$%^&* etc.) ?
Reply


Messages In This Thread
Help with /nick - by Dreftas - 05.06.2009, 16:02
Re: Help with /nick - by Weirdosport - 05.06.2009, 16:06
Re: Help with /nick - by Mr_Finnigan - 05.06.2009, 16:06
Re: Help with /nick - by Dreftas - 05.06.2009, 16:18
Re: Help with /nick - by Dreftas - 05.06.2009, 16:55
Re: Help with /nick - by Dreftas - 05.06.2009, 17:22
Re: Help with /nick - by Andom - 05.06.2009, 17:28
Re: Help with /nick - by Dreftas - 05.06.2009, 18:20
Re: Help with /nick - by Dreftas - 05.06.2009, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)