Spawn location problem
#6

[QUOTE=Konstantinos;3119503]If HouseInfo[i][hOwner] is NULL/empty, strcmp will return 0 (that they're equal) so check it with isnull.
pawn Код:
if (!isnull(HouseInfo[i][hOwner]) && !strcmp(HouseInfo[i][hOwner], PlayerInfo[playerid][Name], true, MAX_PLAYER_NAME))
I kinda suspected that, but still, strcmp should compare the strings, if HouseInfo[i][hOwner] does not equal the Player's Name then probably it should return -1 or 1 and not 0. But at equal probability u seem right too :P
Reply


Messages In This Thread
Spawn location problem - by LocMax - 13.07.2014, 13:27
Re: Spawn location problem - by BlackM - 13.07.2014, 13:39
Re: Spawn location problem - by LocMax - 13.07.2014, 13:44
Re: Spawn location problem - by Konstantinos - 13.07.2014, 13:49
Re: Spawn location problem - by BlackM - 13.07.2014, 13:49
Re: Spawn location problem - by BlackM - 13.07.2014, 13:52
Re: Spawn location problem - by BlackM - 13.07.2014, 13:54
Re: Spawn location problem - by Konstantinos - 13.07.2014, 13:56
Re: Spawn location problem - by BlackM - 13.07.2014, 13:59
Re: Spawn location problem - by LocMax - 13.07.2014, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)