#1

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 ("_"
Reply
#2

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

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..
Reply
#4

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

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)