reply command
#2

Your script is fucked up hahaha .. Let's try this !

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;
}
Also give me what do you mean by : PlayerInfo[playerid][AcceptedReport] and PlayerInfo[playerid][Replys]
Reply


Messages In This Thread
reply command - by AhmedMohamed - 01.03.2014, 14:46
Re: reply command - by Golimad - 01.03.2014, 14:54
Re: reply command - by AhmedMohamed - 01.03.2014, 15:02
Re: reply command - by Golimad - 01.03.2014, 15:05
Re: reply command - by AhmedMohamed - 01.03.2014, 15:06
Re: reply command - by Golimad - 01.03.2014, 15:09
Re: reply command - by AhmedMohamed - 01.03.2014, 15:31
Re: reply command - by AhmedMohamed - 01.03.2014, 15:37
Re: reply command - by Golimad - 01.03.2014, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)