Spawn at House (one line problem)
#3

As long as it doesn't contain both AND (&&) and OR (||) in the same statement, it's fine.

I believe that hOwned is not 1 so even if the owner's name matches with the player's, it will fail.

Do a better debugging:
pawn Код:
printf("idz: %i & hOwned: %i & hOwner: \"%s\" & playername: \"%s\"", idz, HouseInfo[idz][hOwned], HouseInfo[idz][hOwner], playername);
if(HouseInfo[idz][hOwned] == 1 && strcmp(HouseInfo[idz][hOwner], playername) == 0)
PS: idx stands for index so idz makes no-sense.
Reply


Messages In This Thread
Spawn at House (one line problem) - by Chrillzen - 20.02.2014, 18:39
Re: Spawn at House (one line problem) - by PowerPC603 - 20.02.2014, 18:45
Re: Spawn at House (one line problem) - by Konstantinos - 20.02.2014, 18:51
Re: Spawn at House (one line problem) - by Chrillzen - 20.02.2014, 19:02
Re: Spawn at House (one line problem) - by Konstantinos - 20.02.2014, 19:07
Re: Spawn at House (one line problem) - by Chrillzen - 20.02.2014, 19:15
Re: Spawn at House (one line problem) - by venomlivno8 - 20.02.2014, 19:30
Re: Spawn at House (one line problem) - by Chrillzen - 20.02.2014, 20:02

Forum Jump:


Users browsing this thread: 3 Guest(s)