Transfering variable values
#1

pawn Код:
if(PlayerInfo[playerid][pFMember] < 255 && PlayerInfo[playerid][pFRank] == 0 && PlayerInfo[playerid][pRank] > 0)
    {
        PlayerInfo[playerid][pFRank] = PlayerInfo[playerid][pRank];
        PlayerInfo[playerid][pRank] = 0;
    }
Purpose:
- Checking if the player is in a family, with pFRank (new family rank variable) variable 0 and pRank (old family rank variable) higher than 0.
- If the above is true it would transfer the value from pRank to pFRank and set pRank to 0.

Doesn't seem to work, I've even tried putting it under OnPlayerSpawn but no luck... Any ideas?
Reply


Messages In This Thread
Transfering variable values - by Dudits - 31.07.2011, 15:46
Re: Transfering variable values - by wups - 31.07.2011, 15:47
Re: Transfering variable values - by Dudits - 31.07.2011, 15:53
Re: Transfering variable values - by wups - 31.07.2011, 15:57
Re: Transfering variable values - by Dudits - 31.07.2011, 15:59
Re: Transfering variable values - by wups - 31.07.2011, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)