UUDECODE - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: UUDECODE (
/showthread.php?tid=270608)
UUDECODE -
dowster - 21.07.2011
I'm trying to use uuencode and uudecode to just make a simple encoding system for saving strings, for uuencode it needs the number of bytes, how can i detect the length of the number. for example if it is a six digit number like 123456 the function will scan and return 6? for some reason doing if( var >= 0 & var<= 9) seems like it'd be old fashioned.
Re: UUDECODE -
[HiC]TheKiller - 21.07.2011
You could put it into a string and then use strlen.
pawn Код:
stock vallen(value)
{
new str[25];
format(str, sizeof(str), "%d", value);
return strlen(str);
}
Re: UUDECODE -
dowster - 21.07.2011
thanks bro, ill try that