Help Crash cmd [+REP]
#2

Client crash? I don't see anything that could cause that and I doubt something in GetFactionMembers would do as well.

Anyway, this can be improved with a loop:
PHP код:
ShowFactions(playerid)
{
    new 
stringz2[2400];
    for (new 
1!= 15; ++i)
    {
        
format(stringz2sizeof(stringz2),"%s{FFFFFF}[%d/%d] %s %s\n"stringz2GetFactionMembers(i), DynamicFactions[i][fMaxMembers], DynamicFactions[i][fName], (DynamicFactions[i][fApplication] > 0) ? ("{00FF00}[applications online]") : ("{FFFFFF}[{FF0000}applications offline{FFFFFF}]"));
    }
    
ShowPlayerDialog(playeridDIALOG_FACTIONSDIALOG_STYLE_LIST,"Factions"stringz2"Select""Cancel");
    return 
1;

If the crash has anything to do with the server, load crashdetect plugin.
Reply


Messages In This Thread
Help Crash cmd [+REP] - by KingPersona - 16.05.2015, 10:33
Re: Help Crash cmd [+REP] - by Konstantinos - 16.05.2015, 10:43
Re: Help Crash cmd [+REP] - by KingPersona - 16.05.2015, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)