Problem with strcmp?
#2

strcmp returns 0 if the strings are the same, so:

pawn Код:
if(VehicleInfo[Vehicleid][owned] == true && strcmp(VehicleInfo[Vehicleid][owner], PlayerName(playerid), true))
Becomes
pawn Код:
if(VehicleInfo[Vehicleid][owned] == true && strcmp(VehicleInfo[Vehicleid][owner], PlayerName(playerid), true) == false)
Reply


Messages In This Thread
Problem with strcmp? - by thefatshizms - 07.01.2013, 20:34
Re: Problem with strcmp? - by Fabio11 - 07.01.2013, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)