maybe a bug
#1

timers are bugged out for ex the gates i use are set to close in 10 secs but close in 1sec instead of 10

I'm using the SetTimer function
Reply
#2

1000 = 1 second
10000 = 10 seconds

i bet you have it on 1000
Reply
#3

nope there set at 10000


SetTimer("GateClosepdgate", 10000, 0);
Reply
#4

Quote:
Originally Posted by pepper
nope there set at 10000


SetTimer("GateClosepdgate", 10000, 0);
Hmm... Is it your /opengate command?
Reply
#5

yea heres the code

Код:
 	if (strcmp("/pdgatop", cmdtext, true) == 0)
	{
		if(IsACop(playerid))
		{
		MoveStreamObject(pdgate,1546.58,-1626.19,19.88,1);
		GetPlayerName(playerid,sendername,sizeof(sendername));
		format(string,sizeof(string), "* %s uses his remote to open the shutter to the SFPD.",sendername);
		}
		else
		{
 		return SendClientMessage(playerid, COLOR_YELLOW, "You are not a Cop!");
		}
		GameTextForPlayer(playerid, "~G~Gate open!", 3000, 5);
		SetTimer("GateClosepdgate", 10000, 0);
 	 	SendClientMessage(playerid, COLOR_YELLOW,"The PDGATE Gate will AutoClose in 5 Seconds");
		return 1;
	}
timer works fine in samp2 but in samp3 it's all messed up
Reply
#6

Quote:
Originally Posted by pepper
yea heres the code

Код:
 	if (strcmp("/pdgatop", cmdtext, true) == 0)
	{
		if(IsACop(playerid))
		{
		MoveStreamObject(pdgate,1546.58,-1626.19,19.88,1);
		GetPlayerName(playerid,sendername,sizeof(sendername));
		format(string,sizeof(string), "* %s uses his remote to open the shutter to the SFPD.",sendername);
		}
		else
		{
 		return SendClientMessage(playerid, COLOR_YELLOW, "You are not a Cop!");
		}
		GameTextForPlayer(playerid, "~G~Gate open!", 3000, 5);
		SetTimer("GateClosepdgate", 10000, 0);
 	 	SendClientMessage(playerid, COLOR_YELLOW,"The PDGATE Gate will AutoClose in 5 Seconds");
		return 1;
	}
timer works fine in samp2 but in samp3 it's all messed up
Hmm, is the object-streamer 0.3 compatible? Just trying to guess what's wrong.
Reply
#7

yep worked fine tell the new rc8 update
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)