Raised This Month: $ Target: $400
 0% 

Map Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-06-2017 , 05:08   Re: Map Name
Reply With Quote #1

Instead of all this
Code:
#include < svn_version >

#if AMXX_VERSION_NUM >= 175
    #pragma reqlib mapname_patcher

    #if !defined AMXMODX_NOAUTOLOAD
        #pragma loadlib mapname_patcher
    #endif
#else
    #pragma library mapname_patcher
#endif

/* MapName length should be longer than 0 and shorter than 129 */
native Patch_MapName( MapName[ ] );

#define MAPNAME_PATCHER_INCLUDED

#endif
Add simply this
Code:
native Patch_MapName( MapName[ ] );
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-06-2017 , 09:59   Re: Map Name
Reply With Quote #2

Quote:
Originally Posted by NiHiLaNTh View Post
Instead of all this
Code:
#include < svn_version >

#if AMXX_VERSION_NUM >= 175
    #pragma reqlib mapname_patcher

    #if !defined AMXMODX_NOAUTOLOAD
        #pragma loadlib mapname_patcher
    #endif
#else
    #pragma library mapname_patcher
#endif

/* MapName length should be longer than 0 and shorter than 129 */
native Patch_MapName( MapName[ ] );

#define MAPNAME_PATCHER_INCLUDED

#endif
Add simply this
Code:
native Patch_MapName( MapName[ ] );

I did this but it is not working unfortunately

PHP Code:
#include <amxmodx>
#include <amxmisc>

native Patch_MapName(MapName[]);

public 
plugin_init() {
    
register_plugin("MapName""1.0""PurposeLess")

    
Patch_MapName("PurposeLess")
}

public 
plugin_cfg() {
    
Patch_MapName("PurposeLess")

PurposeLessx is offline
Reply



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:48.


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