*** Terrible Title Removed
#1

Hello guys. I have made a tp script with the input dialog's.
Код:
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");
     		 	}
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.
Reply
#2

DON'T SPAM every 48 hours only is allowed but does it show any errors or warnings when compiling ?
Reply
#3

no errors and no warnings. And sorry


EDIT : For those who are interested. I fixed it. And it was a silly mistake.

Код:
if(i < amount)
                {
                    ID_INPUT:
           			ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel");
     		 	}
As u can see the dialog id is 3 and i used 2 here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)