Problem with - [Rent] command
#7

I'm using an else code, so that is wrong:
Код:
if(ARentano[playerid] != 0)
Here you are checking if the player has the ARentano var to not 0 and hence anything else, including 1. So basically if you do not have a vehicle, and the var ARentano is set to 0 the code will not run and will send the else message.


This is correct:
Код:
if(ARentano[playerid] == 0)
You are checking if the ARentano var is to 0, hence no vehicle and thus processing the code and buying a vehicle.
Reply


Messages In This Thread
Problem with - [Rent] command - by NoDi522 - 13.03.2015, 20:30
Re: Problem with - [Rent] command - by Evocator - 13.03.2015, 20:40
Re: Problem with - [Rent] command - by CalvinC - 13.03.2015, 20:44
Re: Problem with - [Rent] command - by NoDi522 - 13.03.2015, 20:50
Re: Problem with - [Rent] command - by Evocator - 13.03.2015, 20:58
Re: Problem with - [Rent] command - by NoDi522 - 13.03.2015, 21:07
Re: Problem with - [Rent] command - by Evocator - 13.03.2015, 21:19
Re: Problem with - [Rent] command - by NoDi522 - 14.03.2015, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)