Empty statement
#6

If this what you want.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if( newkeys == KEY_HORN )
    {
        if(IsPlayerInRangeOfPoint(playerid, 20.0 , 1477.21, 1750.11, 9.29))
        {
            if(GetPVarInt(playerid, "liftas") == 0)
            {
                MoveDynamicObject(liftas, 1480.31, 1746.09, 96.01, 5.0);
                SetPVarInt(playerid, "liftas", 1);
                GameTextForPlayer(playerid, "~G~ Keliates Aukstyn!", 2000, 5);
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 20.0 , 1480.31, 1746.09, 96.01))
        {
            if(GetPVarInt(playerid, "liftas") == 1)
            {
                MoveDynamicObject(liftas, 1481.07, 1744.07, 9.35, 5.0);
                SetPVarInt(playerid, "liftas", 0);
                GameTextForPlayer(playerid, "~R~ Keliates zemyn!", 2000, 5);
            }
        }
    }
    // rest
The errors means that you have an if statement which is empty. You need to open a bracket, write some part of code in it and close the bracket.
Reply


Messages In This Thread
Empty statement - by Louris - 03.12.2012, 16:15
Re: Empty statement - by [HK]Ryder[AN] - 03.12.2012, 16:18
Re: Empty statement - by tyler12 - 03.12.2012, 16:18
Re: Empty statement - by Vince - 03.12.2012, 16:33
Re: Empty statement - by Louris - 03.12.2012, 16:38
Re: Empty statement - by Konstantinos - 03.12.2012, 16:46
Re: Empty statement - by Louris - 03.12.2012, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)