Need help please.
#1

i dont know why the gm won't spawn any vehicles, "number of vehicles model : 0"

pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[00:22:31]
[00:22:31] Server Plugins
[00:22:31] --------------
[00:22:31]  Loading plugin: mysql.dll
[00:22:31]

  > MySQL plugin R5 successfully loaded.

[00:22:31]   Loaded.
[00:22:31]  Loading plugin: audio.dll
[00:22:31]

*** Audio Plugin v0.5 R2 by Incognito loaded ***

[00:22:31]   Loaded.
[00:22:31]  Loading plugin: sscanf.dll
[00:22:31]

[00:22:31]  ===============================

[00:22:31]       sscanf plugin loaded.    

[00:22:31]          Version:  2.8.1        

[00:22:31]    (c) 2012 Alex "******" Cole  

[00:22:31]  ===============================

[00:22:31]   Loaded.
[00:22:31]  Loading plugin: streamer.dll
[00:22:31]

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

[00:22:31]   Loaded.
[00:22:31]  Loading plugin: socket.dll
[00:22:31]  Socket plugin v0.1b loaded.
[00:22:31]   Loaded.
[00:22:31]  Loaded 5 plugins.

[00:22:31]
[00:22:31] Ban list
[00:22:31] --------
[00:22:31]  Loaded: samp.ban
[00:22:31]
[00:22:31]
[00:22:31] Filterscripts
[00:22:31] ---------------
[00:22:31]   Loading filterscript 'mycustom.amx'...
[00:22:32]   Loaded 1 filterscripts.

[00:22:32]  
[00:22:32]  
[00:22:32]  
[00:22:32]  =======================================
[00:22:32]  |                                     |
[00:22:32]  |        YSI version 1.06.0002        |
[00:22:32]  |        By Alex "******" Cole        |
[00:22:32]  |                                     |
[00:22:32]  =======================================
[00:22:32]  
[00:22:32]  
[00:22:32]  
[00:22:32] onfoot_rate = 40  (int, read-only)
[00:22:32] incar_rate = 40  (int, read-only)
[00:22:32] weapon_rate = 40  (int, read-only)
[00:22:34] [LoadPoints] 0 points loaded.
[00:22:34]  
[00:22:34] -------------------------------------------
[00:22:34] Loading...
[00:22:34] Twisted Reality Project
[00:22:34] -------------------------------------------
[00:22:34]  
[00:22:34] Number of vehicle models: 0
[00:22:34]  
[00:22:34]  ==========================================
[00:22:34]  |                                        |
[00:22:34]  |  A new version (v3.09.0684) of YSI is  |
[00:22:34]  |            available from:             |
[00:22:34]  |                                        |
[00:22:34]  |     [url]www.y-less.com/YSI/YSI_1.0.zip[/url]     |
[00:22:34]  |                                        |
[00:22:34]  | Changelog:                             |
[00:22:34]  |                                        |
[00:22:34]  |   3.00.0000:                           |
[00:22:34]  |                                        |
[00:22:34]  |   YSI 3.0 released!  Now includes the  |
[00:22:34]  | "y_text" library for better messages,  |
[00:22:34]  | and a reworked "y_classes" library.    |
[00:22:34]  | Largely documented here                |
[00:22:34]  | "http://forum.sa-mp.com/showthread.php |
[00:22:34]  | ?t=321092"
.                            |
[00:22:34]  |                                        |
[00:22:34]  |   3.01.0002:                           |
[00:22:34]  |                                        |
[00:22:34]  |   Small fixes to "y_text" and          |
[00:22:34]  | "y_classes".                           |
[00:22:34]  |                                        |
[00:22:34]  |   3.09.0684:                           |
[00:22:34]  |                                        |
[00:22:34]  |   Reverted to old download location.   |
[00:22:34]  | Improved (and fixed) version checks;   |
[00:22:34]  | added y_bitmap, y_areas, y_races,      |
[00:22:34]  | y_zonenames, better documentation;     |
[00:22:34]  | MANY other bug fixes - see the github  |
[00:22:34]  | repository for more details:           |
[00:22:34]  |                                        |
[00:22:34]  ==========================================
[00:22:34]  
[00:22:36] --- Server Shutting Down.
Reply
#2

please helpme... REP +

pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[00:37:12]
[00:37:12] Server Plugins
[00:37:12] --------------
[00:37:12]  Loading plugin: mysql.dll
[00:37:12]

  > MySQL plugin R5 successfully loaded.

[00:37:12]   Loaded.
[00:37:12]  Loading plugin: audio.dll
[00:37:12]

*** Audio Plugin v0.5 R2 by Incognito loaded ***

[00:37:12]   Loaded.
[00:37:12]  Loading plugin: sscanf.dll
[00:37:12]

[00:37:12]  ===============================

