issue with strcmp
#1

hi all,
i have a problem with strcmp, it won't return true, i am surely that name in database is as name in array but when i compare between them it return false!. anyone can help;

Код:
enum bInfo
{
 Owner[MAX_PLAYERNAME+1],
 bizName[128]
}
new Bizz[2][bInfo];

//mysql statement to get bizznames

new sql_bizname[128];
cache_get_row(0, 3,sql_bizname);

for(new i = 0; i < sizeof(Bizz); i++){
  if(strcmp(Bizz[i][bizName], sql_bizname, true) == 0 ){
    //do something
  }
}
Reply


Messages In This Thread
issue with strcmp - by oodev - 14.02.2014, 04:12
Re: issue with strcmp - by Yashas - 14.02.2014, 04:39
Re: issue with strcmp - by Konstantinos - 14.02.2014, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)