AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Tag mismatch for bool:has_used (https://forums.alliedmods.net/showthread.php?t=327109)

meda 09-01-2020 14:54

Tag mismatch for bool:has_used
 
if(has_used[id] > 1)


Warning: Tag mismatch on line 7082

CrazY. 09-01-2020 15:08

Re: Tag mismatch for bool:has_used
 
You should provide the full code so people can help you, but it seems like you are comparing with a value of different type.

Bugsy 09-01-2020 18:13

Re: Tag mismatch for bool:has_used
 
If has_used[] is defined with the bool tag then it expects true or false. I would change that code to the below. You should not be assigning integers to the variable, only true or false.

if ( has_used[ id ] )
or
if ( has_used[ id ] == true )


All times are GMT -4. The time now is 13:49.

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