[HELP]Unreachable code
#1

Hi Guys, This is my first post and I came here because I have an problem,

I use this code
Код:
public OnPlayerConnect(playerid)
{
  new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(string, sizeof(string), "%s has joined the server", pname);
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;

  SendClientMessage(playerid, COLOR_GREEN, "Welcome to Michel's server, Enjoy your stay !");
  return 1;
}
But I get this error:
D:\GTA San-Andreas\Server\pawno\First script.pwn(473) : warning 225: unreachable code

SendClientMessage(playerid, COLOR_GREEN, "Welcome to Michel's server, Enjoy your stay !"); is the 473 line

Reply


Messages In This Thread
[HELP]Unreachable code - by Michelman - 06.12.2009, 19:19
Re: [HELP]Unreachable code - by Remi-X - 06.12.2009, 19:22
Re: [HELP]Unreachable code - by [XST]O_x - 06.12.2009, 19:23
Re: [HELP]Unreachable code - by Michelman - 06.12.2009, 19:25

Forum Jump:


Users browsing this thread: 2 Guest(s)