10.05.2013, 02:06
Basically.
CMD:blah(playerid,params[]){
I really don't want to put this into an ondialog response. Since I want to reuse the pincheck callback.
And the ondialogresponse just confirms the pin, returning 1 or 0 depending on the result.
CMD:blah(playerid,params[]){
PHP код:
if (ShowPlayerDialog(playerid, DIALOG_CHECKPIN, DIALOG_STYLE_INPUT,"Cipher","Please Enter your pin:","Confirm","") == 1){
//wait for DIALOG_CHECKPIN to return 1 or 0;
// do money stuff
}
else if ^0{
//return an error
}
}
return 1;
}
And the ondialogresponse just confirms the pin, returning 1 or 0 depending on the result.