01.03.2014, 14:54
Your script is fucked up hahaha .. Let's try this !
Also give me what do you mean by : PlayerInfo[playerid][AcceptedReport] and PlayerInfo[playerid][Replys]
pawn Код:
CMD:reply(playerid,params[])
{
new string[128], message[128], id;
if(PlayerInfo[playerid][AcceptedReport] >= 1 || PlayerInfo[playerid][Replys] >= 1) // ( || ) I guess those should be ( &&) I don't know
{
if(sscanf(params,"us",id, message)) return SendClientMessage(playerid, red, "USAGE:{FFFFFF} /reply [playerid] [message]");
format(string, sizeof(string), "%s replies: %s", GetName(playerid), message);
SendClientMessage(id, yellow, string);
format(string, sizeof(string), "Reply sent to %s: %s", GetName(id), message);
SendClientMessage(playerid, yellow, string);
}
else return SendClientMessage(playerid, red, "ERROR: You don't have an active report or it still not accepted.");
return 1;
}
stock GetName(playerid)
{
new
pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}