Dialogs / question improved
#8

Thank you both! I have other question


PHP код:
CMD:acceptreport(playeridparams[])
{
    if(
pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,-1,""COL_RED"Not Admin!");
    new 
str[128], Cache:delreprepid;
    if(
sscanf(params"i"repid)) return SendClientMessage(playerid, -1"Usage: /acceptreport [Report ID]");
    
mysql_format(handlestrsizeof(str), "SELECT * FROM `reportlog` WHERE `ID` = '%d'"repid);
    
delrep mysql_query(handlestrtrue);
    new 
count cache_num_rows();
    if(
count 0)
    {
    
mysql_format(handlestrsizeof(str), "DELETE FROM `reportlog` WHERE `ID` = '%d'"repid);
    
mysql_query(handlestrfalse);
    
format(strsizeof(str), "You have accepted the report ID: [#%d]"repid);
    
SendClientMessage(playeridCOLOR_YELLOWstr);
    }
    else return 
SendClientMessage(playeridCOLOR_YELLOW"Report ID not valide!");
    
cache_delete(delrep);
    return 
1;

How can I:
  • Get the Username of the ID? ex
    PHP код:
    You have accepted the report ID: %d  from user: %
  • How can I SendClientMessage to targetid? (to the username who reported, doesn't matter if he is online or offline)
Reply


Messages In This Thread
Dialogs / question improved - by Zeus666 - 21.10.2018, 16:48
Re: Dialogs - by ReD_HunTeR - 21.10.2018, 17:02
Re: Dialogs / question improved - by Zeus666 - 21.10.2018, 17:13
Re: Dialogs / question improved - by ReD_HunTeR - 21.10.2018, 17:42
Re: Dialogs / question improved - by Zeus666 - 21.10.2018, 17:49
Re: Dialogs / question improved - by ReD_HunTeR - 21.10.2018, 18:26
Re: Dialogs / question improved - by Chyakka - 21.10.2018, 18:34
Re: Dialogs / question improved - by Zeus666 - 21.10.2018, 19:03
Re: Dialogs / question improved - by Chyakka - 21.10.2018, 20:53
Re: Dialogs / question improved - by Zeus666 - 21.10.2018, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)