Weapon hack

Posts 16–24 of 24 · Page 2 of 2
Quote Originally Posted by giniyat101 View Post
so cody must come here and explain
@~FALLEN~
unsigned long is faster because the fact it is a pre defined primitive prototype just like char, int, long, double, float, short or bool.
the reason it's faster is because it doesn't have to back track on execution and look up the typedef it may be a very small difference but there is still a difference either way you look at it. unsigned long = dword unsigned short = word unsigned int = uint etc etc etc but there is no back tracking. optimization is important and understanding how to optimize is also very important, anyways if anything else needs to be explained just do another mention. regards,
Cody.

~edit~

by faster I mean faster execution
Quote Originally Posted by ~FALLEN~ View Post
unsigned long is faster because the fact it is a pre defined primitive prototype just like char, int, long, double, float, short or bool.
the reason it's faster is because it doesn't have to back track on execution and look up the typedef it may be a very small difference but there is still a difference either way you look at it. unsigned long = dword unsigned short = word unsigned int = uint etc etc etc but there is no back tracking. optimization is important and understanding how to optimize is also very important, anyways if anything else needs to be explained just do another mention. regards,
Cody.

~edit~

by faster I mean faster execution
thx for the explanation
but i still confused
i tried deasm both and the generated code was the same!!!
Quote Originally Posted by giniyat101 View Post
thx for the explanation
but i still confused
i tried deasm both and the generated code was the same!!!
@giniyat101
yes because the what you're doing is one in the same, all dword is, is an typedef of unsigned long its quicker to write but its also improper and slower executing.
To make life easier:


Code:
void WepChange(int x, int y)
{
	memcpy((DWORD*)((*(DWORD*)(((DWORD)GetModuleHandleA("CShell.dll") + 0xA65EE8))+x*4)),(DWORD*)((*(DWORD*)(((DWORD)GetModuleHandleA("CShell.dll") + 0xA65EE8))+y*4)),BYTES);
}
my way is nuch simple... almost same thing as yours
Why everyone don't use Basic Code..???
Quote Originally Posted by ***** View Post
Why everyone don't use Basic Code..???
mybe they dont lke to leech
Sooooo.. Uh, could you posssiiblllyyy make a tut vid or post the steps as to how Id do all this and how to use? XD soz Ima noob >:
Good Job
Posts 16–24 of 24 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us