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

Quote:
Originally Posted by L97 View Post
Let me guess, you just get a different number every time, right?
So here's the mistake:
Code:
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:
Code:
Benzin[playerid] = 100;
I have set number 100 without a random but still nothing wrong
Mivco is offline   Reply With Quote