PHP Code:
native LookupLangKey(Output[], OutputSize, const Key[], &id);
I had to use this function for the first time and noticed that the id has an & in front. Why? This argument is supposed to be the player's id or LANG_SERVER, so why is the id saved in a variable? The function needs to be used like this because of it:
PHP Code:
new szFormat[32], id = LANG_SERVER
LookupLangKey(szFormat, charsmax(szFormat), "SOME_KEY", id)
Instead of like this:
PHP Code:
new szFormat[32]
LookupLangKey(szFormat, charsmax(szFormat), "SOME_KEY", LANG_SERVER)
There's no point of storing the id anywhere.
Am I missing something here?
__________________