Need Help With Dialog InPut
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)