Jump to content

Recommended Posts

Posted (edited)
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
Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.