Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:actorinfo(playerid, params[])
- {
- new string[600], Name[24], aID;
- string = "";
- mysql_format(MySQL, mquery, 128, "SELECT * FROM `"TABLE_ACTORS"` WHERE `aID` = '%i'", ActorsInfo[i][aID]);
- int Cache:result = mysql_query(MySQL, mquery, true);
- if(!cache_num_rows()) return SendClientMessage(playerid, -1, "Нет актеров!");
- for(int i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_index_int(i, 0, aName);
- cache_get_value_index_int(i, 2, aID);
- format(string, sizeof(string), "%sName: %s ID: %d\n", string, aName, aID);
- }
- ShowPlayerDialog(playerid, 0, 0, "NPC Актёры", string, "Мне пора", "");
- cache_delete(result);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement