25.06.2011, 12:04
with this work incorrectly.
this full my code of dialog:
need check all inputtext
this full my code of dialog:
Код:
if(dialogid==17) //send sms dialog { if(response) { new string[128]; new targetid=PhoneTargetID[playerid]; if(!strlen(inputtext)) { GetPlayerName(targetid, string, sizeof(string)); format(string, sizeof(string), " Name: %s (phone.: %d)\n\n\nWrite message:\n\n", string, PlayerInfo[targetid][pPnumber]); ShowPlayerDialog(playerid, 17, DIALOG_STYLE_INPUT, "Sending", string, "Send", "Cancel"); return 1; } if(inputtext[0]=='%') inputtext[0]=' '; { SendClientMessage(playerid,COLOR_ALLDEPT," error"); } format(string, sizeof(string), "/sms %d %s", PlayerInfo[targetid][pPnumber], inputtext); OnPlayerCommandText(playerid, string); } return 1; }