How to
#1

Hi guys!

How to check if my business variable has a name( BizName) ?

I am checking wether bizname has something more than just a blank varchar (yes, I am using mysql) or else if it's empty blahblah...

Here I "grab" it from the database

pawn Код:
cache_get_field_content(i,"BizName",BizInfo[i][BizName],MySQLHandle,40);
And now when I am creating 3D text labels, I am checking if the name is something or it's default blank

pawn Код:
if(BizInfo[idbiz][BizName])
{

}
else
{

}
This isn't working, how can I make it work? Do I have to use strcmp?
Reply


Messages In This Thread
How to - by Sime30 - 21.01.2015, 20:45
Re: How to - by Ironboy - 21.01.2015, 21:01
Re: How to - by Sime30 - 21.01.2015, 21:05
Re: How to - by Sime30 - 22.01.2015, 08:00

Forum Jump:


Users browsing this thread: 2 Guest(s)