24.06.2011, 21:30
(
Последний раз редактировалось PawnNewCommer; 02.07.2011 в 12:57.
)
del pls
for(new iCh; iCh < strlen(cmdtext); iCh++) {
if(cmdtext[iCh] == '%')
cmdtext[iCh] = ' ';
}
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; }
for(new iCh; iCh < strlen(inputtext); iCh++) {
if(inputtext[iCh] == '%')
inputtext[iCh] = ' ';
}