https://open.mp logo
help me pls ```c YCMD:familias(playerid, params[]...
# pawn-help
s
help me pls
Copy code
c
YCMD:familias(playerid, params[], help){
    if(help)
        return Dialog_Show(playerid, DIALOG_STYLE_MSGBOX, "{FFFFFF}Informação:", "Este comando permite voce ver as familias do servidor.", "Ok");
    AddDialogListitem(playerid, "ID\tNome\tLider\tStatus");
    for(new FamilyID = 1; FamilyID < MAX_FAMILYS; FamilyID++){
        AddDialogListitem(playerid, "{00BFFF}(%i)\t{FFFFFF}%s\t{00BFFF}%s\t{FFFFFF}%s", FamilyID, strlen(GetFamilyName(FamilyID)) < 1 ? ("Undefined") : (GetFamilyName(FamilyID)), strlen(GetOwnerFamily(FamilyID)) < 1 ? ("Undefined") : (GetOwnerFamily(FamilyID)), IsPlayerOffline(GetOwnerFamily(FamilyID)) ? ("Offline") : ("Online"));
    }
    ShowPlayerDialogPages(playerid, "FamilyDialog", DIALOG_STYLE_TABLIST_HEADERS, "{00BFFF}Familias:", "Ok", "Ok", 30);
    return 1;
}

07:59:00] Run time error 8: "Heap underflow"
[07:59:00]  Heap pointer (HEA) is 0x3668D608, heap bottom (HLW) is 0x3668D6BC
[07:59:00] AMX backtrace:
[07:59:00] #0 00000000 in public OnPlayerCommandText (playerid=0, cmdtext[]=@3668d6bc "/familias", 0)
[07:59:00] Run time error 7: "Stack underflow"
[07:59:00]  Stack pointer (STK) is 0x366916BC, stack top (STP) is 0x366916B8
[07:59:00] Run time error 7: "Stack underflow"
[07:59:00]  Stack pointer (STK) is 0x366916BC, stack top (STP) is 0x366916B8
[07:59:00] Run time error 5: "Invalid memory access"