Transfering variable values - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Transfering variable values (
/showthread.php?tid=273154)
Transfering variable values -
Dudits - 31.07.2011
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?
Re: Transfering variable values -
wups - 31.07.2011
Nah, we can't help you with that piece of code, since it's correct.
Re: Transfering variable values -
Dudits - 31.07.2011
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?
Re: Transfering variable values -
wups - 31.07.2011
Read my message again. I'm telling you that IT IS CORRECT.
Re: Transfering variable values -
Dudits - 31.07.2011
Ah sorry I misread xD
Anyways...... I'll keep trying placing it in different places, thanks.
Re: Transfering variable values -
wups - 31.07.2011
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.