Raised This Month: $ Target: $400
 0% 

[Help] Native errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-14-2011 , 11:47   Re: [Help] Native errors
Reply With Quote #7

The tag mismatch is because cs_[g/s]et_user_team() expects the CsTeams tag.
So you must tag them like this:
PHP Code:
new CsTeamsTeam cs_get_user_team(id); 
More info about tags & enums can be found here: http://forums.alliedmods.net/showthread.php?t=140103

If you only want to compare the teams of 2 players, without doing anything else,
you can just do it like this:
PHP Code:
// Team is same.
if(cs_get_user_team(id) == cs_get_user_team(attacker)


}

// team is not the same.
else
{


__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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 03:26.


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