Unreachable code :/
#1

Код:
CMD:slap(playerid, params[])
{
	new targetid, string[128], name[128];
	if(sscanf(params, "s", string))
	{
	    if(IsPlayerAdmin(playerid))
	    {
	                SendClientMessage(playerid, 0x708090FF, "Syntax: /slap [playerid]");
                        if(!IsPlayerConnected(targetid)) return
			SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
			SetPlayerVelocity(targetid, 0.5, 0.0, 0.0); return
   			format(string, sizeof(string), "%s has slapped %s",GetName(playerid), GetName(playerid), name);
			SendMessageToRAdmins(0xFF0000FF, string);
	     }
	}
	else
	{
		if(!IsPlayerAdmin(playerid)) return
		SendClientMessage(playerid, 0x708090FF, "You are not a admin!");
	}
	return 1;
}
Problem:
Код:
GreenIsGo.pwn(280) : warning 225: unreachable code
Line 280:
Код:
SendMessageToRAdmins(0xFF0000FF, string);
I know its bad but im just confused :/
Reply


Messages In This Thread
Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:17
Re: Unreachable code :/ - by Ironboy - 29.06.2012, 16:26
Re: Unreachable code :/ - by Calabresi - 29.06.2012, 16:28
Re: Unreachable code :/ - by ProfeQ - 29.06.2012, 16:29
AW: Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:33
Re: Unreachable code :/ - by pyrodave - 29.06.2012, 16:34
Re: Unreachable code :/ - by ProfeQ - 29.06.2012, 16:35
AW: Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:37
AW: Re: Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:39
Re: Unreachable code :/ - by Calabresi - 29.06.2012, 17:43

Forum Jump:


Users browsing this thread: 3 Guest(s)