percent symol crash server
#9

with this work incorrectly.

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;
	}
need check all inputtext
Reply


Messages In This Thread
percent symol crash server - by PawnNewCommer - 24.06.2011, 21:30
Re: percent symol crash server - by linuxthefish - 24.06.2011, 21:44
Re: percent symol crash server - by PawnNewCommer - 24.06.2011, 21:51
Re: percent symol crash server - by Calgon - 24.06.2011, 22:50
Re: percent symol crash server - by PawnNewCommer - 25.06.2011, 08:00
Re: percent symol crash server - by PawnNewCommer - 25.06.2011, 09:22
Re: percent symol crash server - by PawnNewCommer - 25.06.2011, 11:37
Re: percent symol crash server - by Calgon - 25.06.2011, 11:40
Re: percent symol crash server - by PawnNewCommer - 25.06.2011, 12:04
Re: percent symol crash server - by Calgon - 25.06.2011, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)