All of your stupid embarrassing coding mistakes!
#5

I never said only Pawn mistakes

Thanks for the comment tip as well, I started doing this a while back THEN FORGOT! I must remember to do it more The problem is once I start doing it, I'll want to do it to ALL my code (All 30~ files of it)

Naming conventions is a good way, I use a Hungarian Notation adaptation for SA:MP and my gamemode (Variables/Functions are prefixed based on what file they are in, each feature has it's local code in a file, and if anything is used across multiple files, it's put in the global master file)



The past few days I've been REALLY confused about my custom damage script, and got annoyed with it last night, however this morning I found the player health variable was being changed on OnPlayerTakeDamage AND OnPlayerGiveDamage so it was being set twice and instant-killing people, I felt very stupid for not checking both callbacks!
Reply


Messages In This Thread
All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 04.08.2012, 18:06
Re: All of your stupid embarrassing coding mistakes! - by Arca - 04.08.2012, 18:43
Re: All of your stupid embarrassing coding mistakes! - by Vince - 04.08.2012, 19:07
Re: All of your stupid embarrassing coding mistakes! - by [KHK]Khalid - 04.08.2012, 19:11
Re: All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 04.08.2012, 19:21
Re: All of your stupid embarrassing coding mistakes! - by Vince - 04.08.2012, 20:27
Re: All of your stupid embarrassing coding mistakes! - by Bakr - 05.08.2012, 04:04
Re: All of your stupid embarrassing coding mistakes! - by leonardo1434 - 05.08.2012, 04:31
Re: All of your stupid embarrassing coding mistakes! - by Misiur - 05.08.2012, 06:56
Re: All of your stupid embarrassing coding mistakes! - by Joe Staff - 05.08.2012, 11:23
Re: All of your stupid embarrassing coding mistakes! - by Universal - 05.08.2012, 11:29
Re: All of your stupid embarrassing coding mistakes! - by Basssiiie - 05.08.2012, 11:57
Re: All of your stupid embarrassing coding mistakes! - by Jikesh - 05.08.2012, 11:59
Re: All of your stupid embarrassing coding mistakes! - by playbox12 - 05.08.2012, 12:14
Re: All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 05.08.2012, 22:30
Re: All of your stupid embarrassing coding mistakes! - by Joe Staff - 05.08.2012, 22:48
Re: All of your stupid embarrassing coding mistakes! - by Jstylezzz - 06.08.2012, 00:27
Re: All of your stupid embarrassing coding mistakes! - by admantis - 06.08.2012, 00:31
Re: All of your stupid embarrassing coding mistakes! - by NinjaChicken - 13.08.2012, 03:24
Re: All of your stupid embarrassing coding mistakes! - by Steven82 - 14.08.2012, 15:22
Re: All of your stupid embarrassing coding mistakes! - by Calgon - 14.08.2012, 17:59
Re: All of your stupid embarrassing coding mistakes! - by Roperr - 14.08.2012, 19:12
Re: All of your stupid embarrassing coding mistakes! - by ReneG - 18.08.2012, 11:31
Re: All of your stupid embarrassing coding mistakes! - by HuSs3n - 20.08.2012, 23:55
Re : All of your stupid embarrassing coding mistakes! - by ricardo178 - 20.08.2012, 23:57
Re: All of your stupid embarrassing coding mistakes! - by Sinner - 21.08.2012, 11:06
Re: All of your stupid embarrassing coding mistakes! - by JaKe Elite - 21.08.2012, 12:06
Re: All of your stupid embarrassing coding mistakes! - by FireCat - 22.08.2012, 13:26
Re: All of your stupid embarrassing coding mistakes! - by Kar - 22.08.2012, 14:46
Re: All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 22.08.2012, 15:24
Re: All of your stupid embarrassing coding mistakes! - by Patrik356b - 22.08.2012, 15:32
Re: All of your stupid embarrassing coding mistakes! - by milanosie - 22.08.2012, 18:07
Re: All of your stupid embarrassing coding mistakes! - by 2KY - 22.08.2012, 19:36
Re: All of your stupid embarrassing coding mistakes! - by =WoR=G4M3Ov3r - 22.08.2012, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)