08.09.2017, 11:18
Hello, i tried to change this function
In something like this:
But i get error
Can some one help me, i want to use a format like this (example):
Код:
stock SCMF(playerid, color, const fmat[], va_args<>) { va_format(gString, sizeof (gString), fmat, va_start<3>); return SendClientMessage(playerid, color, gString); }
Код:
stock SendFormatLangMSG(playerid, color, const ro[], const en[], va_args<>) { switch( PlayerInfo[ playerid ][ pLanguage ] ) { case 1: va_format(gString, sizeof (gString), ro, en, va_start<3>); //line case 2: va_format(gString, sizeof (gString), ro, en, va_start<3>); //line } return SS(playerid, gString, ro, en); }
Код:
error 035: argument type mismatch (argument 4) error 035: argument type mismatch (argument 2)
Код:
SendFormatLangMSG(playerid, COLOR_WHITE, "Language 1", "Language 2", GetName(playerid));