27.12.2012, 22:22
Okay, I have a dialog
'ShowPlayerDialog(playerid, DIALOG_CARTRUNKDEPOSIT, DIALOG_STYLE_INPUT, "[ VEHICLE TRUNK ]", "Enter the weapon you wish to deposit into the trunk.", "Deposit", "Close");'
How can I make it check if the weapon name they enter is valid on the response?
Like if I enter: 'This isn't a gun!' it will say Invalid gun name
And then if I type 'Desert Eagle' it will succeed and say i deposited it(I can do the deposit bit)
'ShowPlayerDialog(playerid, DIALOG_CARTRUNKDEPOSIT, DIALOG_STYLE_INPUT, "[ VEHICLE TRUNK ]", "Enter the weapon you wish to deposit into the trunk.", "Deposit", "Close");'
How can I make it check if the weapon name they enter is valid on the response?
Like if I enter: 'This isn't a gun!' it will say Invalid gun name
And then if I type 'Desert Eagle' it will succeed and say i deposited it(I can do the deposit bit)