Data to String - 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: Data to String (
/showthread.php?tid=77812)
Data to String -
MPKaboose - 14.05.2009
Hi how can I convert Data to string and vice versa
I have tried this but with no luck
pawn Код:
stock DataToString(Data)
{
new Format[5];
format(Format,sizeof(Format),"%s",Data);
return Format;
}
Thanks,
ArcticFox
Re: Data to String -
Weirdosport - 14.05.2009
To use that method change your %s to %d. Other than that you want valstr.
https://sampwiki.blast.hk/wiki/Function:valstr#valstr
Re: Data to String -
MPKaboose - 14.05.2009
Thanks it worked