Sorry,But need a help again. - 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: Sorry,But need a help again. (
/showthread.php?tid=362563)
Sorry,But need a help again. -
bodey3333 - 24.07.2012
I need some help about this code.
Код:
new
myVariable = 7;
printf("%d", myVariable);
myVariable = 8;
printf("%d", myVariable);
That " 7 " or " 8 " means what or what is its role at the script?
And " %d ", Means "Decleartion right?
Re: Sorry,But need a help again. -
FUNExtreme - 24.07.2012
It just shows how to assign an integer value to a variable.
%d is used for integers (round numbers)
Re: Sorry,But need a help again. -
ReneG - 24.07.2012
Look at these.
https://sampwiki.blast.hk/wiki/Format
https://sampwiki.blast.hk/wiki/Printf