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

Why is this a tag mismatch?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 03-19-2011 , 15:33   Why is this a tag mismatch?
Reply With Quote #1

Doing this:

Code:
new Float:g_vecLastPos[MAXPLAYERS+1][3];

stock Something(client)
{
    g_vecLastPos[client] = {0.0, 0.0, 0.0};
}
I obtain a tag mismatch when compiling, but if i use integer values it wont say anything like:

Code:
new g_iNextColor[MAXPLAYERS+1][4];

stock Something(client)
{
    g_iNextColor[client] = {0, 0, 0, 0}
}
Any suggestions?
honorcode23 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 03-19-2011 , 15:46   Re: Why is this a tag mismatch?
Reply With Quote #2

used your code with vectors
successfully compiled
Leonardo is offline
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 03-19-2011 , 16:14   Re: Why is this a tag mismatch?
Reply With Quote #3

Ya prolly cuz it doesnt initalize the function, using it would throw you a tag mismatch.
honorcode23 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 03-19-2011 , 16:39   Re: Why is this a tag mismatch?
Reply With Quote #4

anyway
too hard to do this?
Code:
g_vecLastPos[client][0] = 0.0;
g_vecLastPos[client][1] = 0.0;
g_vecLastPos[client][2] = 0.0;
Leonardo is offline
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 03-19-2011 , 16:42   Re: Why is this a tag mismatch?
Reply With Quote #5

Nope, but i want to know why is that a tag mismatch, since, it doesnt look like one .
honorcode23 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-19-2011 , 20:27   Re: Why is this a tag mismatch?
Reply With Quote #6

Code:
new Float:g_vecLastPos[MAXPLAYERS+1][3];

stock Something(client)
{
    g_vecLastPos[client] = Float:{0.0, 0.0, 0.0};
}
__________________
Silvers 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 04:37.


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