Need help with something.
#5

You forgot what you need to place in OnPlayerConnect :P

target[256]. Are you goddamn crazy? You should read why not to use houmungous sizes. Maximum text message size is 128. - /nameban's lenght (7) The maximum string should be [121]
so, I suggest changing target[256] to target[121].

Also i prefer using this instead of GetPlayerName:
pawn Код:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
Then add this in OnPlayerConnect:
[pawn]
if (dini_Int(PlayerName(playerid),"idiot")) Kick(playerid);
Kicks him for having a bad name.
Reply


Messages In This Thread
Need help with something. - by Im_BanK - 17.05.2011, 08:12
Re: Need help with something. - by Biesmen - 17.05.2011, 08:14
Re: Need help with something. - by Im_BanK - 17.05.2011, 08:15
Re: Need help with something. - by Elka_Blazer - 17.05.2011, 08:51
Re: Need help with something. - by DeadAhead - 17.05.2011, 09:51
Re: Need help with something. - by Elka_Blazer - 17.05.2011, 10:50
Re: Need help with something. - by Biesmen - 17.05.2011, 10:55
Re: Need help with something. - by Im_BanK - 17.05.2011, 11:43
Re: Need help with something. - by Im_BanK - 17.05.2011, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)