outlaw_magic
New member
- Local time
- Today, 23:19
- Joined
- Jan 26, 2008
- Messages
- 2
Hey ok im making a online game (yea theres loads already)
the game is pretty much done but theres one things im stuck on.
each user has their own car garage. cars can be gained by purchase from a Dealership.
in the garage page the following information is displayed
Car ID
Car Name
Car Value
Car Damage
Car Location
now when a user clicks on the Car ID which is a link that looks like
<a href='garage.php?sel=$array['id]'>$array['id]</a>
the link displays as it should.
what i want users to be able to do is when they click on say on
car id number 1 which could be a fiat panda they are placed as using that car.
a user should only be able to get in one car at a time and if they click on another cars id then they are taken out of their current car and placed inside the new one.
if they are in a car already and they click that cars id again then they should be taken out of that car.
the problem is i cant figure out how to do this.
a owner for a car is listed by the cars owner under the garage field owner.
the using is done by the ENUM 0 = not using 1 = using
can someone help with this?
thanks
the game is pretty much done but theres one things im stuck on.
each user has their own car garage. cars can be gained by purchase from a Dealership.
in the garage page the following information is displayed
Car ID
Car Name
Car Value
Car Damage
Car Location
now when a user clicks on the Car ID which is a link that looks like
<a href='garage.php?sel=$array['id]'>$array['id]</a>
the link displays as it should.
what i want users to be able to do is when they click on say on
car id number 1 which could be a fiat panda they are placed as using that car.
a user should only be able to get in one car at a time and if they click on another cars id then they are taken out of their current car and placed inside the new one.
if they are in a car already and they click that cars id again then they should be taken out of that car.
the problem is i cant figure out how to do this.
a owner for a car is listed by the cars owner under the garage field owner.
the using is done by the ENUM 0 = not using 1 = using
can someone help with this?
thanks