Help with pm command.
#1

I don't have errors, but it's not working.
Help!

CMDm(playerid, params[])
{
new id;
new message[600], str[1000];
new name[MAX_PLAYER_NAME];
new tname[MAX_PLAYER_NAME];
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "ERROR:This player isn't in game.");
if(sscanf(params, "us", id, message)) return SendClientMessage(playerid, -1 , "Server: Usage, /pm [id] [message]");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, tname, sizeof(tname));
format(Jstring, sizeof(Jstring), "Server: You had sent a private message to %s(%d): %s ", tname , id , message);
format(str, sizeof(str), "%s(%d) had sent you a private message: %s ", name , playerid, message);
SendClientMessage(id, -1, Jstring);
SendClientMessage(playerid, -1 , str);
return 1;
}
Reply


Messages In This Thread
Help with pm command. - by ZToPMaN - 25.02.2016, 19:26
Re: Help with pm command. - by EiresJason - 25.02.2016, 19:57
Re: Help with pm command. - by ZToPMaN - 25.02.2016, 22:22
Re: Help with pm command. - by lulo356 - 25.02.2016, 22:30
Re: Help with pm command. - by ZToPMaN - 25.02.2016, 22:44
Re: Help with pm command. - by Crystallize - 25.02.2016, 23:15
Re: Help with pm command. - by ZToPMaN - 26.02.2016, 13:02

Forum Jump:


Users browsing this thread: 2 Guest(s)