How to do this? (MySQL query)
#6

Quote:
Originally Posted by _rAped
Посмотреть сообщение
Yea but this will get all the fields independent of wether they are set to 1 or not.
What he said.

Okei so I basicly made it work when printing to the server, but it won't print as a SendClientMessage()
pawn Код:
mysql_free_result();
            mysql_query("SELECT column_name FROM information_schema.columns WHERE table_name = 'perks'"); mysql_store_result();
            new commandstring[250], helpstring[256];
            helpstring = "| Admin {ACACAC}          ";
            while(mysql_fetch_row(commandstring))
            {
                strins(helpstring, ", ", strlen(helpstring));
                strins(helpstring, commandstring, strlen(helpstring));
            }
            SendClientMessage(playerid, COLOR_WHITE, helpstring);
            printf(helpstring);
            mysql_free_result();
Could it be the string being too small? How do I split it up in case? (Dynamicly split it up, so it will do it automaticly)
Reply


Messages In This Thread
How to do this? (MySQL query) - by hanzen - 03.01.2011, 15:27
Re: How to do this? (MySQL query) - by JaTochNietDan - 03.01.2011, 15:33
Re: How to do this? (MySQL query) - by hanzen - 03.01.2011, 15:34
Re: How to do this? (MySQL query) - by JaTochNietDan - 03.01.2011, 15:37
Re: How to do this? (MySQL query) - by _rAped - 03.01.2011, 15:39
_rAped - by hanzen - 03.01.2011, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)