04.08.2012, 19:21
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!

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!
