Advertisement
Sem_Loreann

Untitled

Apr 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. CMD:actorinfo(playerid, params[])
  2. {
  3. new string[600], Name[24], aID;
  4. string = "";
  5. mysql_format(MySQL, mquery, 128, "SELECT * FROM `"TABLE_ACTORS"` WHERE `aID` = '%i'", ActorsInfo[i][aID]);
  6. int Cache:result = mysql_query(MySQL, mquery, true);
  7. if(!cache_num_rows()) return SendClientMessage(playerid, -1, "Нет актеров!");
  8. for(int i = 0; i < cache_num_rows(); i++)
  9. {
  10. cache_get_value_index_int(i, 0, aName);
  11. cache_get_value_index_int(i, 2, aID);
  12. format(string, sizeof(string), "%sName: %s ID: %d\n", string, aName, aID);
  13. }
  14. ShowPlayerDialog(playerid, 0, 0, "NPC Актёры", string, "Мне пора", "");
  15. cache_delete(result);
  16. return true;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement