Help me here
#1

Well , when i compile the .pwn file i get this error


Код:
(578) : warning 225: unreachable code
This is the command :

//Kick cmd :
Код:
    if(!strcmp(cmd, "/kick"))
    {
  {
  if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You are not an admin !");
  new targetid, reason[64], string[128];
  if(sscanf(params, "uz", targetid, reason)) return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /kick [playerid/partofname] [reason]");
  if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Player not connected!");
  else
  {
  new pName[128];
  GetPlayerName(targetid,pName,128);
  format(string, sizeof(string), "%s have been Muted By an Admin ! Reason: %s", pName, reason);
  SendClientMessageToAll(0xA10000AA,string);
  format(string, sizeof(string), "You have been kicked! Reason: %s", reason);
  SendClientMessage(targetid,0xA10000AA,string);
  Kick(targetid);
  }
  return 1;
}
  return 1;
}
Reply


Messages In This Thread
Help me here - by Soumi - 18.03.2011, 17:51
Re: Help me here - by Roomeo - 18.03.2011, 17:55
Re: Help me here - by Roomeo - 18.03.2011, 17:56
Re : Help me here - by Soumi - 18.03.2011, 19:17
Re: Help me here - by Markx - 18.03.2011, 20:12
Re: Help me here - by alpha500delta - 18.03.2011, 20:13
Re: Help me here - by JaTochNietDan - 18.03.2011, 20:15
Re: Help me here - by maramizo - 18.03.2011, 21:20
Re: Help me here - by JaTochNietDan - 18.03.2011, 21:28
Re: Help me here - by maramizo - 18.03.2011, 21:31

Forum Jump:


Users browsing this thread: 3 Guest(s)