SA-MP Forums Archive
help - 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: help (/showthread.php?tid=675876)



help - 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]I try something like that but this is show now
PHP Code:
if(PlayerText:linia11 == strcmp("PLD_SLOT:r_69","LD_SLOT:r_69"))
 
warning 213tag mismatchexpected tag "PlayerText"but found none ("_"



Re: help - PaulinSAMP - 23.05.2020

pawn Code:
if(linia11 == strcmp("PLD_SLOT:r_69","LD_SLOT:r_69"))



Re: help - Calinut200 - 23.05.2020

Quote:
Originally Posted by PaulinSAMP
View Post
pawn Code:
if(linia11 == strcmp("PLD_SLOT:r_69","LD_SLOT:r_69"))
not work
you fucking see what say the warning..


Re: help - Grim_ - 23.05.2020

You made a slot machine system, using tags, but can't fix that warning, hmm. Can you see what it says?


Re: help - SharpenBlade - 27.05.2020

You should give more details about that... where you have put that code? If your textdraw is called linia11 you could do this:
PHP Code:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == linia11)
    {
        
SCM(playerid, -1"This is 69.");
        return 
true;
    }
    return 
false;

Or:
PHP Code:
if(strmatch(linia11"LD_SLOT:r_69"))
{
    
SCM(playerid, -1"This is 69.");

If you don't have strmatch:
PHP Code:
stock strmatch( const String1[ ], const String2[ ] )
{
    if( ( 
strcmpString1String2truestrlenString2 ) ) == ) && ( strlenString2 ) == strlenString1 ) ) )
        return 
1;
    else
        return 
0;