Raised This Month: $32 Target: $400
 8% 

Solved tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-13-2020 , 13:16   tag mismatch
Reply With Quote #1

why its showing error?

Error
PHP Code:
.sma(146) : warning 213tag mismatch 
PHP Code:
new const Float:origins[][]=
{
    { 
4001402, -91 },
    { -
38267836 }

__________________

Last edited by Sanjay Singh; 01-15-2020 at 01:59.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-13-2020 , 13:53   Re: tag mismatch
Reply With Quote #2

you're declaring a new float but yet you enter the values as integers.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-13-2020 , 14:16   Re: tag mismatch
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
you're declaring a new float but yet you enter the values as integers.
oh, i changed values to float but still same error but less than before.

Error occuring in this now

set_user_origin(id, origins[0])
__________________

Last edited by Sanjay Singh; 01-13-2020 at 14:17.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-13-2020 , 14:19   Re: tag mismatch
Reply With Quote #4

NVM Fixed thnx @Napoleon
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-13-2020 , 14:22   Re: tag mismatch
Reply With Quote #5

"set_user_origin" requires an integer array, not float, so simply remove the "Float:" tag.
__________________

Last edited by OciXCrom; 01-13-2020 at 14:23.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 01-14-2020 , 15:08   Re: tag mismatch
Reply With Quote #6

Either declare them as integers, or if you need them as float for something else use FVecIVec.
redivcram is offline
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-15-2020 , 01:58   Re: tag mismatch
Reply With Quote #7

Topic closed.
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
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 01:59.


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