05.04.2012, 15:33
(
Последний раз редактировалось doreto; 12.04.2012 в 12:32.
)
PROBLEM FIXED
format(Queryy,sizeof(Queryy),"SELECT `admin` FROM `playerdata` WHERE `username` LIKE '%s' LIMIT 1",PlayerName(playerid));
stock player_admin(playerid)
{
new Queryy[100];
format(Queryy,sizeof(Queryy),"SELECT `admin` FROM `playerdata` WHERE `username`='%s' LIMIT 1",PlayerName(playerid));
mysql_query(Queryy);
mysql_free_result();
return 1;
}
format(Queryy,sizeof(Queryy),"SELECT `admin` FROM `playerdata` WHERE `username` LIKE '%s' AND `admin` = 1 LIMIT 1",PlayerName(playerid));
[15:15:15] CMySQLHandler::Query(SELECT `admin` FROM `playerdata` WHERE `username` LIKE '[BG]PREDATOR' AND `admin` = 1 LIMIT 1) - Successfully executed. [15:15:15] >> mysql_store_result( Connection handle: 1 ) [15:15:15] CMySQLHandler::StoreResult() - Result was stored. [15:15:15] >> mysql_free_result( Connection handle: 1 ) [15:15:15] CMySQLHandler::FreeResult() - Result was successfully free'd. |