Custom formats in SA-MP?
#1

I want to know if i can do this in SA-MP (via an include or something)
PHP Code:
int customformat(const char format, ...) //Ignore int and const char * (they are from C++)
{
    
char buffer[256]; //Here I declare a string (is like those we have in SA-MP made with new)
    
va_list arg
    
va_start (arg,format);
    
vsprintf(buffer,format,arg); //This function is like format
    
va_end(arg);
    
cout << buffer << endl//This is something like: print(buffer) in SA-MP
    
return 1;

And sory for my bad english. I am just wondering if this can be done in SA-MP
Reply


Messages In This Thread
Custom formats in SA-MP? - by 10MIN - 31.07.2017, 11:17
Re: Custom formats in SA-MP? - by Xeon™ - 31.07.2017, 11:21
Re: Custom formats in SA-MP? - by 10MIN - 31.07.2017, 11:28
Re: Custom formats in SA-MP? - by Xeon™ - 31.07.2017, 11:32
Re: Custom formats in SA-MP? - by jlalt - 31.07.2017, 11:35
Re: Custom formats in SA-MP? - by 10MIN - 31.07.2017, 11:36

Forum Jump:


Users browsing this thread: 1 Guest(s)