Raised This Month: $12 Target: $400
 3% 

Solved cs_get_user_team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-18-2019 , 12:46   cs_get_user_team
Reply With Quote #1

what is tag mismatch for ? , however it compiles with "get_user_team" and there are no warnings.
Code:
#include <amxmodx> #include <cstrike> public team(id) {     new team     team = cs_get_user_team(id)     switch(team)     {         case CS_TEAM_T:         {         }         case CS_TEAM_CT:         {         }         case CS_TEAM_SPECTATOR:         {         }     } }
line 7--8 :
Code:
team = cs_get_user_team(id) switch(team)
Code:
D:\Ali\Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\2.sma(7 -- 8) : warning 213: tag mismatch
Header size:            228 bytes
Code size:              212 bytes
Data size:               20 bytes
Stack/heap size:      16384 bytes
Total requirements:   16844 bytes

1 Warning.
Done.
[Finished in 0.3s]

Last edited by LearninG; 09-18-2019 at 14:46.
LearninG is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 09-18-2019 , 13:29   Re: cs_get_user_team
Reply With Quote #2

PHP Code:
new CsTeams:team cs_get_user_team(id
But why not make the direct switch in function?

PHP Code:
switch(cs_get_user_team(id)) 
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-18-2019 , 14:45   Re: cs_get_user_team
Reply With Quote #3

ok , thanks.
Quote:
Originally Posted by iceeedr View Post
But why not make the direct switch in function?

PHP Code:
switch(cs_get_user_team(id)) 
sure it's better , but my main point was on tag mismatch warning.
LearninG is offline
Reply


Thread Tools
Display Modes

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 09:38.


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