Dialog bug :/
#1

I finaly make dialog PM without errors but now is bugged

Код:
if(!strcmp(cmdtext, "/pm", true))
  {
    ShowPlayerDialog(playerid,755,DIALOG_STYLE_INPUT,"Extreme Fun Server Privatna poruka","Upisi ID igraca kojem zelis poslati poruku:","Dalje","Odustani");
    return 1;
  }
Код:
new s1[94],s2[94],name[20];
  if(dialogid == 755)
  {
    ReceiverID[playerid] = strval(inputtext);
    ShowPlayerDialog(playerid,756,DIALOG_STYLE_INPUT,"Extreme Fun Server pivatna poruka","Napisi poruku koju zelis poslati:","Posalji","Odustani");
    return 1;
  }
  if(dialogid == 756)
  {
		GetPlayerName(playerid, name, sizeof(name));
		format(s1, sizeof(s1), "Primio si privatnu poruku od %s\n\n%s",name,inputtext);
		format(s2, sizeof(s2), "Nova privatna poruka %s (%d)",name,playerid);
		ShowPlayerDialog(ReceiverID[playerid],757,DIALOG_STYLE_MSGBOX,s2,s1,"Odgovori","Odustani");
    return 1;
  }
  if(dialogid == 757)
  {
		GetPlayerName(playerid, name, sizeof(name));
		format(s1, sizeof(s1), "Primio si privatnu poruku od %s\n\n%s",name,inputtext);
		format(s2, sizeof(s2), "Nova privatna poruka %s (%d)",name,playerid);
		ShowPlayerDialog(ReceiverID[playerid],757,DIALOG_STYLE_MSGBOX,s2,s1,"Odgovori","Odustani");
    return 1;
  }
  return 0;
}
The problem is when player type /pm and type message player who recrive message when he press Reply he cant type message :/ can anyone fix this plz
Reply
#2

bump
Reply
#3

You need to change the id from 757 to something else.
Reply
#4

You should put some name instead 757.And don't bump as 12 hours didn't pass yet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)