Raised This Month: $ Target: $400
 0% 

LookupLangKey has an &id argument?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-14-2018 , 09:40   LookupLangKey has an &id argument?
Reply With Quote #1

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
(szFormatcharsmax(szFormat), "SOME_KEY"id
Instead of like this:

PHP Code:
new szFormat[32]
LookupLangKey(szFormatcharsmax(szFormat), "SOME_KEY"LANG_SERVER
There's no point of storing the id anywhere.
Am I missing something here?
__________________

Last edited by OciXCrom; 07-14-2018 at 09:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode