Quote:
Originally Posted by v1k1nG
PHP код:
if(sscanf(params, "s[80]",reason)) return SendClientMessage(playerid,-1,""chat" /(re)port [Reason]");
You need to specify the id to report:
PHP код:
new reportid; // Define that now before using sscanf
if(sscanf(params, "ds[80]",reportid, reason)) return SendClientMessage(playerid,-1,""chat" /(re)port [ID] [Reason]");
And
PHP код:
reportid = cache_get_field_content_int(playerid, "ID");
That ID doesn't mean (I guess) PLAYERID, but the account id saved in the database.
|
I mean, ID as the ID Column in the MYSQL.
Not the ID as the TargetID