cleolibrary / CLEO5

CLEO 5 for GTA San Andreas
https://cleo.li
MIT License
57 stars 6 forks source link

time parameter type fixed #156

Closed MiranDMC closed 5 months ago

MiranDMC commented 5 months ago

-1 should result in displaying text 'forever', in same way as in native text printing opcodes.

x87 commented 5 months ago

{00BC:} print_now {key} '10LS' {time} -1 {flag} 1

text does not even show up

x87 commented 5 months ago
 if ( v2->m_aMessages[0].m_pText
      && CTimer::m_snTimeInMilliseconds > (v2->m_aMessages[0].m_dwStartTime + v2->m_aMessages[0].m_dwTime) )
    {
      v2->m_aMessages[0].m_pText = 0;

if m_dwTime is 0 or less, the text is immediately removed. not sure where this idea of unlimited time came from

MiranDMC commented 5 months ago

Right. I tested original opcodes and none of them works that way. I think I mixed them with character tasks, which accept -1 as time argument.