It tells me Im not near a gas station
#8

It just makes it a lot clearer. I read it like this:

command /refuel
if they aren't in a vehicle, show an error
if already refueling, show error
loop through the gas stations
if they aren't near this gas station or this buisness isn't a gas station, continue to the next buisness ID
didn't continue, this is a gas station, refuel here and return 1;
end of loop
refueling failed, they are not near a gas station, show message

It just seems strange to have the if() on one line and the statement 50 lines away.
Reply


Messages In This Thread
It tells me Im not near a gas station - by milanosie - 09.02.2012, 19:36
Re: It tells me Im not near a gas station - by MP2 - 09.02.2012, 20:12
Re: It tells me Im not near a gas station - by milanosie - 09.02.2012, 20:15
Re: It tells me Im not near a gas station - by MP2 - 09.02.2012, 20:17
Re: It tells me Im not near a gas station - by milanosie - 09.02.2012, 20:22
Re : It tells me Im not near a gas station - by ricardo178 - 09.02.2012, 21:04
Re: It tells me Im not near a gas station - by milanosie - 09.02.2012, 21:05
Re: It tells me Im not near a gas station - by MP2 - 09.02.2012, 21:09
Re: It tells me Im not near a gas station - by Vince - 09.02.2012, 22:25
Re : Re: It tells me Im not near a gas station - by ricardo178 - 09.02.2012, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)