Raised This Month: $ Target: $400
 0% 

[HELP] Tag Mismatch Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 03-05-2010 , 19:54   [HELP] Tag Mismatch Error
Reply With Quote #1

Code:
new tVictim = cs_get_user_team( victim )

Can someone tell me why I get a tag mismatch error from that code?
__________________
Hi.
Kreation is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-05-2010 , 19:58   Re: [HELP] Tag Mismatch Error
Reply With Quote #2

The team constants for Counter-Strike are tagged with CsTeams.
Code:
new CsTeams:tVictim = cs_get_user_team( victim )
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 03-05-2010 , 20:42   Re: [HELP] Tag Mismatch Error
Reply With Quote #3

Ahh, thanks.

EDIT:I have something else I need help with, I'm using
Code:
enum ePlayerData {     bool:bIsRebel,     bool:bLrActive,     bool:bHasFreeday } if ( !ePlayerData[victim][bIsRebel] ) {      //code }

I get "invalid subscript(not an array or to many subscripts: ePlayerData".

How would I fix this? I've tried to make it an array but I can get it to work.
__________________
Hi.

Last edited by Kreation; 03-05-2010 at 21:10. Reason: new problem
Kreation is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-05-2010 , 21:13   Re: [HELP] Tag Mismatch Error
Reply With Quote #4

ePlayerData is an enum, not an array.

Code:
enum PlayerData {     bool:bIsRebel,     bool:bLrActive,     bool:bHasFreeday }; new g_ePlayerData[ 33 ][ PlayerData ]; // ... if( g_ePlayerData[ iPlayer ][ bIsRebel ] ) {     client_print( iPlayer, print_chat, "You are a rebel! :P" ); }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 03-05-2010 , 21:20   Re: [HELP] Tag Mismatch Error
Reply With Quote #5

Okay I got it now, thanks again for the help.
__________________
Hi.
Kreation 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 08:39.


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