08.02.2016, 21:41
Should be simple enough if you fetch it as string directly from MySQL using GROUP_CONCAT(). This does exactly what you want and you don't need to process it any further in Pawn.
And while we're at it, this one may be useful to list all the current tables in your database:
PHP код:
SELECT Name, GROUP_CONCAT(Reason SEPARATOR ', ') AS Crimes FROM yourtable WHERE Name = 'Avril' GROUP BY Name
PHP код:
SELECT TABLE_SCHEMA, GROUP_CONCAT(TABLE_NAME SEPARATOR ', ') AS tables FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'samp-server' GROUP BY TABLE_SCHEMA