Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward ChoixPersonnage(playerid);
- public ChoixPersonnage(playerid)
- {
- new rows,
- fields,
- string[256],
- count,
- name[64];
- cache_get_data(rows, fields);
- new id_char = cache_get_field_content_int(0, "id");
- if(rows)
- {
- for(new i; i < rows; i++)
- {
- cache_get_field_content(i, "username", name);
- format(string, sizeof(string),"Personnage: {FFFFFF}%s", name);
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "%s\n", name);
- ShowPlayerDialog(playerid, DIALOG_CHOIX_PERSO, DIALOG_STYLE_LIST, "Choix de votre personnage", string, "Valider", "Quitter");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ADMIN, "Erreur: Votre personnage n'est pas activé !");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment