OnPlayerSpawn not getting called.
#6

Okay, I think I've got it.

You're calling case 1 before 0. It may be messing it up or, I'm not entirely sure.

pawn Код:
switch(PlayerJustDied[playerid])
        {
            case 0:
               {
                    GetPlayerPos(playerid, DeathStuff[playerid][DeathX], DeathStuff[playerid][DeathY], DeathStuff[playerid][DeathZ]);
                    GetPlayerFacingAngle(playerid, DeathStuff[playerid][DeathA]);
                    DeathStuff[playerid][DeathInt] = GetPlayerInterior(playerid);
                    DeathStuff[playerid][DeathHP] = 100;
                    for(new i = 0; i<13;i++)
                    {
                        GetPlayerWeaponData(playerid, i, DeathWeapons[playerid][i][0], DeathWeapons[playerid][i][1]);
                    }
                    PlayerJustDied[playerid] = 1;
                    AccountData[playerid][pHospitalized] = 0;
                    printf("0: Player %d is dieng | Just died? %d", playerid, PlayerJustDied[playerid]);
               }
            case 1:
            {
                PlayerJustDied[playerid] = 0;
                AccountData[playerid][pHospitalized] = 1;
                printf("1: Player %d is dieng | Just died? %d", playerid, PlayerJustDied[playerid]);
            }

        }
    }
  }
Try this.
Reply


Messages In This Thread
OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 09:09
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 09:31
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 09:43
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 09:59
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 10:01
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 10:24
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 10:25
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 10:27
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 10:28
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)