I want to know if i can do this in SA-MP (via an include or something)
And sory for my bad english. I am just wondering if this can be done in SA-MP
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;
}