SA-MP Forums Archive
Help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help please (/showthread.php?tid=628485)



Help please - Xladen18 - 11.02.2017

At this stock

stock SCMF(playerid, color, const fstring[], va_args<3>)
{
new str[1024];
va_format(str, sizeof(str), fstring, va_start<3>);
return SCM(playerid, color, str);
}

Always show this problem please say how i can fix it

error 035: argument type mismatch (argument 3)


Re: Help please - Dayrion - 11.02.2017

PHP код:
stock SCMF(const playeridcolor, const msg[], va_args<>)
{
    new
        
string[145];

    
va_format(stringsizeof(string), msgva_start<3>);
    return 
SendClientMessage(playeridcolorstring);