strcmp help - is string1 the same as string2
#6

Quote:
Originally Posted by Blacklite
Посмотреть сообщение
strcmp can return values less than 0 too. To correctly check if string1 does not match string2, use this:

pawn Код:
if(strcmp(BizInfo[PlayerInfo[playerid][pBizKey]][bOwner],PlayerName(playerid),true) != 0)
when you don't use a condition it's check if the result is different than 0, not more.
Reply


Messages In This Thread
strcmp help - is string1 the same as string2 - by Jack_Leslie - 12.09.2011, 01:40
Re: strcmp help - is string1 the same as string2 - by PrawkC - 12.09.2011, 01:43
Re: strcmp help - is string1 the same as string2 - by Jack_Leslie - 12.09.2011, 01:47
Re: strcmp help - is string1 the same as string2 - by Blacklite - 12.09.2011, 02:07
Re: strcmp help - is string1 the same as string2 - by cessil - 12.09.2011, 02:13
Re: strcmp help - is string1 the same as string2 - by xDeadlyBoy - 12.09.2011, 11:05
Re: strcmp help - is string1 the same as string2 - by cessil - 12.09.2011, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)