Jump to content
  • 0

Ajutor comanda /factiuni


euionut

Question

Problema intalnita (descriere): La comanda /factiuni am o problema... Problema este ca apare in lista de dialog "Factiuni" si nu stiu cum sa fac sa dispara... Poze mai jos
Ero(area / rile) / warning-(ul / urile): Nici una
Liniile de cod / sursa / script-ul(obligatoriu): 


CMD:factiuni(playerid, params[])
{
   new members;
   for(new xf = 0; xf < MAX_GROUPS; xf++)
   {
      if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
     {
            new stringy2[256];
        mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE  `playerGroup` = '%d'", xf);
        new Cache: resultx = mysql_query (handle, stringy2);
        members = cache_get_row_count();
        cache_delete(resultx);
        format(szMessage, sizeof(szMessage),"%sn[%d/%d] %s", szMessage, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);
        }
    }
    ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"%s", szMessage, "Select", "Cancel", szMessage);
    SelFaction[playerid] = 0;
    return 1;
}

Imagini / Video (optional): 

MF3pdvG.png

Ati incercat sa rezolvati singur?: Da

Edited by euionut
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Inlocuieste comanda cu asta, si-mi spui rezultatul.

CMD:factiuni(playerid, params[])
{
new members, tstring[550];
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
{
 new stringy2[256];
mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE  `playerGroup` = '%d'", xf);
new Cache: resultx = mysql_query (handle, stringy2);
members = cache_get_row_count();
cache_delete(resultx);
format(tstring, sizeof(tstring),"%s[%d/%d] %sn", tstring, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);
}
}
ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Factiuni", tstring, "Select", "Cancel");
SelFaction[playerid] = 0;
return 1;
}
  • Upvote 1

Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP

Link to comment
Share on other sites

  • 0
  • 0

Incearca:

CMD:factiuni(playerid, params[])
{
new members;
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
{
 new stringy2[256];
mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE  `playerGroup` = '%d'", xf);
new Cache: resultx = mysql_query (handle, stringy2);
members = cache_get_row_count();
cache_delete(resultx);
format(szMessage, sizeof(szMessage),"%s[%d/%d] %s", szMessage, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);
}
}
ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST, "Factiuni", szMessage, "Select", "Cancel");
SelFaction[playerid] = 0;
return 1;
}
Edited by #Chase
Link to comment
Share on other sites

  • 0

Incearca asa:

CMD:factiuni(playerid, params[])
{
new members;
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
{
 new stringy2[256];
mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE  `playerGroup` = '%d'", xf);
new Cache: resultx = mysql_query (handle, stringy2);
members = cache_get_row_count();
cache_delete(resultx);
format(szMessage, sizeof(szMessage),"%s[%d/%d] %sn", szMessage, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);
}
}
ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Factiuni", szMessage, "Select", "Cancel");
SelFaction[playerid] = 0;
return 1;
}

Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.