Vehicles are not loading
#1

So i have scripted vehicles in my GM, but when i start server it says - Number of vehicle models: 0
Reply
#2

The same is with other files which are under OnGameModeInit
Reply
#3

I had a similar problem which was caused due to an include which was defect. The include I had was supposed to grab the string on the license plate of a vehicle. Try to remove a plugin or include and see if OnGameModeInit is loading correctly after that. Also, does the server_log say anything else?
Reply
#4

PHP код:
----------
Loaded log file: "server_log.txt".
----------

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

[17:57:13] 
[
17:57:13] Server Plugins
[17:57:13] --------------
[
17:57:13]  Loading plugin: mysql
[17:57:13] 

  > 
MySQL plugin R5 successfully loaded.

[
17:57:13]   Loaded.
[
17:57:13]  Loading plugin: socket
[17:57:13]  Socket plugin v0.1b loaded.
[
17:57:13]   Loaded.
[
17:57:13]  Loading plugin: sscanf
[17:57:13] 

[
17:57:13]  ===============================

[
17:57:13]       sscanf plugin loaded.     

[
17:57:13]          Version:  2.8.1        

[17:57:13]    (c) 2012 Alex "******" Cole  

[17:57:13]  ===============================

[
17:57:13]   Loaded.
[
17:57:13]  Loading plugin: streamer
[17:57:13] 

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

[
17:57:13]   Loaded.
[
17:57:13]  Loaded 4 plugins.

[
17:57:14] 
[
17:57:14] Filterscripts
[17:57:14] ---------------
[
17:57:14]   Loading filterscript 'Tgarage.amx'...
[
17:57:14]   Loading filterscript 'gm_custmapping.amx'...
[
17:57:14]   Loading filterscript 'buttons.amx'...
[
17:57:14]   Loaded 3 filterscripts.

[
17:57:14]  
[
17:57:14]  
[
17:57:14]  
[
17:57:14]  ======================================= 
[
17:57:14]  |                                     | 
[
17:57:14]  |        YSI version 1.06.0002        | 
[
17:57:14]  |        By Alex "******" Cole        | 
[
17:57:14]  |                                     | 
[
17:57:14]  ======================================= 
[
17:57:14]  
[
17:57:14]  
[
17:57:14]  
[
17:57:14] onfoot_rate = 40  (int, read-only)
[
17:57:14] incar_rate = 40  (int, read-only)
[
17:57:14] weapon_rate = 40  (int, read-only)
[
17:57:14] Listen server running on port 58000
[17:57:14] [LoadPoints] 0 points loaded.
[
17:57:14]  
[
17:57:14] -------------------------------------------
[
17:57:14] Loading...
[
17:57:14] City Life RolePlay copyright Jack Robertson. - 2014
[17:57:14] -------------------------------------------
[
17:57:14]  
[
17:57:14] Number of vehicle models: 0
[17:57:14]  
[
17:57:14]  ========================================== 
[
17:57:14]  |                                        | 
[
17:57:14]  |  A new version (v3.09.0684) of YSI is  | 
[
17:57:14]  |            available from:             | 
[
17:57:14]  |                                        | 
[
17:57:14]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[
17:57:14]  |                                        | 
[
17:57:14]  | Changelog:                             | 
[
17:57:14]  |                                        | 
[
17:57:14]  |   3.00.0000:                           | 
[
17:57:14]  |                                        | 
[
17:57:14]  |   YSI 3.0 released!  Now includes the  | 
[
17:57:14]  | "y_text" library for better messages,  | 
[
17:57:14]  | and a reworked "y_classes" library.    | 
[
17:57:14]  | Largely documented here                | 
[
17:57:14]  | "http://forum.sa-mp.com/showthread.php | 
[17:57:14]  | ?t=321092"
.                            | 
[
17:57:14]  |                                        | 
[
17:57:14]  |   3.01.0002:                           | 
[
17:57:14]  |                                        | 
[
17:57:14]  |   Small fixes to "y_text" and          | 
[
17:57:14]  | "y_classes".                           | 
[
17:57:14]  |                                        | 
[
17:57:14]  |   3.09.0684:                           | 
[
17:57:14]  |                                        | 
[
17:57:14]  |   Reverted to old download location.   | 
[
17:57:14]  | Improved (and fixed) version checks;   | 
[
17:57:14]  | added y_bitmap, y_areas, y_races,      | 
[
17:57:14]  | y_zonenames, better documentation;     | 
[
17:57:14]  | MANY other bug fixes - see the github  | 
[
17:57:14]  | repository for more details:           | 
[
17:57:14]  |                                        | 
[
17:57:14]  ========================================== 
[
17:57:14] 
And my includes
PHP код:
#include <a_samp>
#include <streamer>
#include <a_zones>
#include <a_mysql>
#include <foreach>
#include <yom_buttons>
#include <djson>
#include <progress>
#include <YSI\y_timers>
#include <ZCMD>
#include <sscanf2>
#include <socket>
#include <Flares>
#include <Cones>
#include <PublicWorks> 
Reply
#5

Firstly you want to update YSI.
Reply
#6

I updated my YSI but still nothing loads

PHP код:
----------
Loaded log file: "server_log.txt".
----------

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

