AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved tag mismatch (https://forums.alliedmods.net/showthread.php?t=320878)

Sanjay Singh 01-13-2020 13:16

tag mismatch
 
why its showing error?

Error
PHP Code:

.sma(146) : warning 213tag mismatch 

PHP Code:

new const Float:origins[][]=
{
    { 
4001402, -91 },
    { -
38267836 }



Napoleon_be 01-13-2020 13:53

Re: tag mismatch
 
you're declaring a new float but yet you enter the values as integers.

Sanjay Singh 01-13-2020 14:16

Re: tag mismatch
 
Quote:

Originally Posted by Napoleon_be (Post 2680099)
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])

Sanjay Singh 01-13-2020 14:19

Re: tag mismatch
 
NVM Fixed thnx @Napoleon

OciXCrom 01-13-2020 14:22

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

redivcram 01-14-2020 15:08

Re: tag mismatch
 
Either declare them as integers, or if you need them as float for something else use FVecIVec.

Sanjay Singh 01-15-2020 01:58

Re: tag mismatch
 
Topic closed.


All times are GMT -4. The time now is 18:52.

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