/buy Command help
#7

Quote:
Originally Posted by CentyPoo
View Post
pawn Code:
if(!IsAt247(playerid) && !IsAtElecShop(playerid) && !IsAtHardShop(playerid)) //Use && instead of ||
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "   You are not in a Store!");
        return 1;
    }
If you're using || for this code, it will check to see if you're not in one of everyone of them , meaning if you're in one but not the other, it will return true.
This is wrong !
what your simply saying is that the player has to be at ALL these 3 places at the same time, how will that happen ?

Because the script will check if the player is close to all these 3 location at the same time, but that cant happen because the player cant be at these 3 positions at the same time !
Reply


Messages In This Thread
/buy Command help - by [TC]XxJuggaloxX - 25.10.2012, 08:00
Re: /buy Command help - by park4bmx - 25.10.2012, 08:08
Re: /buy Command help - by [TC]XxJuggaloxX - 25.10.2012, 08:09
Re: /buy Command help - by Emmet_ - 25.10.2012, 08:34
Re: /buy Command help - by park4bmx - 25.10.2012, 09:03
Re: /buy Command help - by CentyPoo - 25.10.2012, 11:52
Re: /buy Command help - by park4bmx - 25.10.2012, 14:28
Re: /buy Command help - by [TC]XxJuggaloxX - 25.10.2012, 14:47
Re: /buy Command help - by Finn - 25.10.2012, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)