#define COLOR 0xAFAFAFAAforward SendMultiMess(playerid, color, text_hun[], text_eng[], korlatlanszamuvaltozo);stock SendMultiMess(playerid, color, text_hun[], text_eng[], korlatlanszamuvaltozok){ if(GetPVarInt(playerid, \"Nyelv\") == 0) { new string[128]; format(string, sizeof(string), text_hun, ésidemegavalozok); SendClientMessage(playerid, COLOR, string); } else { new string[128]; format(string, sizeof(string), text_eng, ésidemegavalozok); SendClientMessage(playerid, COLOR, string); }}
SendMultiMess(playerid, COLOR, \"Hello %s, szinted %d\", \"Hi here %s, level %d\", GetPlayerName..., GetLevel...)
new hunstring[256];new enstring[256];format(hunstring, sizeof(hunstring), \"Hello %s, szinted %d\", GetPlayerName..., GetLevel...);format(enstring, sizeof(enstring), \"Hi here %s, level %d\", GetPlayerName..., GetLevel...);SendMultiMess(playerid, COLOR, hunstring, enstring)
SendMultiMess(playerid, COLOR, \"Hello %s, szinted %d\", \"Hi here %s, level %d\", GetPlayerName..., GetLevel..., GetPlayerName..., GetLevel...)
new String[75];format(String,sizeof(String),GetPVarInt(playerid, \"Nyelv\")?(\"Hi here %s, level %d\")\"Hello %s, szinted %d\"),GetPlayerName..., GetLevel...);SendClientMessage(playerid,-1,String);
new bool:FALSE = false;#define SendFormatMultiMess(%1,%2,%3,%4,%5) \\do{new sendfstring[256];format(sendfstring,256,(GetPVarInt(playerid, \"Nyelv\") == 0)?(%3)%4),%5);SendClientMessage(%1,(%2),sendfstring);}while(FALSE)#define SendMultiMess(%1,%2,%3,%4) \\do{SendClientMessage(%1,(%2),(GetPVarInt(playerid, \"Nyelv\") == 0)?(%3)%4));}while(FALSE)
SendFormatMultiMess(playerid, 0xFFFFFFFF, \"Asdasd: %s\", \"asdasdasd: %s\", valami);SendMultiMess(playerid, 0xFFFFFFFF, \"Asdasd: Jóska gyerek\", \"asdasdasd: Pista child\");
#include <y_va>stock SendMultiMess(playerid, color, text_hun[], text_eng[], va_args<>){newout[128];va_format(out, sizeof (out), (GetPVarInt(playerid, \"Nyelv\") == 0)?(text_hun):(text_eng), va_start<4>); //(azért 4 mert 4 argument van alapból (playerid, color, text_hun, text_eng)SendClientMessage(playerid, color, out);}
stock SendMultiMess(playerid, color, text_hun[], text_eng[], va_args<>){
stock bla(arg1, arg2, arg3, arg4, Float:arg5, arg6[], va_args<>){va_format(out, sizeof (out), arg6[], va_start<6>);
SendMultiMess(playerid, -1, \"Magyar\", \"English\");