13.03.2015, 21:19
I'm using an else code, so that is wrong:
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:
You are checking if the ARentano var is to 0, hence no vehicle and thus processing the code and buying a vehicle.
Код:
if(ARentano[playerid] != 0)
This is correct:
Код:
if(ARentano[playerid] == 0)