ratio td once again not working !
#4

Debug your code, print your results.

PHP код:

    PlayerKills
[killerid]++; // Addes a score to player killed.
        
printf("Kills: %i"PlayerKills[killerid]);

    
PlayerDeaths[playerid]++; // Addes a score to player death.
        
printf("Deaths: %i"PlayerDeaths[playerid]);

    new 
iString[100]; // string cells.
    
new ratio PlayerKills[playerid] / PlayerDeaths[playerid];
        
printf("Ratio: %i"ratio);

    
format(iStringsizeof iString"Kills: %i"PlayerKills[killerid]); // Here we put the amout of Killed players.
    
TextDrawSetString(KILLS[killerid], iString);

    
format(iStringsizeof iString"Deaths: %i"PlayerDeaths[playerid]); // Here we put the amout of Deaths.
    
TextDrawSetString(DEATHS[playerid], iString);

    
formatiStringsizeofiString ), "Ratio: %.2f"ratio);
    
TextDrawSetString(RATIO[playerid], iString); 
Reply


Messages In This Thread
ratio td once again not working ! - by wallen - 29.01.2018, 17:46
Re: ratio td once again not working ! - by Mugala - 29.01.2018, 20:05
Re: ratio td once again not working ! - by wallen - 30.01.2018, 13:59
Re: ratio td once again not working ! - by ISmokezU - 30.01.2018, 15:56
Re: ratio td once again not working ! - by wallen - 30.01.2018, 17:42
Re: ratio td once again not working ! - by poxer - 30.01.2018, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)