Data to String
#1

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
Reply
#2

To use that method change your %s to %d. Other than that you want valstr.

https://sampwiki.blast.hk/wiki/Function:valstr#valstr
Reply
#3

Thanks it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)