*** 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


Messages In This Thread
*** Terrible Title Removed - by Virus. - 22.10.2012, 12:11
Re: Error message help - by Red_Dragon. - 23.10.2012, 11:23
Re: Error message help - by Virus. - 23.10.2012, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)