Raised This Month: $ Target: $400
 0% 

Solved define replace


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kristi
Senior Member
Join Date: Nov 2016
Old 09-09-2017 , 14:37   Re: define replace
Reply With Quote #1

Quote:
Originally Posted by siriusmd99 View Post
Thanks for the info, didn't know it has such cool thing...

Also, Killer. It is possible.. I didn't read attentively...
If you want to use only your stock than it's simple.
Just go do amxmodx.inc from includes folder, find line
native client_print (blabla...)
and add double slash to comment it //

So it won't be used by compiller and won't throw error after you add your define.

So yes, it's possible, but only in case you are planning to use only your stock, without native client_print.
This compiles fine so I guess you don't need to do that.
PHP Code:
#include <amxmodx>

#define client_print(%1,print_chat,%2)    color_print(%1, true, %2) // this is my custom stock 

public client_putinserver(id)
{
    
client_print(idprint_chat"Hello, World!")
}


stock color_print(const id, const bool:x, const msg[]) {} 

Last edited by kristi; 09-09-2017 at 14:38.
kristi is offline
Send a message via Skype™ to kristi
Reply


Thread Tools
Display Modes

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 09:56.


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