easyDialog issue
#1

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;

Reply
#2

Dialog: does not have a dialogid argument.

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)