Jump to content

viji

Membru
  • Posts

    29
  • Joined

  • Last visited

Posts posted by viji

  1. mentionez ca dupa ce dau /work pe joc primesc erorile astea in consola

    [debug] Run time error 4: "Array index out of bounds"
    [debug]  Attempted to read/write array element at index 65535 in array of size 2000
    [debug] AMX backtrace:
    [debug] #0 003226c0 in CreateVehicleEx (modelid=0, Float:x=262.59055, Float:y=1454.04639, Float:z=10.58594, Float:angle=0.00000, color1=-1, color2=-1, respawn_delay=-1, clanson=0) at gameep.pwn:30474
    [debug] #1 00289f54 in public @_yCstartwork (playerid=0, params[]=@028e21ec "", help=0) at gameep.pwn:23138
    [debug] #2 002874a8 in public @yC_startwork (0, 42869228, 0, 0)  at gameep.pwn:22967
    [debug] #3 native CallRemoteFunction () in samp-server.exe
    [debug] #4 00040cd8 in Command_Process (playerid=0, cmdtext[]=@028e21d4 "/work", help=0) at C:\Users\alexo\Desktop\gameep\compiler\include\YSI\y_commands.inc:2503
    [debug] #5 00040318 in ?? (0, 42869204) at C:\Users\alexo\Desktop\gameep\compiler\include\YSI\y_commands.inc:2297
    [debug] #6 0002fe70 in public OnPlayerCommandText (playerid=0, cmdtext[]=@028e21d4 "/work") at C:\Users\alexo\Desktop\gameep\compiler\include\YSI\y_hooks/impl.inc:946

  2. Salut, am create un job exact ca in video-ul de mai jos si intampin niste probleme. ID urile la job uri se fac din database, am creat acolo job ul, am facut cp uri pentru joc iar cand intru pe server si dau jobs, nu il gasesc, merge sa dau work, imi pune cp urile dar nu il gasesc in /jobs si nici nu imi da spawn la car cand dau work, doar imi pune cp urile

     

     

  3. hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
        if(SpecialQuest[playerid]) {
            if(newkeys == KEY_YES) {
                if(IsPlayerInAnyVehicle(playerid))
                return 1;
                
                new
                    Float: x, Float: y, Float: z;

                GetPlayerObjectPos(playerid, quest_objects, x, y, z);

                if(!PlayerToPoint(3.0, playerid, x, y, z))
                    return 1;

                PlayerInfo[playerid][quest_objects] ++;
                UpdateVar(playerid, "quest_objects", PlayerInfo[playerid][quest_objects]);

                RemovePlayerMapIcon(playerid, 50);
                DestroyPlayerObject(playerid, questObject[playerid]);

                if(CheckObjects(playerid) == QUEST_OBJECTS) {

                    DestroyVehicle(questVehicle[playerid]);
        
                    questVehicle[playerid] = 0;
                    SpecialQuest[playerid] = 0;

                    gString[0] = EOS;
                    format(gString, sizeof(gString), "(( Info: %s a terminat Quest-ul Special si a primit un premiu!))", GetName(playerid));
                    SendClientMessageToAll(COLOR_CLIENT, gString);

                    new
                        rand_money = 20000 + random(10000),
                        rand_rp = 3 + random(3),
                        rand_pp = 3 + random(3);

                    GivePlayerMoney(playerid, rand_money);
                    PlayerInfo[playerid][pExp] += rand_rp;
                    PlayerInfo[playerid][pPremiumPoints] += rand_pp;

                    Update(playerid, pCashx);
                    Update(playerid, pRP);
                    Update(playerid, pPremiumPointsx);


                    gString[0] = EOS;
                    format(gString, sizeof(gString), "Felicitari! Ai primit: $%s, %d respect points si %d puncte premium.", FormatNumber(rand_money), rand_rp, rand_pp);
                    SCM(playerid, COLOR_YELLOW, gString);                
                }
                else set_quest_point(playerid);
            }
        }
        return 1;
    }

  4. salut, am facut un special quest exact ca in videoclip-ul lui edison. Iar cand apas tasta y sa collectezi giftul nu merge, nu se intampla nimic

    am pus in gm

    hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
        if(SpecialQuest[playerid]) {
            if(newkeys & KEY_YES) {

     

     

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