[00:37:12]       sscanf plugin loaded.    

[00:37:12]          Version:  2.8.1        

[00:37:12]    (c) 2012 Alex "******" Cole  

[00:37:12]  ===============================

[00:37:12]   Loaded.
[00:37:12]  Loading plugin: streamer.dll
[00:37:12]

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

[00:37:12]   Loaded.
[00:37:12]  Loading plugin: socket.dll
[00:37:12]  Socket plugin v0.1b loaded.
[00:37:12]   Loaded.
[00:37:12]  Loading plugin: crashdetect.dll
[00:37:12]   crashdetect v4.0.2 is OK.
[00:37:12]   Loaded.
[00:37:12]  Loaded 6 plugins.

[00:37:12]
[00:37:12] Ban list
[00:37:12] --------
[00:37:12]  Loaded: samp.ban
[00:37:12]
[00:37:12]
[00:37:12] Filterscripts
[00:37:12] ---------------
[00:37:12]   Loading filterscript 'mycustom.amx'...
[00:37:13]   Loaded 1 filterscripts.

[00:37:13]  
[00:37:13]  
[00:37:13]  
[00:37:13]  =======================================
[00:37:13]  |                                     |
[00:37:13]  |        YSI version 1.06.0002        |
[00:37:13]  |        By Alex "******" Cole        |
[00:37:13]  |                                     |
[00:37:13]  =======================================
[00:37:13]  
[00:37:13]  
[00:37:13]  
[00:37:13] onfoot_rate = 40  (int, read-only)
[00:37:13] incar_rate = 40  (int, read-only)
[00:37:13] weapon_rate = 40  (int, read-only)
[00:37:23] [debug] Run time error 4: "Array index out of bounds"
[00:37:23] [debug]   Accessing element at index 15 past array upper bound 14
[00:37:23] [debug] Backtrace (most recent call first):
[00:37:23] [debug] #0  0x000d6dc8()+0x2d8 from Twisted.amx
[00:37:23] [debug] #1  public SSCANF_OnGameModeInit()+0x1b34c from Twisted.amx
[00:37:23] [debug] #2  native CallLocalFunction() from samp-server.exe
[00:37:23] [debug] #3  0x00000000()+0xd70a0 from Twisted.amx
[00:37:23] [debug] #4  native CallLocalFunction() from samp-server.exe
[00:37:23] [debug] #5  0xfd8e603e()+0x27f1062 from Twisted.amx
[00:37:23] [debug] #6  public Itter_OnGameModeInit()+0xb4 from Twisted.amx
[00:37:23] [debug] #7  native CallLocalFunction() from samp-server.exe
[00:37:23] [debug] #8  public ScriptInit_OnGameModeInit()+0xd4a24 from Twisted.amx
[00:37:23] [debug] #9  public OnGameModeInit()+0x78 from Twisted.amx
[00:37:23]  
[00:37:23] -------------------------------------------
[00:37:23] Loading...
[00:37:23] Twisted Reality Project
[00:37:23] -------------------------------------------
[00:37:23]  
[00:37:23] Number of vehicle models: 0
[00:37:23]  
[00:37:23]  ==========================================
[00:37:23]  |                                        |
[00:37:23]  |  A new version (v3.09.0684) of YSI is  |
[00:37:23]  |            available from:             |
[00:37:23]  |                                        |
[00:37:23]  |     [url]www.y-less.com/YSI/YSI_1.0.zip[/url]     |
[00:37:23]  |                                        |
[00:37:23]  | Changelog:                             |
[00:37:23]  |                                        |
[00:37:23]  |   3.00.0000:                           |
[00:37:23]  |                                        |
[00:37:23]  |   YSI 3.0 released!  Now includes the  |
[00:37:23]  | "y_text" library for better messages,  |
[00:37:23]  | and a reworked "y_classes" library.    |
[00:37:23]  | Largely documented here                |
[00:37:23]  | "http://forum.sa-mp.com/showthread.php |
[00:37:23]  | ?t=321092"
.                            |
[00:37:23]  |                                        |
[00:37:23]  |   3.01.0002:                           |
[00:37:23]  |                                        |
[00:37:23]  |   Small fixes to "y_text" and          |
[00:37:23]  | "y_classes".                           |
[00:37:23]  |                                        |
[00:37:23]  |   3.09.0684:                           |
[00:37:23]  |                                        |
[00:37:23]  |   Reverted to old download location.   |
[00:37:23]  | Improved (and fixed) version checks;   |
[00:37:23]  | added y_bitmap, y_areas, y_races,      |
[00:37:23]  | y_zonenames, better documentation;     |
[00:37:23]  | MANY other bug fixes - see the github  |
[00:37:23]  | repository for more details:           |
[00:37:23]  |                                        |
[00:37:23]  ==========================================
[00:37:23]  
[00:38:10] --- Server Shutting Down.
Reply
#3

