Jump to content

qSorin_

Membru
  • Posts

    422
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by qSorin_

  1. Acum 1 minut, Waller669 a spus:

    aici codul 

    CMD:rentcar(playerid,params[]){

        if(!PlayerToPoint(10.0, playerid,542.3743,-1282.0509,17.2422)) return 1;
                 if(RentVehicle[playerid] != 0) return SCM(playerid,-1,"Ai deja un vehicul inchiriat");

                 ShowPlayerDialog(playerid, DIALOG_RENT, DIALOG_STYLE_LIST, "Rent Car","Infernus\nSultan\nCheetah\nBuffalo\nBanshee\nVoodo" , "Select","Cancel");


    return 1;

    }

     

    Ai zis cand dai pe masina iti pica sv nu cand dai /rentcar iti pica, deci am nevoie doar de DIALOG_RENT.

  2. Acum 22 minute, Jokerboy a spus:

    Salut, introdusem in PAWNO la public OnPlayerConnect cod-ul asta. SendClientMessage(playerid, -1, "Bine ai venit pe server, %s"); si dupa am dat Compilare.

    Cand dau pe samp-server si intru pe server. Se da restart automat si samp-server dispare.

    La fel, facusem:

    #define SCM SendClientMessage

    si dupa am introdus SCM(playerid, -1, "Bine ai venit pe server, %s");

    Si iar mi s-a intamplat. Imi poate explica ce as putea face?

    Pai nu poti trimiti un mesaj formatat deja cu SendClientMessage

    foloseste asa

    new string[64];
    format(string, sizeof string, "Bine ai venit pe server, %s",GetName(playerid));
    SendClientMessage(playerid, -1, string);

     

    sau daca folosesti y_va fa asa.
    va_SendClientMessage(playerid, -1, "Bine ai venit pe server, %s",GetName(playerid));

    Da un +1 te rog :D 

    • Like 1
  3. Chiar acum, cristi111 a spus:

    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
     

    Da-mi add pe discord qSorin#8855

    • Upvote 1
  4. Acum 4 minute, cristi111 a spus:

    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

    La functia GetFactionMembers vezi ca ai limita pe 15.

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