20.03.2010, 14:51
I finaly make dialog PM without errors but now is bugged
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
Код:
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; }