Jump to content

iPanter

Membru
  • Posts

    33
  • Joined

  • Last visited

Posts posted by iPanter

  1. function Timers() {
        new 
            string[180], szTD[600], anim,
            Float: ppHealth, Float: ppArmour,
            Float: x, Float: y, Float: z, Float: animpos[3], swinner[180];
            
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {

  2. Am facut asa:

                if(CrateTime[i] > 0) {
                    CrateTime[i] --;
                    new amount, rand;
                    if(CrateType[i] == 1) rand = random(30);
                    else rand = random(50);
                    switch(rand) {
                        case 0..15: {
                            amount = random(5) + 5;
                            if(CrateType[i] == 1) amount += 5;
                            format(string, sizeof(string), "Steep: %d/30~n~~y~%sx RP", 30-CrateTime[i], FormatNumber(amount));
                            PlayerTextDrawSetString(i, CrateTD[4], string);
                            for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]);
                            if(CrateTime[i] == 0) PlayerInfo[i][pExp] += amount, Update(i, pRP), SCM(i, COLOR_LGREEN, "Felicitari! Ai castigat RP-uri!");
                            for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]);
                        }
                        case 16..25: {
                            amount = random(50) + 100;
                            if(CrateType[i] == 1) amount += 100;
                            format(string, sizeof(string), "Steep: %d/30~n~~p~%s PremiumPoints", 30-CrateTime[i], FormatNumber(amount));
                            PlayerTextDrawSetString(i, CrateTD[4], string);
                            for(i = 0; i < 5; i++) PlayerTextDrawShow(i, CrateTD[i]);
                            if(CrateTime[i] == 0) PlayerInfo[i][pPremiumPoints] += amount, Update(i, pPremiumPoints), SCM(i, COLOR_LGREEN, "Felicitari! Ai castigat PremiumPoints!");
                            for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]);
                        }    
                        default: {
                            amount = random(1000000) + 500000;
                            if(CrateType[i] == 1) amount += 500000;                    
                            format(string, sizeof(string), "Steep: %d/30~n~~g~$%s", 30-CrateTime[i], FormatNumber(amount));
                            PlayerTextDrawSetString(i, CrateTD[4], string);
                            for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]);
                            if(CrateTime[i] == 0) GivePlayerCash(i, amount), Update(i, pCashx), SCM(i, COLOR_LGREEN, "Felicitari! Ai castigat bani!");
                            for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]);
                        }
                    }
                }

    si primesc eroarea asta:

     

    [debug] AMX backtrace:
    [debug] #0 0035e4fc in public Timers () at C:\Users\Andrei\Desktop\burned.ro\gamemodes\wa-rpg.pwn:31352
    [debug] Run time error 4: "Array index out of bounds"
    [debug]  Accessing element at index 1995 past array upper bound 1000

     

    Asta e linia: if(CrateTime > 0) {

  3. Nu vad ce e greu de inteles..

    Deci ala e sistem-ul din pastebin cu un alt textdraw.. Si eu vreau sa modific sistem-ul sa apara textdraw-ul ala de mai jos, atata tot. Nu stiu cum sa il pun in string si etc.

    Acum 14 minute, Dani3l.FTW a spus:

    Frumos Model.. frumoase pozele.. -_-

    fi drq mai explicit sa te putem ajuta si noi..

     

  4. Am rezolvat, se poate da T/C.

    Trebuia sters 

        if(SQL && mysql_errno(SQL) == 1)
        {
            printf("[MYSQL]: Connection to database was established!");
        }
        else
        {
            printf("[MYSQL]: Connection to database failed!");
            SendRconCommand("exit");
        }

  5. Salut, de ce primesc erorile astea in consola si imi da stop working? Am schimbat la include-uri si plugin-uri de mi s a facut rau si degeaba.. Am compilat si degeaba..

    Am instalat vcredist.

    // INCLUDES
    #include <a_samp>        
    #include <a_mysql>
    #include <streamer>        
    #include <playerzone>    
    #include <beaZone>
    #include <foreach>        
    #include <sscanf2>
    #include <zcmd>        
    #include <YSI\y_hooks>    
    #include <AutoAFK>     
    #include <mSelection>   
    #include <fly>
    #include <days>
    #include <a_http>
    #include <md5>
    #include <playerprogress>
    #include <posloot>
    #include <afkdetect>

    https://imgur.com/a/rNxlo6M

  6. Tot nu merge.

    Deci va explica sa intelegeti. 

    Server-ul porneste dupa aproximativ un minut dupa ce s-a terminat restartul si nu ma pot conecta. Nu imi ia baza de date cum s-ar zice si conexiunea este facuta bine ca pana acum a mers, am facut alta baza de date, i-am intrebat pe cei de la host, conexiunea este buna. Problema este ca porneste greu si nu este de la host ca m-au mutat pe alt dedicat si degeaba.

     

    --------------
    [19:51:29]  Loading plugin: crashdetect.so
    [19:51:29]   CrashDetect v4.15.1 is OK.
    [19:51:29]   Loaded.
    [19:51:29]  Loading plugin: mysql.so
    [19:51:29]  >> plugin.mysql: R39-2 successfully loaded.
    [19:51:29]   Loaded.
    [19:51:29]  Loading plugin: sscanf.so
    [19:51:29] 

    [19:51:29]  ===============================

    [19:51:29]       sscanf plugin loaded.     

    [19:51:29]          Version:  2.8.1        

    [19:51:29]    (c) 2012 Alex "Y_Less" Cole  

    [19:51:29]  ===============================

    [19:51:29]   Loaded.
    [19:51:29]  Loading plugin: streamer.so
    [19:51:29] 

    *** Streamer Plugin v2.8 by Incognito loaded ***

    [19:51:29]   Loaded.
    [19:51:29]  Loading plugin: Whirlpool.so
    [19:51:29]  
    [19:51:29]  ==================
    [19:51:29]  
    [19:51:29]   Whirlpool loaded
    [19:51:29]  
    [19:51:29]  ==================
    [19:51:29]  
    [19:51:29]   Loaded.
    [19:51:29]  Loaded 5 plugins.

    [19:51:29] 
    [19:51:29] Ban list
    [19:51:29] --------
    [19:51:29]  Loaded: samp.ban
    [19:51:29] 
    [19:51:29] 
    [19:51:29] Filterscripts
    [19:51:29] ---------------
    [19:51:29]   Loading filterscript 'cameditor.amx'...
    [19:51:29] 
    --------------------------------------
    [19:51:29]  CamEditor by Drebin
    [19:51:29] --------------------------------------

    [19:51:29]   Loaded 1 filterscripts.

    [19:51:30]  
    [19:51:30]  
    [19:51:30]  
    [19:51:30]  ======================================= 
    [19:51:30]  |                                     | 
    [19:51:30]  |        YSI version 3.09.0684        | 
    [19:51:30]  |        By Alex "Y_Less" Cole        | 
    [19:51:30]  |                                     | 
    [19:51:30]  ======================================= 
    [19:51:30]  
    [19:51:30] ---------- SERVER START ----------
    [19:51:30] [debug] OnGameModeInit()
     

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