17.08.2015, 14:24
Код:
//========================================[CMD:FRIENDS]========================================================// CMD:friends(playerid, params[]) { new query[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(query, sizeof(query), "SELECT * FROM `friendsdb` WHERE `UserDBID` = %i", PlayerInfo[playerid][pDBID]); mysql_query_callback(playerid, query, "OnPlayerRequestFriends", REQUEST_FRIEND_THREAD); return 1; }
https://sampwiki.blast.hk/wiki/MySQL#mysql_query_callback