Jump to content
  • 0

Question

Posted (edited)

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

8 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
  • 0
Posted (edited)

Nu e chiar cum imi doream... Tot asa cu dialog vreau sa fie doar sa dispara "Factiuni" de acolo...

 

Uite... Eu vreau sa fie ceva de genu...

rr0hBMA.png

Edited by euionut
  • 0
Posted (edited)

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
  • 0
Posted

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

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.