Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 07FC

Opcode Database

07FC

DescriptionConverts the float to two separate numbers to use in a 2-numbered GXT entry, and draws the text. The precision parameter defines the length of the number after the decimal point.

Example
DISPLAY_TEXT_WITH_FLOAT 145.0 275.0 BOAT_77 69.123456 4

Will print '69:1234'
Parameters (v2)1) X screen coordinate (Float) (FLOAT)
2) Y screen coordinate (Float) (FLOAT)
3) GXT Entry (String) (TEXT_LABEL)
4) Float (FLOAT)
5) Integer (INT)
Gamessa
CategoryCommon, Draw, Text, Texture
Command Name (IV)DISPLAY_TEXT_WITH_FLOAT
San Andreas
sascm.ini07FC=5,display_text_with_float %1d% %2d% gxt %3g% value %4d% precision %5h%
Example07FC: display_text_with_float 145.0 275.0 gxt 'BOAT_7' value 241@ precision 2
Command NameDISPLAY_TEXT_WITH_FLOAT

<< 07FB

07FD >>