If you die armour stay.
#9

Quote:
Originally Posted by MP2
Посмотреть сообщение
That won't work because you're using local variables.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:pArmour;
    GetPlayerArmour(playerid, pArmour);
    SetPVarFloat(playerid, "pArmour", pArmour);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    new Float:pArmour;
    GetPVarFloat(playerid, "pArmour", pArmour);
    SetPlayerArmour(playerid, pArmour);
    return 1;
}
Oh ok Thanks for correcting me
Reply


Messages In This Thread
If you die armour stay. - by Ernestas_ - 27.04.2012, 09:40
Re: If you die armour stay. - by FalconX - 27.04.2012, 09:48
Re: If you die armour stay. - by MP2 - 27.04.2012, 09:52
Re: If you die armour stay. - by Ernestas_ - 27.04.2012, 09:58
Re: If you die armour stay. - by MP2 - 27.04.2012, 10:01
Re: If you die armour stay. - by FalconX - 27.04.2012, 10:02
Re: If you die armour stay. - by Ernestas_ - 27.04.2012, 10:07
Re: If you die armour stay. - by MP2 - 27.04.2012, 10:11
Re: If you die armour stay. - by FalconX - 27.04.2012, 10:35
Re: If you die armour stay. - by Ernestas_ - 27.04.2012, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)