Please help me...
#1

Код:
forward calculatingscoreboard();
public calculatingscoreboard()
{
	new string[128];
	new name[MAX_PLAYER_NAME];
	new checker[MAX_PLAYERS];
	for(new i = 0; i < MAX_PALYERS; i++)
	{
	    if(IsPlayerConnecteD(i))
	    {
	        for(new a = 0; a < MAX_PALYERS; a++)
		{
			if(IsPlayerConnecteD(a))
			{
				if(i == a)
				else
				{
					if(kills[i] >= kills[a])
					{
					    checker[i]++;
					}
				}
			}
		}
	    }
	}
	
	if(...)
        {
           GetPlayerName(playerid, name, sizeof(name));
           format(string, sizeof(string), "%s", name);
           TextDrawSetString(Name1,string);
       }
	return 1;
}
Ok, I am stuck. I need to find a way to get the top 10 killers. The textdraws go from Name1 to Name10. Name1 is the winner of the top 10 killers. I got a variable kills[playerid] in onplayerdeath. Could anyone finish this small script? Thanks!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)