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
#2

Nah, we can't help you with that piece of code, since it's correct.
Reply
#3

Quote:
Originally Posted by wups
Посмотреть сообщение
Nah, we can't help you with that piece of code, since it's correct.
Can you explain what isn't correct exactly?
Reply
#4

Read my message again. I'm telling you that IT IS CORRECT.
Reply
#5

Ah sorry I misread xD
Anyways...... I'll keep trying placing it in different places, thanks.
Reply
#6

Quote:
Originally Posted by Dudits
Посмотреть сообщение
Ah sorry I misread xD
Anyways...... I'll keep trying placing it in different places, thanks.
That's a stupid thing to do. Better search, where those variables get set.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)