Posts: 109
Threads: 50
Joined: Jul 2010
Reputation:
0
15.12.2010, 09:46
(
Последний раз редактировалось ZamaXor; 15.12.2010 в 10:22.
)
I have that code that checks if the players is the last alive in the mission and it's not working. When the player is the last alive nothing happen. I checked all the variables are right. What's the problem?
code removed problem solved.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
You need to use a loop inside the LastPlayerAlive function and remove the "playerid" parameter from it too. I don't know if that'll fix your problem but its a problem itself. Because SetTimer isn't passing an id as a parameter. For that you need to use SetTimerEx, but that won't work (for what you need) in OnGameModeInit/OnFilterScriptInit.