The difference between "d" and "i" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: The difference between "d" and "i" (
/showthread.php?tid=439374)
The difference between "d" and "i" -
SomebodyAndMe - 25.05.2013
So what is actually the difference between these letters?
d is used for an integer and so is i.
Re: The difference between "d" and "i" -
Smokkr - 25.05.2013
%d and %i are the same.
Re: The difference between "d" and "i" -
[HiC]TheKiller - 25.05.2013
Take a look at
http://stackoverflow.com/questions/1...nd-d-in-printf

.
Re: The difference between "d" and "i" -
DaRk_RaiN - 25.05.2013
i and d are both used for integers.
Re: The difference between "d" and "i" -
Smokkr - 25.05.2013
For example:
%s have %d Money - Smokkr have 500 Money.
Re: The difference between "d" and "i" -
TheArcher - 25.05.2013
If i'm not wrong "i" stands for integer and "d" for decimal, for example:
033 would be with i and 33 with d because it's decimal. However don't worry they're almost the same, so feel free to use both of them.