12.02.2012, 14:59
Hello,I have problem with dialog.What i want to do is set game weather using dialog (DIALOG_STYLE_IMPUT)
Example: /weather,when shows dialog and player have to write weather ID.
Code:
Command:
Ondialog...:
It doesn't work,i don't know why.Maybe someone knows the problem?
P.S. I apologise for my bad english skills
Example: /weather,when shows dialog and player have to write weather ID.
Code:
Command:
Код:
COMMAND:weather(playerid, params[])
{
ShowPlayerDialog(playerid,WEATHER,DIALOG_STYLE_INPUT,"Weather","Write weather ID","Write","Cancel");
return 1;
}
Код:
if(dialogid == WEATHER)
{
if(response)
{
new Weather;
SetWeather(Weather);
}
return 1;
}
return 1;
}
P.S. I apologise for my bad english skills


