How could i?
#3

pawn Код:
#if !defined SendLanguageMessage
    static
        __langString[128]
    ;
    #define SendLanguageMessage(%0,%1,%2,%3,%4,%5) \
        format(__langString, sizeof(__langString), (%2) ? (%3) : (%4), %5), SendClientMessage((%0), (%1), __langString)
   
    #pragma unused __langString
#endif
Then just create a global variable (or PVar) where you assign the language. (0 for English, 1 for your language).
pawn Код:
SendLanguageMessage(playerid, color, IndexLanguageVar, "Hello there %s", "Hola %s", GetName(playerid));
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)