Weird Spawn Bug, Lot of code.
#3

So you are resetting the player variables:
pawn Code:
static const empty_player[E_PLAYERS];
Player[playerid] = empty_player;
then setting the player's health to the reset variable under OnPlayerRegister:
pawn Code:
SetPlayerHealth(playerid, Player[playerid][Health]);
    SetPlayerArmour(playerid, Player[playerid][Armor]);
I hope the empty_player variable has health and armor set to 100.0?
Reply


Messages In This Thread
Weird Spawn Bug, Lot of code. - by SkyFlare - 06.06.2020, 17:50
Re: Weird Spawn Bug, Lot of code. - by [FMJ]PowerSurge - 06.06.2020, 19:18
Re: Weird Spawn Bug, Lot of code. - by Cell_ - 06.06.2020, 19:32
Re: Weird Spawn Bug, Lot of code. - by SkyFlare - 07.06.2020, 07:50

Forum Jump:


Users browsing this thread: 1 Guest(s)