SetTimerEx isn't starting.
#1

I've been trying to fix this for hours; I've re-done it several times to no avail. Could anyone please tell me what is wrong with this? It's probably me being stupid, again...

Код:
if(pInfo[playerid][pTutorial] == 0)
	{
		SetSpawnInfo(playerid, 0, 0, 854.4556,-604.7520,18.4219, 0, 0, 0, 0, 0, 0, 0);
		SpawnPlayer(playerid);
		SetPlayerCameraPos(playerid, 857.8197,-577.9849,18.2964);
		SetPlayerCameraLookAt(playerid, 855.6580,-593.2801,17.9993);
		TogglePlayerControllable(playerid, 0);
		-- bunch of SendClientMessages
		pInfo[playerid][pTutorial] = 1;
		SetTimerEx("Tutorial1", 8000, false, "d", playerid);
	}
Код:
forward Tutorial1(playerid);
public Tutorial1(playerid)
{
	SetPlayerPos(playerid, -105.0782,-337.5756,1.6060);
	SetPlayerCameraPos(playerid, -96.6556,-395.3662,44.1454);
	SetPlayerCameraLookAt(playerid, -89.5856,-330.3827,32.2500);
	TogglePlayerControllable(playerid, 0);
	-- bunch of SendClientMessages
	pInfo[playerid][pTutorial] = 2;
	SetTimerEx("Tutorial2", 8000, false, "d", playerid);
	return 1;
}
The timer isn't being called or something, because I placed a print underneath the timer and that wasn't appearing in the console.
Reply
#2

I don't see a problem with the timers. Are you sure that pInfo[playerid][pTutorial] is 0?
Reply
#3

Yes, it's the Tutorial1 that isn't being called.
E: The timers are on the lines ABOVE the settimer - should I move them?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)