Help! unreachable code
#2

The code would be well
pawn Код:
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
     }
    if(GetPlayerMoneyEx(playerid) != GetPlayerMoney(playerid))
     {
        new const old_money = GetPlayerMoneyEx(playerid);
        ResetPlayerMoneyEx(playerid), GivePlayerMoneyEx(playerid, old_money);
     }
    return 1;
 }
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: 1 Guest(s)