Killingspree
#1

Well, Showing the spree with a textdraw, It works fine with 1 and 2 kills, later on it freezes till it becomes 6 kills (3,4,5 the text keeps saying 2) and again till it becomes 9 kills.

On top:

Код:
new PTK[MAX_PLAYERS],gHighScore=0;
Under OnPlayerDeath:

Код:
++PTK[playerid];
if (PTK[playerid] > gHighScore)
    {
        gHighScore = PTK[playerid];
        format(SpreeS, sizeof(SpreeS), "%s is on KillingSpree with %d kills!", PlayerName(playerid),PTK[playerid]);
	    TextDrawSetString(Spree,SpreeS);
    }
Yeah I know it should be [killerid] but I did [playerid] for testing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)