[SOLVED] Help fixing "Tag mismatch"
Hello. I'm editing a plugin that I found somewhere in this forum to change the speed when using the knife. I added a cvar, the plugin is working but when compile I get these warnings:
Warning: Tag mismatch on line 20. [new MAXSPEED = get_pcvar_float(g_MAXSPEED);] Warning: Tag mismatch on line 24. [set_user_maxspeed(id, MAXSPEED)] What's wrong with the plugin? Please help me! Thanks in advance :) PHP Code:
|
Re: Help fixing "Tag mismatch"
PHP Code:
PHP Code:
|
Re: Help fixing "Tag mismatch"
Quote:
|
Re: [SOLVED] Help fixing "Tag mismatch"
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:
You can than also remove the line that checks if the player is holding a knife. |
| All times are GMT -4. The time now is 10:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.