Raised This Month: $ Target: $400
 0% 

[SOLVED] Help fixing "Tag mismatch"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 01-21-2014 , 05:21   Re: [SOLVED] Help fixing "Tag mismatch"
Reply With Quote #1

I recommend that you take an extra step to make the plugin substantially more efficient.

CurWeapon is sent every time the clip ammo is changed, therefore in this plugin it's being sent far more times than necessary, since you only want it when a player pulls out their knife.

Therefore it should instead be registered like this:
Code:
register_event( "CurWeapon", "Event_CurWeapon", "be", "1=1", "2=29" );

You can than also remove the line that checks if the player is holding a knife.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode