This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Module: Okapi


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-19-2017 , 04:56   Re: Module: Okapi
Reply With Quote #1

hello, i've tried a simple example of replacing an string, why isn't working ?

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

public plugin_init( )
{
    
okapi_engine_replace_string("*DEAD* %s : %s""(Test) %s : %s" );

__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 06-19-2017 , 08:07   Re: Module: Okapi
Reply With Quote #2

@Craxor it is for the server console.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-19-2017 , 17:05   Re: Module: Okapi
Reply With Quote #3

nope, same message, still not working.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Old 06-21-2017, 07:00
HamletEagle
This message has been deleted by HamletEagle. Reason: wait
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-21-2017 , 07:49   Re: Module: Okapi
Reply With Quote #5

Craxor, the string that you are trying to replace is from mod, not from engine. Use okapi_mod_replace_string. The mod is the game dll(cs.so/mp.dll depending linux/windows). The engine is swds.dll/engine_i386.so

Also don't forget that the string you are trying to replace is for the SERVER console.
https://github.com/s1lentq/ReGameDLL...lient.cpp#L693
https://github.com/s1lentq/ReGameDLL...lient.cpp#L799
String is used for SERVER_PRINT.
__________________

Last edited by HamletEagle; 06-21-2017 at 07:52.
HamletEagle is online now
bibu
Veteran Member
Join Date: Sep 2010
Old 07-05-2017 , 15:00   Re: Module: Okapi
Reply With Quote #6

I wonder if there is a native equivalent as this on Orpheu:

Quote:
#define set_mp_pdata(%1,%2) ( OrpheuMemorySetAtAddress( g_pGameRules, %1, 1, %2 ) )
#define get_mp_pdata(%1) ( OrpheuMemoryGetAtAddress( g_pGameRules, %1 ) )
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-05-2017 , 16:02   Re: Module: Okapi
Reply With Quote #7

It is.
__________________
HamletEagle is online now
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-19-2018 , 09:12   Re: Module: Okapi
Reply With Quote #8

I see, still alive, you Russian! Lol.

Feel free to hire me so I can focus on it.
__________________

Last edited by Arkshine; 07-19-2018 at 09:13.
Arkshine is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 07-19-2018 , 09:14   Re: Module: Okapi
Reply With Quote #9

Arkshine

Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED), - old good Arkshine.
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 07-19-2018 at 09:16.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
loiraolhosazul
Member
Join Date: May 2020
Old 03-06-2021 , 22:05   Re: Module: Okapi
Reply With Quote #10

works with rehlds ?
loiraolhosazul 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 10:03.


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