How could i?
#1

pawn Код:
stock SendLangMessageToAll(const eng[],const esp[])
{
    new string[250];
    for(new i = 0; i < MAX_PLAYERS;i++)
    {
        if(GetLang(i) == 1)
        {
            format(string,sizeof(string),"%s",eng);
        }
        if(GetLang(i) == 2)
        {
            format(string,sizeof(string),"%s",esp);
        }
        SendClientMessage(i,green2,string);
    }
    return 1;
}
That when i do in a function or command SendLangMessageToAll("Hello","Hola");
But how could i make that so i can do SendLangMessageToAll("Hello there %s","Hola %s",GetPlayerName(playerid,pName,sizeof(pName));
Reply


Messages In This Thread
How could i? - by FireCat - 17.07.2011, 09:43
Re: How could i? - by MoroDan - 17.07.2011, 09:47
Re: How could i? - by RyDeR` - 17.07.2011, 09:54
Re: How could i? - by FireCat - 17.07.2011, 10:17

Forum Jump:


Users browsing this thread: 2 Guest(s)