PDA

View Full Version : Problems with SCMf


MariusAdv
01/03/2018, 04:52 PM
I have problems with this stock.
stock SCMf( playerid, color, const string[ ], va_args<> ) {
new string2[ 256 ]; va_format( string2, sizeof string2, string, va_start<3> );
return SendClientMessage( playerid, color, string2 ); }

Error's
error 001: expected token: ")", but found "<"
error 085: no states are defined for symbol "SCMf"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

GospodinX
01/03/2018, 04:55 PM
I don't know,but maybe you can try to use this:

stock SCMf(playerid, colour, const fmat[], {Float, _}:...)
{
new
str[145];
va_format(str, sizeof (str), fmat, va_start<3>);
return SendClientMessage(playerid, colour, str);
}