Raised This Month: $51 Target: $400
 12% 

some questions ( CString, CVector, Ham )


Post New Thread Reply   
 
Thread Tools Display Modes
pRoxxxDD
Junior Member
Join Date: Feb 2011
Location: Ukraine
Old 07-31-2011 , 09:22   Re: some questions ( CString, CVector, Ham )
Reply With Quote #11

Crashed =/
Code:
	edict_t *pEdict;
	__asm mov eax, [ecx + 4];
	__asm mov eax, [eax + 520];
	__asm mov pEdict, eax;
	MF_ExecuteForward(fwd, ENTINDEX(pEdict));
__________________
pRoxxxDD is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 07-31-2011 , 09:29   Re: some questions ( CString, CVector, Ham )
Reply With Quote #12

Quote:
Originally Posted by Shadows In Rain View Post
LOLWUT? STL is part of C++ standart library. It comes with almost compilers.

http://en.wikipedia.org/wiki/Standard_Template_Library
http://en.wikipedia.org/wiki/C%2B%2B_Standard_Library
http://en.wikipedia.org/wiki/Core_language

Also, files with extension ".h" are deprecated, use files without ".h" (read links):
#include <string>
#include <vector>
You get me wrong or my poor English sucking.
Of course I know what you try to say.
Quote:
Originally Posted by BAILOPAN View Post
I recommend not using STL in plugins if you intend to distribute as binaries on Linux. It requires linking to libstdc++ which is a world of hurt (in fact, it's really only safe if you use the exact GCC version Valve does, gcc-3.4).
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 07-31-2011 , 09:40   Re: some questions ( CString, CVector, Ham )
Reply With Quote #13

Quote:
Originally Posted by pRoxxxDD View Post
Crashed =/
Code:
	edict_t *pEdict;
	__asm mov eax, [ecx + 4];
	__asm mov eax, [eax + 520];
	__asm mov pEdict, eax;
	MF_ExecuteForward(fwd, ENTINDEX(pEdict));
sorry, can't help you. do not try to do something by copying some code, you'd better know what you are doing.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 07-31-2011 , 10:10   Re: some questions ( CString, CVector, Ham )
Reply With Quote #14

In short, AntiBots, if you still want to use STL and compile for linux, you need to link libstdc++ statically under linux.
But:
Quote:
if you want to link libstdc++ statically, you need to link all of your C++ code statically as well
Because:
Quote:
making C++ binaries that will work properly in different Linux distributions is somewhat painful
Read more.
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
pRoxxxDD
Junior Member
Join Date: Feb 2011
Location: Ukraine
Old 07-31-2011 , 13:10   Re: some questions ( CString, CVector, Ham )
Reply With Quote #15

Hm, it's works
Code:
	int *athis;
	__asm 
	{
		mov eax, pthis;
		mov eax, [eax + 4];
		mov athis, eax;

	}

	entvars_t *pev = (entvars_t *)athis;
	MF_ExecuteForward(fwd, ENTINDEX(pev->pContainingEntity));
__________________
pRoxxxDD is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 08-12-2012 , 06:25   Re: some questions ( CString, CVector, Ham )
Reply With Quote #16

solved
__________________

Last edited by Bos93; 08-12-2012 at 09:27.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Beqa Gurgenidze
BANNED
Join Date: Nov 2016
Old 08-07-2017 , 01:55   Re: some questions ( CString, CVector, Ham )
Reply With Quote #17

Anyone can post how to hook others than Spawn function? (Killed, TraceLine, Etc...)
Beqa Gurgenidze 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 08:09.


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