Argument type mismatch
#6

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
I knew the function required a string, I had exact the same code as JaTochNietDan, but when i did that it just screwed up more..
it displayed a very high amount, even though the max amount it can have is 100...
It showed like 1065 or something..
I will try it again, and I hope it solves my problem
If you're dealing with floats you can simply format it as a float and hide some of the decimal places so it's not stupidly long, for example:

pawn Код:
format(string, sizeof(string), "%.2f", Fuel[vehicleid]/4.0);
Reply


Messages In This Thread
Argument type mismatch - by Jstylezzz - 25.06.2012, 16:32
Re: Argument type mismatch - by iggy1 - 25.06.2012, 16:36
Re: Argument type mismatch - by JaTochNietDan - 25.06.2012, 16:38
Re: Argument type mismatch - by Jstylezzz - 25.06.2012, 16:42
Re: Argument type mismatch - by ViniBorn - 25.06.2012, 16:45
Re: Argument type mismatch - by JaTochNietDan - 25.06.2012, 16:47
Re: Argument type mismatch - by Jstylezzz - 25.06.2012, 19:02
Re: Argument type mismatch - by ViniBorn - 25.06.2012, 19:14
Re: Argument type mismatch - by Jstylezzz - 26.06.2012, 07:32

Forum Jump:


Users browsing this thread: 2 Guest(s)