Players Alive counter doesn't go down OnPlayerDisconnect
#3

Quote:
Originally Posted by UnDetectable
Посмотреть сообщение
I don't really get it but I doubt that you have created
Код:
pInfo[playerid][DM] = 0;
in OnPlayerDisconnect before your timer

That means when the player disconnects, the DM info sets to 0
before your alive counter starts

So when the counter checks the player, it won't work because you are checking if the DM info sets to 1
Код:
pInfo[playerid][DM] && pInfo[i][DM] == 1
Which is not

Just guessing xd

And btw, why you are setting the health of the player to 0 when he disconnects? xD
Код:
pInfo[playerid][DM] = 1;
is used to check if the player is in the DM mode or not when the player leave it automatically sets it to 0

and i'm setting the hp to 0
cuz when the player dies it removes 1 from the alive counter, so i thought that would work, but it didn't, and i forgot to remove it!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)