View Single Post
Wazman
AlliedModders Donor
Join Date: Oct 2012
Location: Unknown place ????
Old 04-16-2013 , 16:56   Re: [TF2] Friendly Mode
Reply With Quote #42

Yooo, you messed up a little, but don't worry, I fixed it.
Quote:
L 04/16/2013 - 14:50:49: [SM] Native "GetClientWeapon" reported: Client index 685 is invalid
L 04/16/2013 - 14:50:49: [SM] Displaying call stack trace for plugin "friendly.smx":
L 04/16/2013 - 14:50:49: [SM] [0] Line 261, friendly.sp::OnTakeDamage()
I deleted the lines 260-261, they are never used. So They Caused this getclientweapon error.
Quote:
decl String:weapon[32];
GetClientWeapon(attacker, weapon, sizeof(weapon));
I didn't tamper with anything else, same cvars, same commands. Mod is now 100% Safe to use. Have Fun kids ;D

Credit To Impact123 For Teaching me how to fix the error https://forums.alliedmods.net/showth...74#post1933974
Attached Files
File Type: smx friendlyv2.smx (7.7 KB, 153 views)
File Type: sp Get Plugin or Get Source (friendlyv2.sp - 542 views - 10.7 KB)

Last edited by Wazman; 04-16-2013 at 19:04.
Wazman is offline