22.02.2014, 16:03
Hm... it seems that it works if I do
and
in
everything is okay. But if I do
in
too, it crash my server.
pawn Код:
stock SendFormattedMessage_(playerid, colour = -1, string_[] = "", str_ = sizeof(string_), const fmat[] = "", {Float, _}:...) {
va_format(string_, str_, fmat, va_start<5>);
return (playerid != -1)? SendClientMessage(playerid, colour, fmat): SendClientMessageToAll(colour, fmat);
}
pawn Код:
SendFormattedMessage_(playerid, .fmat = "b");
pawn Код:
OnPlayerConnect
pawn Код:
new str___[128];
SendFormattedMessage_(playerid, -1, str___, sizeof(str___), "%s test", PlayerName(playerid));
pawn Код:
OnPlayerConnect