Raised This Month: $ Target: $400
 0% 

Missmatch error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 04-23-2012 , 14:18   Missmatch error
Reply With Quote #1

I get mismatch error from second line. What could be the problem ?

PHP Code:
            pevvictimpev_origincharsmaxu_globalvarfOrigin ] ) );
            
FVecIVeccharsmaxu_globalvarfOrigin ] ), iOrigin ); 
DoviuX is offline
Send a message via Skype™ to DoviuX
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-23-2012 , 14:54   Re: Missmatch error
Reply With Quote #2

show the error and your arrays... Full code would be helpfull.
__________________

Last edited by Napoleon_be; 04-23-2012 at 14:54.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 04-23-2012 , 14:59   Re: Missmatch error
Reply With Quote #3

PHP Code:
enum _:originsa {
    
iOrigin,
    
Float:fOrigin
}

new 
u_originvar][ originsa ];

public 
deathmsg( ) {
        new 
victim read_data);

        
pevvictimpev_originu_originvarfOrigin ] );
        
FVecIVecsizeofu_originvarfOrigin ] ), u_originvariOrigin ] );
        new 
u_originvar][ iOrigin ];
        new 
u_originvar][ iOrigin ];
        new 
u_originvar][ iOrigin ];
        
create_smokexy);
        
create_smoke50y);
        
create_smokex50);
        
beam_removevictim );
        if( 
u_playerdatavictim ][ g_hooked ] ) drag_end(victim);

DoviuX is offline
Send a message via Skype™ to DoviuX
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-23-2012 , 14:59   Re: Missmatch error
Reply With Quote #4

PHP Code:
enum _:originsa 
    
iOrigin
    
Float:fOrigin 


new 
u_originvaroriginsa ][3]; 

public 
deathmsg( ) { 
        new 
victim read_data); 

        
pevvictimpev_originu_originvarfOrigin ] ); 
        
FVecIVecu_originvarfOrigin ], u_originvariOrigin ] ); 
        new 
u_originvariOrigin ][ ]; 
        new 
u_originvariOrigin ][ ]; 
        new 
u_originvariOrigin ][ ]; 
        
create_smokexy); 
        
create_smoke50y); 
        
create_smokex50); 
        
beam_removevictim ); 
        if( 
u_playerdatavictim ][ g_hooked ] ) drag_end(victim); 

__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 04-23-2012 at 15:02.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-23-2012 , 16:03   Re: Missmatch error
Reply With Quote #5

You're trying to convert an integer (charsmax() and sizeof return integers) into a vector.

Last edited by hleV; 04-23-2012 at 16:04.
hleV is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 04-24-2012 , 08:57   Re: Missmatch error
Reply With Quote #6

It compiles but I get tag missmatch in this line:
PHP Code:
FVecIVecu_originvarfOrigin ], u_originvariOrigin ] ); 
DoviuX is offline
Send a message via Skype™ to DoviuX
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-24-2012 , 19:32   Re: Missmatch error
Reply With Quote #7

try this

PHP Code:
FVecIVecFloat:u_originvarfOrigin ], u_originvariOrigin ] ); 
EDIT:

PHP Code:
enum _:originsa 
    
iOrigin[3], 
    
Float:fOrigin[3]


new 
u_originvaroriginsa ]; 

public 
deathmsg( ) { 
        new 
victim read_data); 

        
pevvictimpev_originu_originvarfOrigin ] ); 
        
FVecIVecu_originvarfOrigin ], u_originvariOrigin ] ); 
        new 
u_originvariOrigin ][ ]; 
        new 
u_originvariOrigin ][ ]; 
        new 
u_originvariOrigin ][ ]; 
        
create_smokexy); 
        
create_smoke50y); 
        
create_smokex50); 
        
beam_removevictim ); 
        if( 
u_playerdatavictim ][ g_hooked ] ) drag_end(victim); 

__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 04-24-2012 at 20:47.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
.ThePro
Member
Join Date: Aug 2011
Location: Brazil
Old 04-24-2012 , 20:29   Re: Missmatch error
Reply With Quote #8

Friend, the error "Missmatch" happens when the function of this line does not match what was recorded.

For example:

I used the setting times of Furien Mod this:

Code:
 if (furien_get_user_team (id) == AntiFurien)
It was recorded in this way include:

Code:
 enum {_ItemRestriction
 Furien,
 AntiFurien
 }

 forward furien_team_change (id);
 forward furien_round_restart (id);
 native furien_get_user_team (id);
And this caused "Misstach tag", because the command AntiFurien not "worked" with the native.
So to solve it was enough to make a simple modification to include:

Code:
 native _ItemRestriction: furien_get_user_team (id);
Now Command Furien AntiFurien or already working with this function.

What I mean is that when the error happens TagMisstach, a command is invalid in this function / line.
__________________
Of Developer to apprentice.


Last edited by .ThePro; 04-24-2012 at 20:29.
.ThePro is offline
Send a message via MSN to .ThePro
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 07:44.


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