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



easyDialog issue - polygxn - 02.03.2019

The problem is that even if I put nothing, or over 6 characters into inputtext I always got back the SCM with 3. Whats the problem? My easyDialog is from the original post by Emmet, so its probably not the include but I couldnt find a proper title for the post. Thanks!

PHP Code:
Dialog:TEST(playeriddialogidresponselistiteminputtext[])
{
    if(
response)
    {
        if(
strlen(inputtext) < 6)
        {
            
SendClientMessage(playerid, -1"1");
            
Dialog_Show(playeridTESTDIALOG_STYLE_PASSWORD"Test Dialog""inputtext < 6\nTest Text""Button 1""Button 2");
        }
        else
        {
            
SendClientMessage(playerid, -1"2");
        }
    }
    else
    {
        
SendClientMessage(playerid, -1"3");
    }
}
public 
OnPlayerConnect(playerid)
{
    
Dialog_Show(playeridTESTDIALOG_STYLE_PASSWORD"Test Dialog""Test Text""Button 1""Button 2");
    return 
1;




Re: easyDialog issue - Kane - 02.03.2019

Dialog: does not have a dialogid argument.

pawn Code:
Dialog:WeaponMenu(playerid, response, listitem, inputtext[])



Re: easyDialog issue - polygxn - 02.03.2019

Quote:
Originally Posted by Kane_
View Post
Dialog: does not have a dialogid argument.

pawn Code:
Dialog:WeaponMenu(playerid, response, listitem, inputtext[])
Oh jeez...thank you.


Re: easyDialog issue - TheToretto - 02.03.2019

Code:
Dialog:TEST(playerid, dialogid, response, listitem, inputtext[])
Should be

Code:
Dialog:TEST(playerid, response, listitem, inputtext[])
Edit: Nevermind, I was running tests leaving this tab open.


Re: easyDialog issue - polygxn - 02.03.2019

Quote:
Originally Posted by TheToretto
View Post
Code:
Dialog:TEST(playerid, dialogid, response, listitem, inputtext[])
Should be

Code:
Dialog:TEST(playerid, response, listitem, inputtext[])
Edit: Nevermind, I was running tests leaving this tab open.
Thank you too, I should pay more attention to the readme next time haha.