my 1999 hyundai excel will start cold when it warms up it wont start again on 1994 Hyundai Excel

i get in my car in the morning starts up perfectly drive around to petrol station turn car off and wont start till a couple hours later

2 answers 2 comments
Have scan test to check data stream, could be lots of things. Sounds almost like
a temp. sensor.
seek diag and est and have codes scanned
what are codes

could it have something to do with any of these things
crank angle senser
a dirty peddling chamber
spark plugs
injecters
any other stupid sensor or maybe the computer
could be those or several others