[Include] [sAwh] Anti Weapons And Ammo Hack
#10

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
You really need to improve your code in general. You (enumaration) variable's names aren't unique which can make a lot of conflicts. You can improve some points too like this one (see below). Why do you create a new variable when you have already an enumeration for players?
PHP код:
new weaponsInfo[MAX_PLAYERS][wInfo];
new 
wtimer[MAX_PLAYERS]; 
You don't use static for internal functions which can make conflicts too like GetWeaponSlot. This function is common.

I don't know why do you set timers to reset things, it's seems completely useless.
You don't respect native functions check. I'm talking about functions which has been hooked. Providing a invalid player id (higher than MAX_PLAYERS in this occurrence) will result in a run time error.
The general structure of your code is, for me, completely wrong. A player can't have 2 weapons at the same slot, why don't you refer to that instead of creating "Weapons[53]"?
My English isn't that good like Pottus or anyone here but I hope you get my points.
I'll improve the code, will release an update today, and about the timer?
Reply


Messages In This Thread
[sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 25.02.2018, 12:40
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 25.02.2018, 12:46
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 25.02.2018, 12:48
Re: [sAwh] Anti Weapons And Ammo Hack - by Daynox12 - 26.02.2018, 00:58
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 26.02.2018, 02:09
Re: [sAwh] Anti Weapons And Ammo Hack - by Daynox12 - 26.02.2018, 02:35
Re: [sAwh] Anti Weapons And Ammo Hack - by Pottus - 26.02.2018, 03:56
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 26.02.2018, 07:46
Re: [sAwh] Anti Weapons And Ammo Hack - by Dayrion - 26.02.2018, 08:12
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 26.02.2018, 10:03
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 26.02.2018, 10:39
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 26.02.2018, 11:30
Re: [sAwh] Anti Weapons And Ammo Hack - by iKarim - 26.02.2018, 12:01
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 26.02.2018, 12:05
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 26.02.2018, 12:28
Re: [sAwh] Anti Weapons And Ammo Hack - by iKarim - 26.02.2018, 12:32
Re: [sAwh] Anti Weapons And Ammo Hack - by Dayrion - 26.02.2018, 15:04
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 26.02.2018, 15:12
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 26.02.2018, 15:18
Re: [sAwh] Anti Weapons And Ammo Hack - by Pottus - 28.02.2018, 01:26
Re: [sAwh] Anti Weapons And Ammo Hack - by Gammix - 28.02.2018, 01:43
Re: [sAwh] Anti Weapons And Ammo Hack - by Killa[DGZ] - 28.02.2018, 03:00
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 28.02.2018, 03:04
Re: [sAwh] Anti Weapons And Ammo Hack - by iKarim - 28.02.2018, 06:46
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 28.02.2018, 11:09
Re: [sAwh] Anti Weapons And Ammo Hack - by Gammix - 28.02.2018, 13:11
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 28.02.2018, 13:12
Re: [sAwh] Anti Weapons And Ammo Hack - by Gammix - 28.02.2018, 13:15
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 28.02.2018, 13:35
Re: [sAwh] Anti Weapons And Ammo Hack - by iKarim - 05.03.2018, 04:50
Re: [sAwh] Anti Weapons And Ammo Hack - by RogueDrifter - 05.03.2018, 04:53
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 05.03.2018, 15:01
Re: [sAwh] Anti Weapons And Ammo Hack - by dannypanda05 - 10.03.2018, 17:32
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 11.03.2018, 03:54
Re: [sAwh] Anti Weapons And Ammo Hack - by StrikerZ - 19.03.2018, 09:38

Forum Jump:


Users browsing this thread: 2 Guest(s)