14.02.2014, 04:12
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;
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 } }