10.03.2012, 15:36
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; }
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.