Help! unreachable code
#1

Dear all

im puting a code into my gm
for anti cheat money, but im having a bit problem
so im big ignorant of pawn script, bit still learning

so can you help me with this?
what im doing bad?

Thanks

Код:
public OnPlayerUpdate(playerid)
{
	if(!IsPlayerConnected(playerid)) return 0;
	// No weapons in interiors
	if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
	    SetPlayerArmedWeapon(playerid,0); // fists
	    return 0; // no syncing until they change their weapon
	}
	return 1;
	{ //---------------------------------------------------------------------------------------------LINE 23599---//
		if(GetPlayerMoneyEx(playerid) != GetPlayerMoney(playerid))
		{
		new const old_money = GetPlayerMoneyEx(playerid);
		ResetPlayerMoneyEx(playerid), GivePlayerMoneyEx(playerid, old_money);
		}
		return 1;
	}
}
Код:
G:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\SATDM_v10.pwn(22599) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply


Messages In This Thread
Help! unreachable code - by martini002 - 05.04.2011, 16:22
Respuesta: Help! unreachable code - by Daniel-92 - 05.04.2011, 16:53
Re: Help! unreachable code - by Dark_Kostas - 05.04.2011, 16:54
Re: Help! unreachable code - by Calgon - 05.04.2011, 16:59
Re: Respuesta: Help! unreachable code - by martini002 - 05.04.2011, 17:00
Re: Help! unreachable code - by martini002 - 05.04.2011, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)