Problem with dcmd_pm
#5

Код:
dcmd_pm(playerid, params[]) 
{
new str[128], id, string[168];
 if(sscanf(params, "us[128]", id, str)) return SendClientMessage(playerid, -1, "ERROR: /pm ID Message"); 
 format(string, sizeof(string), "PM to %i: %s", id, str); // %i will return the ID of the player     

SendClientMessage(playerid, -1, string); 

 format(string, sizeof(string), "PM from %i: %s", playerid, str);
SendClientMessage(id, -1, string); 
 return 1; 
}
Reply


Messages In This Thread
Problem with dcmd_pm - by sniperwars - 21.10.2011, 14:34
Re: Problem with dcmd_pm - by Max_Coldheart - 21.10.2011, 14:36
Re: Problem with dcmd_pm - by SmiT - 21.10.2011, 14:36
Re: Problem with dcmd_pm - by sniperwars - 21.10.2011, 14:39
Re: Problem with dcmd_pm - by Jason_Thunde - 21.10.2011, 15:58
Re: Problem with dcmd_pm - by Michael@Belgium - 21.10.2011, 17:33
Re: Problem with dcmd_pm - by sniperwars - 21.10.2011, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)