Advertisement
Guest User

faccccccccccccc

a guest
Apr 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.06 KB | None | 0 0
  1. case 4500:
  2.         {
  3.             if(!response)
  4.             {
  5.                 hidePlayerDialog(playerid);
  6.             }
  7.             else
  8.             {
  9.                 SelFaction[playerid] = listitem+1;
  10.                 if(SelFaction[playerid] >= 7) SelFaction[playerid] =SelFaction[playerid] SelFaction[playerid]f+1;
  11.  
  12.                 new lead[MAX_PLAYER_NAME], members;
  13.                 format(lead, MAX_PLAYER_NAME,"None");
  14.                 new query[500];
  15.                 new stringy[256];
  16.                 mysql_format(handle, stringy, 256, "SELECT * FROM `playeraccounts` WHERE  `playerGroup` = '%d' AND `playerGroupRank` = '7'", listitem);
  17.                 new Cache: resultz = mysql_query (handle, stringy);
  18.  
  19.                 if(cache_get_row_count() != 0)
  20.                 {
  21.                     for ( new i, j = cache_get_row_count ( ); i != j; ++i )
  22.                     {
  23.                         cache_get_field_content(i, "playerName", result), format(lead, MAX_PLAYER_NAME, result);
  24.                     }
  25.                 }
  26.                 cache_delete(resultz);
  27.                 new stringy2[256];
  28.                 mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE  `playerGroup` = '%d'", SelFaction[playerid]);
  29.                 new Cache: resultx = mysql_query (handle, stringy2);
  30.                 format(query, sizeof(query),"SELECT * FROM playeraccounts WHERE playerGroup = %d", SelFaction[playerid]);
  31.                 members = cache_get_row_count();
  32.                 cache_delete(resultx);
  33.                 new szDialogText[256];
  34.                 new on = 0;
  35.                 foreach(Player, t)
  36.                 {
  37.                     if(PlayerData[t][pGroup] == SelFaction[playerid])
  38.                     {
  39.                         on++;
  40.                     }
  41.                 }
  42.                 new id = GetPlayerID(lead);
  43.                 if(id != INVALID_PLAYER_ID)
  44.                 {
  45.                     format(szDialogText,256,"Group info:\n\nGroup name: %s\nID: %i\nMembers: %d/%d\nMembers online: %d\nLeader: %s (online)",groupVariables[SelFaction[playerid]][gGroupName],SelFaction[playerid],members,groupVariables[SelFaction[playerid]][gSlots],on,lead);
  46.                 }
  47.                 else
  48.                 {
  49.                     format(szDialogText,256,"Group info:\n\nGroup name: %s\nID: %i\nMembers: %d/10\nMembers online: %d\nLeader: %s (offline)",groupVariables[SelFaction[playerid]][gGroupName],SelFaction[playerid],members,on,lead);
  50.                 }
  51.                 ShowPlayerDialog(playerid, 4600,DIALOG_STYLE_MSGBOX,"Group Info", szDialogText,"Find HQ", "Cancel");
  52.             }
  53.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement