Jump to content

Problema /clans


IonutB

Recommended Posts

YCMD:clans(playerid, params[], help) {
    new szDialog[1024], szDialog2[4048], x;
    strcat(szDialog2, "#. Clan\tOwner\tMembers/Slots\tZones\n");
    for(new h = 0; h < MAX_CLANS; h++) {
        if(strlen(ClanInfo[h][clName]) > 0) {
            x++;
            format(szDialog, sizeof(szDialog), "%d. %s - %s{FFFFFF}\t%s\t%d/%d\t%d\n", x, ClanInfo[h][clName], ClanInfo[h][clTag], ClanInfo[h][clOwner], GetCMembers(h), ClanInfo[h][clSlots], GetClanTurfs(h));
            strcat(szDialog2, szDialog);
        }        
    }
    ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_TABLIST_HEADERS, "Clans:", szDialog2, "Select", "Cancel");
    return 1; 
}

Nu imi merge, comanda nu-s ce are 

[01:54:23] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[01:54:23] [debug]  Stack pointer (STK) is 0x3E796E8, heap pointer (HEA) is 0x3E7A708
[01:54:23] [debug] AMX backtrace:
[01:54:23] [debug] #0 0015e02c in public @yC_clans (... <4 arguments>)  at D:\Gamemode\gamemodes\GM.pwn:11686
[01:54:23] [debug] #1 native CallRemoteFunction () from samp03svr
[01:54:23] [debug] #2 0015e02c in public OnPlayerCommandText (playerid=0, cmdtext[]=@03e7a700 "", ... <2 arguments>) at D:\Gamemode\gamemodes\GM.pwn:11686

 

Edited by IonutB
Link to comment
Share on other sites

Acum 12 ore, IonutB a spus:

YCMD:clans(playerid, params[], help) {
    new szDialog[1024], szDialog2[4048], x;
    strcat(szDialog2, "#. Clan\tOwner\tMembers/Slots\tZones\n");
    for(new h = 0; h < MAX_CLANS; h++) {
        if(strlen(ClanInfo[h][clName]) > 0) {
            x++;
            format(szDialog, sizeof(szDialog), "%d. %s - %s{FFFFFF}\t%s\t%d/%d\t%d\n", x, ClanInfo[h][clName], ClanInfo[h][clTag], ClanInfo[h][clOwner], GetCMembers(h), ClanInfo[h][clSlots], GetClanTurfs(h));
            strcat(szDialog2, szDialog);
        }        
    }
    ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_TABLIST_HEADERS, "Clans:", szDialog2, "Select", "Cancel");
    return 1; 
}

Nu imi merge, comanda nu-s ce are 


[01:54:23] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[01:54:23] [debug]  Stack pointer (STK) is 0x3E796E8, heap pointer (HEA) is 0x3E7A708
[01:54:23] [debug] AMX backtrace:
[01:54:23] [debug] #0 0015e02c in public @yC_clans (... <4 arguments>)  at D:\Gamemode\gamemodes\GM.pwn:11686
[01:54:23] [debug] #1 native CallRemoteFunction () from samp03svr
[01:54:23] [debug] #2 0015e02c in public OnPlayerCommandText (playerid=0, cmdtext[]=@03e7a700 "", ... <2 arguments>) at D:\Gamemode\gamemodes\GM.pwn:11686

 

Ai szDialog2[4048], maxim de string este 1024

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.