SA-MP Forums Archive
print variable - 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: print variable (/showthread.php?tid=622098)



print variable - MerryDeer - 18.11.2016

Hi,

I have variable

new Variableeblaa[ 50 ];

Variableeblaa = "54879845464513";

I try to retrieve

printf("%d", Variableeblaa[ 6 ] );
printf("%d", Variableeblaa[ 5 ] );

But it prints by not that number in that slot


Re: print variable - Konstantinos - 18.11.2016

It's a character now, use %c specifier.


Respuesta: print variable - Swedky - 18.11.2016

You wanna that show only one number? Try with "%c".

EDIT: Hm, Konstantinos won me