How can I store 1-2 variables to a variable and then have it displayed using (below) which the variable will be the direction the player is going?
| CODE |
| 045B: draw_text_2numbers 600.0 420.0 GXT 'OJs_DSp' numbers P_DirectionText_1 P_ReadX // ~y~~1~ ~w~Speed: ~1~ MPH |
Part of code where storing characters:
| CODE |
if and P_CarAngle >= 327.5 22.5 >= P_CarAngle // North then P_DirectionText_1 = 'N' else if and P_CarAngle > 22.5 67.5 > P_CarAngle // Northwest then P_DirectionText_1 = 'NW' else if and P_CarAngle >= 67.5 112.5 >= P_CarAngle // West then P_DirectionText_1 = 'W' else if and P_CarAngle > 112.5 157.5 > P_CarAngle // Southwest then P_DirectionText_1 = 'SW' else if and P_CarAngle >= 157.5 202.5 >= P_CarAngle // South then P_DirectionText_1 = 'S' else if and P_CarAngle > 202.5 247.5 > P_CarAngle // Southeast then P_DirectionText_1 = 'SE' else if and P_CarAngle >= 247.5 292.5 >= P_CarAngle // East then P_DirectionText_1 = 'E' else if and P_CarAngle > 292.5 327.5 > P_CarAngle // Northeast then P_DirectionText_1 = 'NE' end end end end end end end end return |