Jump to content

cristi111

Membru
  • Posts

    58
  • Joined

  • Last visited

Posts posted by cristi111

  1.   
    YCMD:factions(playerid, params[], help) {
        new szDialog[210], szDialog2[1700];
        strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
        for(new i = 1; i < 17; i++) {
            format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/17\t%s\n", i, ColorFaction, FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
            strcat(szDialog2, szDialog);
        }
        ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close");
        return true;
    }
    stock GetFactionStatus(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 1) format(szStatus, 256, "{FF0000}Inchise{FFFFFF}");
        else format(szStatus, 256, "{2FC914}Deschise{FFFFFF}");
        return szStatus;

  2. Am adaugat o factiune dar nu merge comanda /factions, habar nu am ce are, 

    Server log :

    9:39:28] [debug]  Accessing element at index 16 past array upper bound 15
    [19:39:28] [debug] AMX backtrace:
    [19:39:28] [debug] #0 0031d914 in GetFactionMembers (fid=16) at C:\burned\gamemodes\nzone.pwn:24065
    [19:39:28] [debug] #1 002c5798 in public @_yCfactions (playerid=0, params[]=@028c0234 "", help=0) at C:\burned\gamemodes\nzone.pwn:19931
    [19:39:28] [debug] #2 002c564c in public @yC_factions (... <4 arguments>)  at C:\burned\gamemodes\nzone.pwn:19927
    [19:39:28] [debug] #3 native CallRemoteFunction () from samp03svr
    [19:39:28] [debug] #4 00040b9c in Command_Process (playerid=0, cmdtext[]=@028c020c "/factions", help=0) at C:\burned\pawno\include\YSI\y_commands.inc:2503
    [19:39:28] [debug] #5 000401dc in ?? (... <2 arguments>) at C:\burned\pawno\include\YSI\y_commands.inc:2297
    [19:39:28] [debug] #6 0002fd34 in public OnPlayerCommandText (playerid=0, cmdtext[]=@028c020c "/factions") at C:\burned\pawno\include\YSI\y_hooks/impl.inc:946
    [19:44:30] QuitBot: Adminul CosminAirMaChinE left the game (Quit)

     

    Linia: 19931: format(szDialog, sizeof(szDialog), "%d. {%s}%s\t%s/17\n", i, ColorFaction, FactionName(i), GetFactionMembers(i));

    linia 19927:YCMD:factions(playerid, params[], help) {

    linia:24065:    if(FactionMembers[fid] >= 10) format(string, sizeof(string), "%d", FactionMembers[fid]);

    comanda factions.:YCMD:factions(playerid, params[], help) {
        new szDialog[210], szDialog2[1700];
        strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
        for(new i = 1; i < 17; i++) {
            format(szDialog, sizeof(szDialog), "%d. {%s}%s\t%s/17\n", i, ColorFaction, FactionName(i), GetFactionMembers(i));
            strcat(szDialog2, szDialog);
        }
        ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close");
        return 1;
    }
    stock GetFactionS}
    tatus(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 1) format(szStatus, sizeof(szStatus), "{FF0000}Inchise{FFFFFF}");
        else format(szStatus, sizeof(szStatus), "{2FC914}Deschise{FFFFFF}");
        return szStatus;
    }
    stock GetFactionStatus2(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 0) format(szStatus, sizeof(szStatus), "Inchise");
        else format(szStatus, sizeof(szStatus), "Deschise");
        return szStatus;
    }

     

     

    Va multumesc!

  3. 1 hour ago, Ph0eniX said:
    
    stock GetFactionStatus(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 1) format(szStatus, sizeof(szStatus), "{FF0000}Inchise{FFFFFF}");
        else format(szStatus, sizeof(szStatus), "{2FC914}Deschise{FFFFFF}");
        return szStatus;
    }
    stock GetFactionStatus2(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 0) format(szStatus, sizeof(szStatus), "Inchise");
        else format(szStatus, sizeof(szStatus), "Deschise");
        return szStatus;
    }

     

    osa verific daca merge :)
     

     

  4.  

    YCMD:factions(playerid, params[], help) {
        new szDialog[210], szDialog2[1700];
        strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
        for(new i = 1; i < 17; i++) {
            format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/17\t%s\n", i, ColorFaction, FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
            strcat(szDialog2, szDialog);
        }
        ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close");
        return true;
    }
    stock GetFactionStatus(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 1) format(szStatus, 256, "{FF0000}Inchise{FFFFFF}");
        else format(szStatus, 256, "{2FC914}Deschise{FFFFFF}");
        return szStatus;
    }
    stock GetFactionStatus2(fid) {
        new szStatus[180];
        if(DynamicFactions[fid][fApp] == 0) format(szStatus, 256, "Inchise");
        else format(szStatus, 256, "Deschise");
        return szStatus;
    }

  5. [02:20:47] [debug] #0 002c2764 in GetFactionStatus (fid=16) at C:\burned\gamemodes\nzone.pwn:19931
    [02:20:47] [debug] #1 002c2554 in public @_yCfactions (playerid=0, params[]=@028be7d4 "", help=0) at C:\burned\gamemodes\nzone.pwn:19923
    [02:20:47] [debug] #2 002c2408 in public @yC_factions (... <4 arguments>)  at C:\burned\gamemodes\nzone.pwn:19919
    din cauza accestor erori nu imi merge comanda /factions ma poate ajuta cineva?

  6. 3 minutes ago, zNx[] said:

    Baga Whirlpool.so/dll(so daca esti pe linux si dll pe localhost) la plugins in server.cfg.

    sunt pe linux dar nu merge imi da acceleas erori

    [02:57:56] [debug] Run time error 19: "File or function is not found"
    [02:57:56] [debug]  CAC_GetStatus
    [02:57:56] [debug] Run time error 19: "File or function is not found"
    [02:57:56] [debug]  CAC_GetStatus
    [02:57:56] Script[gamemodes/blacked.amx]: Run time error 19: "File or function is not found"
    [02:57:56] Number of vehicle models: 0
     

  7. salut, imi da server unknow

    accesta ie log

    [02:24:48] [debug] Run time error 19: "File or function is not found" 
    [02:24:48] [debug]  WP_Hash
    [02:24:48] [debug]  CAC_GetStatus
    [02:24:48] [debug] Run time error 19: "File or function is not found"
    [02:24:48] [debug]  WP_Hash
    [02:24:48] [debug]  CAC_GetStatus
    [02:24:48] Script[gamemodes/blacked.amx]: Run time error 19: "File or function is not found"
    [02:24:48] Number of vehicle models: 0
     

  8. 15 hours ago, [El.Capo] said:

    Da-mi add pe discord qSorin#8855

     

    15 hours ago, cristi111 said:

    03:09:17] [join] Cosmin has joined the server (0:213.233.85.131)
    [03:09:27] HelloBot: Admin Cosmin has just logged in.
    [03:09:29] [debug] Run time error 4: "Array index out of bounds"
    [03:09:29] [debug]  Accessing element at index 16 past array upper bound 15
    [03:09:29] [debug] AMX backtrace:
    [03:09:29] [debug] #0 0031eae0 in GetFactionMembers (fid=16) at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:24716
    [03:09:29] [debug] #1 002c80a8 in public @_yCfactions (playerid=0, params[]=@028cd16c "", help=0) at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:20617
    [03:09:29] [debug] #2 002c7f2c in public @yC_factions (... <4 arguments>)  at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:20613
    [03:09:29] [debug] #3 native CallRemoteFunction () from samp03svr
    [03:09:29] [debug] #4 0003ec20 in Command_Process (playerid=0, cmdtext[]=@028cd144 "/factions", help=0) at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_commands.inc:2503
    [03:09:29] [debug] #5 0003e260 in ?? (... <2 arguments>) at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_commands.inc:2297
    [03:09:29] [debug] #6 0002ddb8 in public OnPlayerCommandText (playerid=0, cmdtext[]=@028cd144 "/factions") at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_hooks/impl.inc:946
     

    Mersi mult +1

  9. 3 minutes ago, [El.Capo] said:

    Da.

    03:09:17] [join] Cosmin has joined the server (0:213.233.85.131)
    [03:09:27] HelloBot: Admin Cosmin has just logged in.
    [03:09:29] [debug] Run time error 4: "Array index out of bounds"
    [03:09:29] [debug]  Accessing element at index 16 past array upper bound 15
    [03:09:29] [debug] AMX backtrace:
    [03:09:29] [debug] #0 0031eae0 in GetFactionMembers (fid=16) at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:24716
    [03:09:29] [debug] #1 002c80a8 in public @_yCfactions (playerid=0, params[]=@028cd16c "", help=0) at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:20617
    [03:09:29] [debug] #2 002c7f2c in public @yC_factions (... <4 arguments>)  at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:20613
    [03:09:29] [debug] #3 native CallRemoteFunction () from samp03svr
    [03:09:29] [debug] #4 0003ec20 in Command_Process (playerid=0, cmdtext[]=@028cd144 "/factions", help=0) at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_commands.inc:2503
    [03:09:29] [debug] #5 0003e260 in ?? (... <2 arguments>) at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_commands.inc:2297
    [03:09:29] [debug] #6 0002ddb8 in public OnPlayerCommandText (playerid=0, cmdtext[]=@028cd144 "/factions") at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_hooks/impl.inc:946
     

  10. 6 minutes ago, [El.Capo] said:

    Ce primesti in server_log ?

    02:20:15] HelloBot: Admin Cosmin has just logged in.
    [02:20:20] [debug] Run time error 4: "Array index out of bounds"
    [02:20:20] [debug]  Accessing element at index 16 past array upper bound 15
    [02:20:20] [debug] AMX backtrace:
    [02:20:20] [debug] #0 0031ea70 in GetFactionMembers (fid=16) at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:24715
    [02:20:20] [debug] #1 002c80a8 in public @_yCfactions (playerid=0, params[]=@028cd16c "", help=0) at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:20617
    [02:20:20] [debug] #2 002c7f2c in public @yC_factions (... <4 arguments>)  at C:\Users\Cristi\Desktop\seny.gm\gamemodes\thanda.pwn:20613
    [02:20:20] [debug] #3 native CallRemoteFunction () from samp03svr
    [02:20:20] [debug] #4 0003ec20 in Command_Process (playerid=0, cmdtext[]=@028cd144 "/factions", help=0) at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_commands.inc:2503
    [02:20:20] [debug] #5 0003e260 in ?? (... <2 arguments>) at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_commands.inc:2297
    [02:20:20] [debug] #6 0002ddb8 in public OnPlayerCommandText (playerid=0, cmdtext[]=@028cd144 "/factions") at C:\Users\Cristi\Desktop\seny.gm\pawno\include\YSI\y_hooks/impl.inc:946

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