OnPlayerConnect(playerid);
#1

HAI!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I GOT A BIG PROBLEM MEN. ME PAWNO NO WORX!!

Ok. Here's the problem. This is my code:


pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if (strfind(name, "******", true) == 0)
 {
   SendClientMessage(playerid,COLOR_BLUE,"Hmm nice sscanf. I will go change the credits of it and claim it as mines brb.");
   Ban(playerid);
   }
[b]This is not a insult or any other thing including ****** it was just a little example.
This wont work I dont know why. It's the first thing In OnPlayerConnect.

I cant return it. ITS THE FIRST THING IN ONPLAYERCONNECT.

TELL ME HOW TO MAKE THIS WORK! I NEED TO NAME BAN OVER 32 PEOPLE Cmon do this fast
Reply
#2

pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, "******", true))
{
    SendClientMessage(playerid,COLOR_BLUE,"Hmm nice sscanf. I will go change the credits of it and claim it as mines brb.");
    Ban(playerid);
}
Test it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)