tag mismatch while deviding floats
#1

Solved it, the problem was obviously my stupidness writing: new float instead of new Float

reply to pds2k12:
dividing integers don't make integer in the end, not most of the time. so it's better to have float there...
Reply
#2

pawn Код:
new Float: daycount = floatdiv((banexpiretime - gettime()), 86400);
Reply
#3

Still gives me the warning tho'...


Jesus... why'd i write new float ( with little f) ?
Reply
#4

gettime returns in unix(integer) not in Float, also there is difference between float and Float.

pawn Код:
Float | float
Float:  FF  | fF
float:  Ff  | ff
Stronger: FF
pawn Код:
new daycount, time;
time = gettime();
daycount = ( banexpiretime -  time / 86400 );
Reply
#5

i dont think thats the correct usage of gettime() see this for correct usage of it-- https://sampwiki.blast.hk/wiki/Gettime
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)