y_timers help
#1

Code:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(newkeys&KEY_CROUCH)
    {
        if(PlayerInfo[playerid][Faction]==12||PlayerInfo[playerid][FLeader]==12)
        {
            if(IsPlayerInRangeOfPoint(playerid,4.0,477.20001220703,-1317.9000244141,15.5))
            {
          MoveObject(barierawd1,477.20001220703,-1317.9000244141,15.5,20,0,359.56851196289,36.749267578125);
//error line	  timer DelayedTimer[5000](playerid)
          {
       MoveObject(barierawd1,477.20001220703,-1317.9000244141,15.5,20,0,268.63000488281,36.750030517578);
       }
       }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,426,-1361.1999511719,14.89999961853))
    {
    MoveObject(barierawd2,426,-1361.1999511719,14.89999961853,0,20,269.11795043945,302.76211547852);
    timer DelayedTimer[5000](playerid)
{
   MoveObject(barierawd2,426,-1361.1999511719,14.89999961853,0,20,269.11795043945,302.76211547852);
}
}
}
}
return 1;
}
ERRORS:

Code:
D:\Jocuri\a\SaMp\a\gamemodes\a.pwn(379) : error 029: invalid expression, assumed zero
D:\Jocuri\a\SaMp\a\gamemodes\a.pwn(379) : error 017: undefined symbol "DelayedTimer_yT@"
D:\Jocuri\a\SaMp\a\gamemodes\a.pwn(379) : error 001: expected token: ";", but found "return"
D:\Jocuri\a\SaMp\a\gamemodes\a.pwn(379) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
help
Reply


Messages In This Thread
y_timers help - by Bect - 10.03.2012, 15:36
Re: y_timers help - by Bect - 10.03.2012, 16:37
Re: y_timers help - by Bect - 11.03.2012, 16:16
Re: y_timers help - by Bect - 11.03.2012, 17:04
Re: y_timers help - by Bect - 12.03.2012, 13:42
Re: y_timers help - by Bect - 12.03.2012, 18:08
Re: y_timers help - by Bect - 13.03.2012, 10:22
Re: y_timers help - by Bect - 13.03.2012, 19:31
Re: y_timers help - by Bect - 14.03.2012, 14:43

Forum Jump:


Users browsing this thread: 2 Guest(s)