SA-MP Forums Archive
Check Textdraw Box Object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Check Textdraw Box Object (/showthread.php?tid=675864)



Check Textdraw Box Object - Calinut200 - 23.05.2020

Helo!
I make a slots machine system and i wanna try something.
If first box object is "69" to write in chat "First textdraw is 69"

PHP Code:
if(PlayerText:linia11 == "LD_SLOT:r_69")
{            
SendClientMessage(playerid, -1"First textdraw box is 69");
diagonala[playerid] = 0;

I make this IF but i get this error, i don't think is good the IF
PHP Code:
includes/slotsmachine.inc(844) : error 033: array must be indexed (variable "-unknown-"
I try something like that but this is show now
PHP Code:
if(linia11 == strcmp("PLD_SLOT:r_69","LD_SLOT:r_69"))
 
warning 213tag mismatchexpected tag "PlayerText"but found none ("_"