Getting the last player not working.
#1

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.
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
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.
That was easy thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)