[19:20:57] 
[
19:20:57] Server Plugins
[19:20:57] --------------
[
19:20:57]  Loading plugin: mysql
[19:20:57] 

  > 
MySQL plugin R5 successfully loaded.

[
19:20:57]   Loaded.
[
19:20:57]  Loading plugin: socket
[19:20:57]  Socket plugin v0.1b loaded.
[
19:20:57]   Loaded.
[
19:20:57]  Loading plugin: sscanf
[19:20:57] 

[
19:20:57]  ===============================

[
19:20:57]       sscanf plugin loaded.     

[
19:20:57]          Version:  2.8.1        

[19:20:57]    (c) 2012 Alex "******" Cole  

[19:20:57]  ===============================

[
19:20:57]   Loaded.
[
19:20:57]  Loading plugin: streamer
[19:20:57] 

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

[
19:20:57]   Loaded.
[
19:20:57]  Loaded 4 plugins.

[
19:20:57] 
[
19:20:57] Filterscripts
[19:20:57] ---------------
[
19:20:57]   Loading filterscript 'Tgarage.amx'...
[
19:20:57]   Loading filterscript 'gm_custmapping.amx'...
[
19:20:57]   Loading filterscript 'buttons.amx'...
[
19:20:57]   Loaded 3 filterscripts.

[
19:20:57]  
[
19:20:57]  
[
19:20:57]  
[
19:20:57]  ======================================= 
[
19:20:57]  |                                     | 
[
19:20:57]  |        YSI version 3.09.0684        | 
[
19:20:57]  |        By Alex "******" Cole        | 
[
19:20:57]  |                                     | 
[
19:20:57]  ======================================= 
[
19:20:57]  
[
19:20:57]  
[
19:20:57]  
[
19:20:57] onfoot_rate = 40  (int, read-only)
[
19:20:57] incar_rate = 40  (int, read-only)
[
19:20:57] weapon_rate = 40  (int, read-only)
[
19:20:57] Listen server running on port 58000
[19:20:58] [LoadPoints] 0 points loaded.
[
19:20:58]  
[
19:20:58] -------------------------------------------
[
19:20:58] Loading...
[
19:20:58] City Life RolePlay copyright Jack Robertson. - 2014
[19:20:58] -------------------------------------------
[
19:20:58]  
[
19:20:58] Number of vehicle models: 0 
Reply
#7

I'm not sure to be honest. Try to unload some includes/filterscripts/plugins and attempt to start it and see if it loads. As I said, this error has happened before and for me it was a defect include.
Reply
#8

How i can know which include have defect?
Reply
#9

None of them are defective,
Solution?
you don't use a stolen script.
Reply
#10

Quote:
Originally Posted by FaZeRs
Посмотреть сообщение
I updated my YSI but still nothing loads

PHP код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3z-RC5, (C)2005-2014 SA-MP Team
[19:20:57] 
[
19:20:57] Server Plugins
[19:20:57] --------------
[
19:20:57]  Loading plugin: mysql
[19:20:57] 
  > 
MySQL plugin R5 successfully loaded.
[
19:20:57]   Loaded.
[
19:20:57]  Loading plugin: socket
[19:20:57]  Socket plugin v0.1b loaded.
[
19:20:57]   Loaded.
[
19:20:57]  Loading plugin: sscanf
[19:20:57] 
[
19:20:57]  ===============================
[
19:20:57]       sscanf plugin loaded.     
[
19:20:57]          Version:  2.8.1        
[19:20:57]    (c) 2012 Alex "******" Cole  
[19:20:57]  ===============================
[
19:20:57]   Loaded.
[
19:20:57]  Loading plugin: streamer
[19:20:57] 
*** 
Streamer Plugin v2.7 by Incognito loaded ***
[
19:20:57]   Loaded.
[
19:20:57]  Loaded 4 plugins.
[
19:20:57] 
[
19:20:57] Filterscripts
[19:20:57] ---------------
[
19:20:57]   Loading filterscript 'Tgarage.amx'...
[
19:20:57]   Loading filterscript 'gm_custmapping.amx'...
[
19:20:57]   Loading filterscript 'buttons.amx'...
[
19:20:57]   Loaded 3 filterscripts.
[
19:20:57]  
[
19:20:57]  
[
19:20:57]  
[
19:20:57]  ======================================= 
[
19:20:57]  |                                     | 
[
19:20:57]  |        YSI version 3.09.0684        | 
[
19:20:57]  |        By Alex "******" Cole        | 
[
19:20:57]  |                                     | 
[
19:20:57]  ======================================= 
[
19:20:57]  
[
19:20:57]  
[
19:20:57]  
[
19:20:57] onfoot_rate = 40  (int, read-only)
[
19:20:57] incar_rate = 40  (int, read-only)
[
19:20:57] weapon_rate = 40  (int, read-only)
[
19:20:57] Listen server running on port 58000
[19:20:58] [LoadPoints] 0 points loaded.
[
19:20:58]  
[
19:20:58] -------------------------------------------
[
19:20:58] Loading...
[
19:20:58] City Life RolePlay copyright Jack Robertson. - 2014
[19:20:58] -------------------------------------------
[
19:20:58]  
[
19:20:58] Number of vehicle models: 0 
After updating YSI, Compile your gamemode again.
Reply


Forum Jump:


Users browsing this thread: