Undefined symbol... Please help me out
#4

Full code
Quote:

new name[MAX_PLAYER_NAME], roleplayname[MAX_PLAYER_NAME] = "Will_Smith", goodbyemessage[108];
GetPlayerName(playerid, name, sizeof(name));
if (!IsRPName(name)) // you can control the max underlines, e.g if you allow max. 1 underlines, write this: if (!IsRPName(name, 1))
{
for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i)) break; // find a player who is online (and hasn't got kicked from the server -> has got a RolePlay name
if (IsPlayerConnected(i)) GetPlayerName(i, roleplayname, MAX_PLAYER_NAME); // if there was an online player, it's name will be the suggested roleplay name
format (goodbyemessage, sizeof(goodbyemessage), "* %s was kicked, come back with a roleplay name such as %s", name, roleplayname);
SendClientMessageToAll(-1, goodbyemessage);
return Kick(playerid);
}

Reply


Messages In This Thread
Undefined symbol... Please help me out - by Scrillex - 10.07.2012, 23:24
Re: Undefined symbol... Please help me out - by [A]ndrei - 10.07.2012, 23:27
Re: Undefined symbol... Please help me out - by DaRkM - 10.07.2012, 23:28
Re: Undefined symbol... Please help me out - by Scrillex - 10.07.2012, 23:32
Re: Undefined symbol... Please help me out - by Scrillex - 10.07.2012, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)