Raised This Month: $ Target: $400
 0% 

Tag mismatch for bool:has_used


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meda
New Member
Join Date: Sep 2020
Old 09-01-2020 , 14:54   Tag mismatch for bool:has_used
Reply With Quote #1

if(has_used[id] > 1)


Warning: Tag mismatch on line 7082
meda is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-01-2020 , 15:08   Re: Tag mismatch for bool:has_used
Reply With Quote #2

You should provide the full code so people can help you, but it seems like you are comparing with a value of different type.
__________________









Last edited by CrazY.; 09-01-2020 at 15:12.
CrazY. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-01-2020 , 18:13   Re: Tag mismatch for bool:has_used
Reply With Quote #3

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 )
__________________

Last edited by Bugsy; 09-01-2020 at 18:13.
Bugsy is offline
Old 09-01-2020, 18:16
Black Rose
This message has been deleted by Black Rose. Reason: Bugsy was faster
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 13:49.


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