Raised This Month: $ Target: $400
 0% 

if condition for comparing indexed array to number


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-11-2009 , 14:54   Re: if condition for comparing indexed array to number
Reply With Quote #6

Quote:
Originally Posted by .Owyn. View Post
yup, i was reading funcwiki for str_to_num and found same, but can't condition "if" work with indexed arrays?
It works fine. But you were trying to compare a char to an integer. The condition would only run if the char had the integer value of 7, which corresponds to the character 'BELL', and it's not even printable. You'd have to compare it to '7' for it to work, and it'd still be the wrong way.
__________________

Community / No support through PM
danielkza is offline
 



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 16:53.


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