Thread: Fuel
View Single Post
Old 21/11/2017, 03:22 PM   #5
Big Clucker
Mivco's Avatar
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Default Re: Fuel

Originally Posted by L97 View Post
Let me guess, you just get a different number every time, right?
So here's the mistake:
Benzin[playerid] = random(100);
If you want to fill the tank up, this (the variable Benzin) doesn't have to be a random number, it has to be set to 100, so:
Benzin[playerid] = 100;
I have set number 100 without a random but still nothing wrong
Mivco is offline   Reply With Quote