y_timers help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_timers help (
/showthread.php?tid=324719)
y_timers help -
Bect - 10.03.2012
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
Re: y_timers help -
Bect - 10.03.2012
help !
Re: y_timers help -
Bect - 11.03.2012
HELP !
Re: y_timers help -
Bect - 11.03.2012
Code:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys&KEY_CROUCH)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,477.25,-1317.91,15.27))
{
MoveObject(barierawd1,477.1512,-1317.9750,15.2730,20,0.0000,0.0000,35.5438);
SetTimer("CloseBarrierwd1",5000,0);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,5.0,438.91,-1344.35,14.97))
{
MoveObject(barierawd2,438.8107,-1344.3813,14.9669,20,0.0000,0.0000,31.5725);
SetTimer("CloseBarrierwd2",5000,0);
return 1;
}
}
return 1;
}
How i transform this ... with y_timers ?
Re: y_timers help -
Bect - 12.03.2012
Help !
Re: y_timers help -
Bect - 12.03.2012
help me please... i will give +rep !!!!!!!!!!!!!!!!
Re: y_timers help -
Bect - 13.03.2012
Who want rep ?! HELP ME !
Re: y_timers help -
Bect - 13.03.2012
Want +rep( 5 ) I will give you +rep everyday ( 5 days ) ( 5 + rep ) if you help me with this !!!!
Re: y_timers help -
Bect - 14.03.2012
well... y_timers isn't better ?