View Single Post
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 04-03-2019 , 14:09   Re: [ANY] New way to store data into the char array
Reply With Quote #3

Quote:
Originally Posted by TheDS1337 View Post
Seems interesting, but if I understood this right... then you can just use DataPacks for passing information?
Yes but DataPacks work thought extension, but you also can convert Handle to char stream if you need. I also will attach the sourcecode of comp later a bit later tommorow

It will work with datapack is well
PHP Code:
char[] AnyToString(any Data)
{
    
char Buf[6];
    
#emit break
    #emit load.s.pri Data
    #emit stor.s.pri Buf
    
    
for(int i 0!= 4i++)
    {
        if(
Buf[i] == 0)
        {
            
Buf[4] |= (1<<i);
            
Buf[i] = 0xFF;
        }
    }
    
    return 
Buf;

__________________

Last edited by gubka; 04-03-2019 at 16:43.
gubka is offline
Send a message via ICQ to gubka