Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Check Running Mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-02-2017 , 07:50   Re: [ H3LP ] Check Running Mod
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
PHP Code:
#include < amxmodx >

new szDefaultModel32 ] ;

public 
plugin_precache( ) {

    new 
szModName12 ] ;
    
get_modnameszModNamecharsmaxszModName ) ) ;

    if( 
equalszModName"valve" ) ) 
    
copyszDefaultModelcharsmaxszDefaultModel ), "hl.mdl" ) ;
    
    else if( 
equalszModName"tfc" ) )
    
copyszDefaultModelcharsmaxszDefaultModel ), "tfc.mdl" ) ;

    return 
PLUGIN_CONTINUE ;

So it can not be done other way so that the array size won't be defined? I mean in the include part. Something like #if blabla #endif.
DarthMan is offline
 



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 22:50.


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