10.08.2012, 10:44
Hi there, I am working on a a small gang system with 3 teams which all have an overall score.
The problem I have is that my gang leaderboard is conflicting (sometimes one team shows up twice or scores don't update on the board but do under OnPlayerDeath) alot and it's because of my if statements.
The link below shows all the code I use under OnPlayerUpdate.
http://pastebin.com/rMJHPgBS
Also an image of the leaderboard incase that helps you see what i'm trying to do here.
If anyone can tell me where I have gone wrong or offer some advice on how to improve the checks then please do tell me.
The problem I have is that my gang leaderboard is conflicting (sometimes one team shows up twice or scores don't update on the board but do under OnPlayerDeath) alot and it's because of my if statements.
The link below shows all the code I use under OnPlayerUpdate.
http://pastebin.com/rMJHPgBS
pawn Код:
// Some info you may need to know.
GangTextBody1 = Top position on leader board.
GangTextBody2 = Middle position on leader board.
GangTextBody3 = Bottom position on leader board.
If anyone can tell me where I have gone wrong or offer some advice on how to improve the checks then please do tell me.