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

Asked by for the 1994 Hyundai Excel
Have scan test to check data stream, could be lots of things. Sounds almost like
a temp. sensor.
1 more answer , 2 more comments
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
any other stupid sensor or maybe the computer
could be those or several others