Problem with jump
#2

Код:
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
            if(IsPlayerConnected(playerid))
        {
            SetPlayerHealth(playerid, SaveHealth[playerid]); 
        }
    }
You're using a loop to check thru all players and set all of their healths to whatever it was saved. Since it is only saved for the player that jamp and got the variable setted, everyone gets their health set to the default of the variable, which is 0 unless you've changed it.

You can fix that by using SetTimerEx to add a player parameter ( and even a health parameter) instead of using a global timer.
Reply


Messages In This Thread
Problem with jump - by lopata - 24.02.2014, 18:37
Respuesta: Problem with jump - by CuervO - 24.02.2014, 18:54
Re: Problem with jump - by lopata - 24.02.2014, 20:07
Respuesta: Problem with jump - by CuervO - 24.02.2014, 20:14
Re: Problem with jump - by lopata - 24.02.2014, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)