Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 0:
- {
- if(!strlen(factionInfo[arr][fType1]))
- {
- access = 0;
- }
- }
- //
- if(access == 0)
- {
- new
- listing[60],
- acc[10],
- nb = 0;
- for(new i; i < sizeof(ScriptFactionInfo); i++)
- {
- format(acc, sizeof(acc), "%s\n", ScriptFactionInfo[i][scriptnom]);
- strcat(listing, acc);
- MenuItems[playerid][nb] = i;
- nb++;
- }
- ListitemDialog[playerid] = listitem;
- ShowPlayerDialog(playerid, DIALOG_FSCRIPT+1, DIALOG_STYLE_LIST, "Ajouter un script", listing, "Sélectionner", "Fermer");
- }
- else
- {
- ListitemDialog[playerid] = listitem;
- ShowPlayerDialog(playerid, DIALOG_SCRIPT-1, DIALOG_STYLE_MSGBOX, "Retrait de script", "T'es sur ?", "Oui", "X");
- }
- //
- if(dialogid == DIALOG_SCRIPT)
- {
- if(response)
- {
- new arr = FactionDialog[playerid];
- if(arr > -1 && ListitemDialog[playerid] > -1)
- {
- switch(ListitemDialog[playerid])
- {
- case 0:
- {
- format(FactionInfo[arr][fPerm1], 64, "");
- format(query, sizeof(query), "UPDATE `factions` SET Perm1='%s' WHERE Fid=%d", FactionInfo[arr][fPerm1], FactionInfo[arr][fSQL]);
- }
- }
- SendClientMessage(playerid, -1, "Script retiré.");
- ListitemDialog[playerid] = -1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement