Problems with SCMf - 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: Problems with SCMf (
/showthread.php?tid=650519)
Problems with SCMf -
MariusAdv - 01.03.2018
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
Re: Problems with SCMf -
GospodinX - 01.03.2018
I don't know,but maybe you can try to use this:
PHP код:
stock SCMf(playerid, colour, const fmat[], {Float, _}:...)
{
new
str[145];
va_format(str, sizeof (str), fmat, va_start<3>);
return SendClientMessage(playerid, colour, str);
}