23.03.2013, 11:30
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...
The timer isn't being called or something, because I placed a print underneath the timer and that wasn't appearing in the console.
Код:
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; }