Check for string text?
#7

pawn Код:
else if(!strcmp(name, VehicleInfo[vid][vOwner], true) == 0)
is the same as:
pawn Код:
if(!(!strcmp(name, VehicleInfo[vid][vOwner], true)))
The correct code would be:
pawn Код:
if(!strcmp(name, VehicleInfo[vid][vOwner], false))
Reply


Messages In This Thread
Check for string text? - by Amel_PAtomAXx - 22.05.2014, 23:20
Re : Check for string text? - by Ramoboss - 22.05.2014, 23:49
Re: Check for string text? - by Amel_PAtomAXx - 23.05.2014, 00:09
Re: Check for string text? - by SickAttack - 23.05.2014, 00:19
Re : Check for string text? - by Ramoboss - 23.05.2014, 00:26
Re: Re : Check for string text? - by SickAttack - 23.05.2014, 00:30
Re: Check for string text? - by Threshold - 23.05.2014, 01:54
Re: Check for string text? - by SickAttack - 23.05.2014, 01:58
Re: Check for string text? - by Threshold - 23.05.2014, 02:03
Re: Check for string text? - by SickAttack - 23.05.2014, 02:05

Forum Jump:


Users browsing this thread: 1 Guest(s)