SA-MP Forums Archive
stock DisplayCrimes help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: stock DisplayCrimes help (/showthread.php?tid=466259)



stock DisplayCrimes help - DamonD - 26.09.2013

I am working on my mdc for my server... Its advanced and like NGG it should show crimes. I have gotten the stock DisplayCrimes from a source, but its in MySQL, and not .ini. The problem is my server is Y_INI based, rather than mysql....

Here is the stock which is in mysql... Basically I need it converted to work with INI/Y_INI.

Код:
stock DisplayCrimes(playerid, suspectid)
{
    new query[128];
    format(query, sizeof(query), "SELECT issuer, crime, active FROM `mdc` WHERE id=%d ORDER BY `time` AND `active` DESC LIMIT 12", GetPlayerSQLId(suspectid));
    mysql_function_query(MainPipeline, query, true, "MDCQueryFinish", "ii", playerid, suspectid);
	return 1;
}
I hope you can do this for me. I'll give you some rep.


Re: stock DisplayCrimes help - Voxel - 27.09.2013

Wish i could help but ... :\ i really dont know how to do this