"number of vehicle models: 0" error - not starting
#1

Hello,

firstly I have gotten the error for the bad index and then I have ******d it, I added this to my script
Код:
main()
{
    
}
as from the threads it was supposed to fix the issue. I now get the line above (number of vehicle models: 0) and the server gmtext appears as unknown, the gamemode fails to load but I don't get any errors in the server log, I only get the vehicles line.

Any idea?
Reply
#2

If main is missing, it gives run time error 20 and doesn't start the server at all.

Saying vehicles models are 0 can be because you don't create/add static vehicles when the mode starts.

Always keep crashdetect plugin loaded in case the script have run time errors.
Reply
#3

My code
Код:
main()
{
	print(" 		Sky-RP has started sucessfully.");
	print("		<-- 		Version 1.0.0       -->");
	print("                                             ");
	print("  © Sky Roleplay 2016. All rights reserved.");
}
and my log;

Код:
SA-MP Dedicated Server

----------------------

v0.3.7-R2, ©2005-2015 SA-MP Team

 

[14:06:33] filterscripts = ""  (string)

[14:06:33] gamemodetext = "Unknown"  (string)

[14:06:33] 

[14:06:33] Server Plugins

[14:06:33] --------------

[14:06:33]  Loading plugin: crashdetect.so

[14:06:33]   CrashDetect v4.15.1 is OK.

[14:06:33]   Loaded.

[14:06:33]  Loading plugin: mysql_static.so

[14:06:33]  >> plugin.mysql: R39-5 successfully loaded.

[14:06:33]   Loaded.

[14:06:33]  Loading plugin: sscanf.so

[14:06:33] 

 

[14:06:33]  ===============================

 

[14:06:33]       sscanf plugin loaded.     

 

[14:06:33]          Version:  2.8.2        

 

[14:06:33]    © 2012 Alex "******" Cole  

 

[14:06:33]  ===============================

 

[14:06:33]   Loaded.

[14:06:33]  Loading plugin: streamer.so

[14:06:33] 

 

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

 

[14:06:33]   Loaded.

[14:06:33]  Loading plugin: regex.so

[14:06:33] 

 

[14:06:33] ______________________________________

 

[14:06:33]  Regular Expression Plugin v0.2.1 loaded

[14:06:33] ______________________________________

 

[14:06:33]  By: Fro © Copyright <TBG> 2009-2011

[14:06:33] ______________________________________

 

[14:06:33]   Loaded.

[14:06:33]  Loaded 5 plugins.

 

[14:06:33] 

[14:06:33] Filterscripts

[14:06:33] ---------------

[14:06:33]   Loaded 0 filterscripts.

 

[14:06:33]  -------------------------------------------------------------

[14:06:33] Error: Server could not connect to the MySQL Database on '127.0.0.1'

[14:06:33]  -------------------------------------------------------------

[14:06:33]  		Sky-RP has started sucessfully.

[14:06:33] 		<-- 		Version 1.0.0       -->

[14:06:33]                                              

[14:06:33]   © Sky Roleplay 2016. All rights reserved.

[14:06:33] Number of vehicle models: 0
And that's the server; skyrp.kevinexec.xyz:7788
Reply
#4

So? You don't have CreateVehicle, AddStaticVehicle or AddStaticVehicleEx
Reply
#5

Quote:
Originally Posted by Meller
Посмотреть сообщение
So? You don't have CreateVehicle, AddStaticVehicle or AddStaticVehicleEx
I do have them in includes as functions, and I call functions on the OnGameModeInit.


Although, the cause of the gamemode to not start is that I haven't created a vehicle? I'm pretty sure it isn't, but the crashdetect isn't getting nothing aswell.
Reply
#6

[14:06:33] Error: Server could not connect to the MySQL Database on '127.0.0.1'

Problem is your mysql can't connect !
Reply
#7

Quote:
Originally Posted by Chocopie
Посмотреть сообщение
[14:06:33] Error: Server could not connect to the MySQL Database on '127.0.0.1'

Problem is your mysql can't connect !
So that causes that the gamemode doesnt start? I mean I think I started it without the MySQL connection on my old gm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)