Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:actorinfo(playerid, params[])
- {
- new string[600], Name[24];
- string = "";
- new Cache:result = mysql_query(MySQL, "select `aName` from `actors` where");
- new actors = cache_num_rows(MySQL);
- if(actors == 0) return SendClientMessage(playerid, -1, "Нет актеров!");
- for(new i; i < actors; i ++)
- {
- cache_get_value_index_int(i, 0, Name, MySQL);
- format(string, sizeof(string), "%sName: %s ID: %d\n", string, Name, i);
- }
- cache_delete(result);
- ShowPlayerDialog(playerid, 0, 0, "Все актеры на сервере", string, "Ок", "");
- return true;
- }
- new actors = cache_num_rows(MySQL); // 1 строка
- cache_get_value_index_int(i, 0, Name, MySQL); // 2 строка
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement