03.01.2011, 15:42
(
Последний раз редактировалось JaTochNietDan; 03.01.2011 в 16:31.
Причина: Double posting
)
Quote:
Yea but this will get all the fields independent of wether they are set to 1 or not.
|
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();