SA-MP Forums Archive
Odd problem - 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: Odd problem (/showthread.php?tid=121459)



Odd problem - ihatetn931 - 17.01.2010

Well, the odd problem is that it isn't showing my player level in the player list when you press tab, It just started recentley. Oh and whats the bbcode for pawn on these forums
Код:
forward DollahScoreUpdate();
Код:
public DollahScoreUpdate()
{
	new LevScore;
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if (IsPlayerConnected(i))
		{
  			LevScore = PlayerInfo[i][pLevel];
			SetPlayerScore(i, LevScore);
			if (LevScore > LevScoreOld)
			{
				LevScoreOld = LevScore;
			}
		}
	}
	return 1;
}



Re: Odd problem - Chaprnks - 17.01.2010

The most used BB-Code for pawno scripts is:
pawn Код:
// Test
Does the problem occur for only you, or everyone? Also, it could be caused by TAB taking a second to respond. Lastly, make sure you have a reoccurring timer to keep this updated.


Re: Odd problem - ihatetn931 - 17.01.2010

It occurs for everyone

My timer update for it

pawn Код:
synctimer = SetTimer("SyncUp", 6000, 1);

public SyncUp()
{
    SyncTime();
    DollahScoreUpdate();
}
Edit: I put the syncup timer under my timers for my random checkpoints and it works fine now

Thank you for the help