SA-MP Forums Archive
Need Help With Dialog InPut - 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: Need Help With Dialog InPut (/showthread.php?tid=618558)



Need Help With Dialog InPut - TYDS - 07.10.2016

How can i make when player typing some thing like "Hello" into the dialog that player will recive some thing like money


Re: Need Help With Dialog InPut - GoldenLion - 07.10.2016

Код:
if (!strcmp(inputtext, "Hello", true)) GivePlayerMoney(playerid, 1000);



Re: Need Help With Dialog InPut - Luicy. - 07.10.2016

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
	if(dialogid == YOUR DIALOG ID) {
		if(!strcmp("Hello", inputtext, false)) {
			GivePlayerMoney(playerid, 1337);
		}
	}
	return 1;
}