AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is EOS ? (https://forums.alliedmods.net/showthread.php?t=251393)

Fr33m@n 11-12-2014 08:23

What is EOS ?
 
I was looking at default amxmodx multilingual.sma, and i found this.

PHP Code:

    new buffer[3]
    
get_user_info(id"lang"buffercharsmax(buffer))
    
    if (
buffer[0] == EOS// if "lang" is not defined, by default it will use server language.
    
{
        
get_pcvar_string(g_cvarServerLanguagebuffercharsmax(buffer));
    } 

What is EOS ?
I suppose it's not only lang related.

klippy 11-12-2014 08:42

Re: What is EOS ?
 
EOS is same as 0, or '^0'. EOS = End Of String.

Arkshine 11-12-2014 08:44

Re: What is EOS ?
 
^ and this is defined by the compiler (I know some people were asking that).

Fr33m@n 11-12-2014 08:45

Re: What is EOS ?
 
AH, thanks :D


All times are GMT -4. The time now is 17:34.

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