02.03.2019, 09:02
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(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
if(strlen(inputtext) < 6)
{
SendClientMessage(playerid, -1, "1");
Dialog_Show(playerid, TEST, DIALOG_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(playerid, TEST, DIALOG_STYLE_PASSWORD, "Test Dialog", "Test Text", "Button 1", "Button 2");
return 1;
}