strcmp help - is string1 the same as string2
#3

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
change
if(!strcmp(BizInfo[PlayerInfo[playerid][pBizKey]][bOwner],PlayerName(playerid),true))
to
if(strcmp(BizInfo[PlayerInfo[playerid][pBizKey]][bOwner],PlayerName(playerid),true))

... it returns 0 if the string matches, thus by having the "!" its checking if the string matches.
Oh yeah, course, that worked, thanks.
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: 2 Guest(s)