Help with Tag mismatch
Hi i making plugin but i have lots of Mismatch, and i dont know why.
Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Warning: Tag mismatch on line 64 Warning: Tag mismatch on line 82 Warning: Tag mismatch on line 88 Warning: Tag mismatch on line 118 Warning: Tag mismatch on line 134 Warning: Tag mismatch on line 266 Warning: Tag mismatch on line 267 Warning: Tag mismatch on line 268 Warning: Tag mismatch on line 300 Header size: 1884 bytes Code size: 15028 bytes Data size: 4624 bytes Stack/heap size: 16384 bytes; estimated max. usage=781 cells (3124 bytes) Total requirements: 37920 bytes 9 Warnings. Done. |
Re: Help with Tag mismatch
Code:
if(get_user_team(i)==CS_TEAM_T)PHP Code:
line 266 - 268 Code:
origin[0] = 0;PHP Code:
|
Re: Help with Tag mismatch
There i have finished and all corect exept
Quote:
Quote:
Quote:
Quote:
|
Re: Help with Tag mismatch
few things....
Code:
gPoints[i] = gPoints[i]+1PHP Code:
and do you for looop like this.... PHP Code:
see the wiki.... http://www.amxmodx.org/funcwiki.php?go=func&id=174 see if that fixes your bugs. |
Re: Help with Tag mismatch
Quote:
|
Re: Help with Tag mismatch
His way: 32 loop iterations, 8 native calls per (for alive\connected\team\bot checking, twice)
get_players: No excess iterations and no other natives. His code can be optimized a bit, and FYI, if you are ever checking if connected AND alive, just check if alive because that includes a connected check. PHP Code:
|
Re: Help with Tag mismatch
Quote:
But i have a feeling it was mostly in the way he went through the players... Unless i missed soemthing in the event call. EDIT: oh yeah, that switch statement. Also use bugsy's switch statement. But keep the get_players stuff. |
Re: Help with Tag mismatch
Quote:
|
| All times are GMT -4. The time now is 15:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.