SA-MP Forums Archive
*** Terrible Title Removed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: *** Terrible Title Removed (/showthread.php?tid=386897)



*** Terrible Title Removed - Virus. - 22.10.2012

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.


Re: Error message help - Red_Dragon. - 23.10.2012

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


Re: Error message help - Virus. - 23.10.2012

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