AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pfn_keyvalue problem (https://forums.alliedmods.net/showthread.php?t=232733)

bogdyuttzu 01-04-2014 05:27

pfn_keyvalue problem
 
PHP Code:

public pfn_keyvalueent )
{   
    static 
name32 ], key32 ], value32 ], coin;
    
copy_keyvaluename31key31value31 
    
    if( 
name] == 'i' && name] == 'n' && name] == 'f' && name] == 'o' && name] == '_' && name] == 'c' && name] == 'o' && name] == 'i' && name] == 'n' )
    {
        
server_print"%s %s"namekey)
    }


Code:

info_coin origin
info_coin count
info_coin model
info_coin classname
info_coin origin
info_coin model
info_coin count
info_coin classname
info_coin origin
info_coin model
info_coin count
info_coin classname
info_coin origin
info_coin model
info_coin count

If you see count and model change their position.
Why the order is not respected ?
And another problem : the first entity doesn't have classname ? or the problem is at the latest entity ?

fysiks 01-04-2014 06:17

Re: pfn_keyvalue problem
 
Quote:

Originally Posted by bogdyuttzu (Post 2080875)
If you see count and model change their position.
Why the order is not respected ?

The order in which the entities/keyvalues are loaded is irrelevant.


Quote:

Originally Posted by bogdyuttzu (Post 2080875)
And another problem : the first entity doesn't have classname ? or the problem is at the latest entity?

What are you talking about?


All times are GMT -4. The time now is 10:05.

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