Can you post your OnGameModeInit?
Reply
#4

pawn Код:
public OnGameModeInit()
{
    // Default Rates
        SendRconCommand("onfoot_rate 100");
    SendRconCommand("incar_rate 100");
    SendRconCommand("weapon_rate 100");
    SendRconCommand("stream_distance 200.0");
    SendRconCommand("stream_rate 2000");
    Streamer_TickRate(100);
   
    // Security check
    SetTimer("LoginTimeCheck", 1000, 1);

    mysql_connection = mysql_connect(MYSQL_IP, MYSQL_USER, MYSQL_DB, MYSQL_PASSWORD);
    //mysql_debug();

    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a

    //InitDatabase();
    djson_GameModeInit();
   
    // Initialise Dispatch
    for(new v=0; v<MAX_DP_CARS; v++)
    {
        DPCar[v][dpCarID] = 0;
        format(DPCar[v][dpFaction], 10, "None");
        format(DPCar[v][dpModel], 24, "None");
        DPCar[v][dpOfficerID] = -1;
    }
   
    for(new s=0; s<MAX_DP_SITS; s++)
    {
        DPSituation[s][dpStatus] = 0;
        format(DPSituation[s][dpLoc], 50, "None");
        format(DPSituation[s][dpDesc], 50, "None");
        DPSituation[s][dpCar1] = -1;
        DPSituation[s][dpCar2] = -1;
        DPSituation[s][dpCar3] = -1;
        DPSituation[s][dpCar4] = -1;
    }
   
    no20 = 0;
   
    // Explosion system Initialization
    RandomLAFireTimer();
    RandomCCFireTimer();
    for(new i=0; i<MAX_FIRES; i++)
    {
        Fire[i][Fire_Exists] = 0;
        Fire[i][Fire_Taken] = 0;
        Fire[i][Fire_Zone] = MAX_ZONE_NAME;
        Fire[i][Fire_id] = 0;
        Fire[i][Fire_X] = 0.0;
        Fire[i][Fire_Y] = 0.0;
        Fire[i][Fire_Z] = 0.0;
        FireHealth[i] = 0;
    }
    for(new i; i < MAX_PLAYERS; i++)
    {
        PlayerFireTimer[i][2] = -1;
    }
Reply
#5

pawn Код:
public OnGameModeInit()
{
    // Default Rates
        SendRconCommand("onfoot_rate 100");
    SendRconCommand("incar_rate 100");
    SendRconCommand("weapon_rate 100");
    SendRconCommand("stream_distance 200.0");
    SendRconCommand("stream_rate 2000");
    Streamer_TickRate(100);
   
    // Security check
    SetTimer("LoginTimeCheck", 1000, 1);

    mysql_connection = mysql_connect(MYSQL_IP, MYSQL_USER, MYSQL_DB, MYSQL_PASSWORD);
    //mysql_debug();

    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a

    //InitDatabase();
    djson_GameModeInit();
   
    // Initialise Dispatch
    for(new v=0; v<MAX_DP_CARS; v++)
    {
        DPCar[v][dpCarID] = 0;
        format(DPCar[v][dpFaction], 10, "None");
        format(DPCar[v][dpModel], 24, "None");
        DPCar[v][dpOfficerID] = -1;
    }
   
    for(new s=0; s<MAX_DP_SITS; s++)
    {
        DPSituation[s][dpStatus] = 0;
        format(DPSituation[s][dpLoc], 50, "None");
        format(DPSituation[s][dpDesc], 50, "None");
        DPSituation[s][dpCar1] = -1;
        DPSituation[s][dpCar2] = -1;
        DPSituation[s][dpCar3] = -1;
        DPSituation[s][dpCar4] = -1;
    }
   
    no20 = 0;
   
    // Explosion system Initialization
    RandomLAFireTimer();
    RandomCCFireTimer();
    for(new i=0; i<MAX_FIRES; i++)
    {
        Fire[i][Fire_Exists] = 0;
        Fire[i][Fire_Taken] = 0;
        Fire[i][Fire_Zone] = MAX_ZONE_NAME;
        Fire[i][Fire_id] = 0;
        Fire[i][Fire_X] = 0.0;
        Fire[i][Fire_Y] = 0.0;
        Fire[i][Fire_Z] = 0.0;
        FireHealth[i] = 0;
    }
    for(new i; i < MAX_PLAYERS; i++)
    {
        PlayerFireTimer[i][2] = -1;
    }
Reply
#6

You haven't added/created any vehicle in OnGameModeInit.

https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
https://sampwiki.blast.hk/wiki/CreateVehicle
Reply
#7

am already added and create vehicle in OnGameModeInit

damn am very confused
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)