Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Custom formats in SA-MP?

$
0
0
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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>