Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Problema intalnita (descriere):Problema care o am eu nu este una grava dar , din cate am incercat eu sa schimb nu mi-a iesit, ea este la comanda /factions vreau sa arate asa ex:[15/50]Los Santos police departament am incercat sa inlocuiesc %s\n%s [%d/%d] adica sa fie asa  [%d/%d] %s\n%s si nu a mers dupa am incercat sa schimb  szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]); si le-am facut asa members, groupVariables[xf][gSlots] ,szMessage, groupVariables[xf][gGroupName] , tot nu a mers 
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:factions(playerid, params[])
{
    new members;
    format(szMessage, sizeof(szMessage), "Factions:");
    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\n%s [%d/%d]", szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]);
        }
    }
    ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Server: Factions", szMessage, "Select", "Cancel");
    SelFaction[playerid] = 0;
    return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

text.gif

SKIPE : EDUARD.SENNOW

3 answers to this question

Recommended Posts

  • 0
Posted
format(szMessage, sizeof(szMessage),"%s\n[%d/%d] %s ", szMessage, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);

 

Incearca asa!

  • Upvote 1
  • 0
  • 0
Posted
format(szMessage, sizeof(szMessage),"%s\n[%d/%d] %s ", szMessage, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);

 

Incearca asa!

Multumesc a mers asa

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.