SA-MP Forums Archive
inputtext error - 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: inputtext error (/showthread.php?tid=339850)



inputtext error - MathijsS - 05.05.2012

Hi all,
I'm new with the inputtext dialog,
I writed this:

The command:
Код:
ShowPlayerDialog(playerid, SERVER_TIME, DIALOG_STYLE_INPUT, "Tijd", "Voer een geldige tijd in (Bv. 07,12,18,21)", "Kies", "");
The result:
Код:
else if(dialogid==SERVER_TIME && response==1)
	{
		if(response)
		{
        	SetWorldTime(inputtext);
		    return 1;
		}
	}
The problem:
Код:
error 035: argument type mismatch (argument 1)
I've put the result onder 'OnDialogRespons'
Why is this error?

Thank you, MathijsS


Re: inputtext error - Kaczmi - 05.05.2012

pawn Код:
SetWorldTime(strval(inputtext));



Re: inputtext error - MathijsS - 05.05.2012

Tnx man