22.10.2012, 12:11
Hello guys. I have made a tp script with the input dialog's.
Everything seems fine. We don't enter a id and we get a error message. But we dont get the error message the 2nd time. We get the error message the 3rd time and we dont get it in the 4th time. I can't figure it out. Help will really be appreciated.
Thanks.
Код:
if(dialogid==3)
{
if(response)
{
if(strlen(inputtext)==0)
{
SendClientMessage(playerid,0xFF0000AA,"[ERROR]:Player ID not entered.");
goto ID_INPUT;
}
if(strlen(inputtext) > 0)
{
new id,idon=1;
id = strval(inputtext);
if(!IsPlayerConnected(id))
{
SendClientMessage(playerid,0xFF0000AA,"[ERROR]:Player is not connected.");
idon=0;
goto ID_INPUT;
}
if(i < amount)
{
ID_INPUT:
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel");
}
Thanks.

