1 weird error and warning! :S [HELP]
#1

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if (PlayerToPoint(0.5, playerid, 1778.5148,-1575.8615,17.4416))
        {
          new newhealth = +50; // LINE 16
            SetPlayerHealth(playerid, newhealth);
        }
    }
    return 1;
}
After i compile, it gives me error and warning... Line 16 is "new newhealth = +50;

pawn Код:
C:\Documents and Settings\Moustafa & Ahmed\Desktop\Desktop\server\filterscripts\prisonhealth.pwn(16) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Moustafa & Ahmed\Desktop\Desktop\server\filterscripts\prisonhealth.pwn(16) : warning 215: expression has no effect
Reply


Messages In This Thread
1 weird error and warning! :S [HELP] - by Moustafa - 28.06.2009, 08:26
Re: 1 weird error and warning! :S [HELP] - by arnutisz - 28.06.2009, 08:32
Re: 1 weird error and warning! :S [HELP] - by Moustafa - 28.06.2009, 08:33
Re: 1 weird error and warning! :S [HELP] - by illay - 28.06.2009, 08:37

Forum Jump:


Users browsing this thread: 2 Guest(s)