Problem..
#1

pawn Код:
pInfo[StatsID][Ratio] = pInfo[StatsID][Kills] / pInfo[StatsID][Deaths];
Kills = 6
Deaths = 12
Kills / Deaths = 0.5
Script shows 0.000000

I make this:
pawn Код:
format(StatsStr1,128,"Ratio: %f",pInfo[StatsID][Ratio]);
tried everything, nothing helped :/
Reply
#2

show the declarations of all the used variables
Reply
#3

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
show the declarations of all the used variables
What do you mean?
(my english sucks )
Reply
#4

i mean where u have written
Код:
new Something[Whatever];
paste them all
Reply
#5

pawn Код:
enum Info
{
    Kills,
Deaths,
    Float:Ratio,
}
new pInfo[MAX_PLAYERS][Info];
Reply
#6

ok so i tried to repair it..now it should work

Код:
pInfo[StatsID][Ratio] = floatdiv(float(pInfo[StatsID][Kills]) ,float(pInfo[StatsID][Deaths]));
format(StatsStr1,128,"Ratio: %f",pInfo[StatsID][Ratio]);
Reply
#7

Thx =]
Reply
#8

Your most welcome Dreftas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)