28.07.2010, 16:49
On a dialog, How can i detect if a player pressed "cancel" ? I want it so, if a player pressed cancel, the dialog closes (which it does) but i want a message to appear for them too. How can i do that?
This is part of my dialog:
This is part of my dialog:
pawn Код:
if(dialogid==WEAPONDEALER_DIALOG) {
if(response) {
ShowPlayerDialog(playerid,WEAPONDEALER_DIALOG,2,"Weapon Dealers List","Silenced 9mm\t\t $2500\nTec9\t\t\t $1000\nS/O Shotgun\t\t $3500\nSniper Rifle\t\t $15000\nAK47\t\t\t $8000\nArmour\t\t\t $500\n3 Blocks Of C4\t\t $3500\nParachute\t\t $10000\nM4\t\t\t $1000\nRifle\t\t\t $7000\nDesert Eagle\t\t $5000","Buy","Cancel");