03.04.2013, 12:42
hello, this server command to change the 'now just me
On top of all:
then the command:
then I put this under OnDialogResponse:
but the server crashes, where am I wrong?
Tanks
On top of all:
Код:
#define MyTime 1008
Код:
CMD:hour(playerid,params[])
{
ShowPlayerDialog(playerid, MyTime, DIALOG_STYLE_INPUT, "{C3C3C3}Hour", "{FFFFFF}insert your hour", "Ok", "Cancel");
return 1;
}
Код:
if(dialogid == MyTime)
{
if ( response )
{
new Time;
if ( sscanf( inputtext, "d", Time ) )
Time = strval(inputtext);
{
SetPlayerTime(playerid, Time);
}
}
}
Tanks


