Help Gamemode
#1

Hi

I have got one problem! When I start samp-server dedicated it show me error:" Script[gamemodes/Unli.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

How to fix this


Server log:

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

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[19:56:51] filterscripts = ""  (string)
[19:56:51] onfoot_rate = 30  (int)
[19:56:51] 
[19:56:51] Server Plugins
[19:56:51] --------------
[19:56:51]  Loading plugin: sscanf
[19:56:51] 

[19:56:51]  ===============================

[19:56:51]       sscanf plugin loaded.     

[19:56:51]          Version:  2.8.1        

[19:56:51]    © 2012 Alex "******" Cole  

[19:56:51]  ===============================

[19:56:51]   Loaded.
[19:56:51]  Loading plugin: streamer
[19:56:51] 

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

[19:56:51]   Loaded.
[19:56:51]  Loading plugin: regex
[19:56:51] 


[19:56:51] ______________________________________


[19:56:51]  Regular Expression Plugin v0.2.0 loaded
[19:56:51] ______________________________________


[19:56:51]  By: Fro © Copyright <TBG> 2009-2011
[19:56:51] ______________________________________


[19:56:51]   Loaded.
[19:56:51]  Loading plugin: Whirlpool
[19:56:51]  
[19:56:51]  ==================
[19:56:51]  
[19:56:51]   Whirlpool loaded
[19:56:51]  
[19:56:51]  ==================
[19:56:51]  
[19:56:51]   Loaded.
[19:56:51]  Loaded 4 plugins.

[19:56:51] 
[19:56:51] Filterscripts
[19:56:51] ---------------
[19:56:51]   Loaded 0 filterscripts.

[19:56:51] Script[gamemodes/Unli.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[19:56:51] Number of vehicle models: 0
[19:56:54] --- Server Shutting Down.
[19:56:54] 

[19:56:54]  ===============================

[19:56:54]      sscanf plugin unloaded.    

[19:56:54]  ===============================

[19:56:54] 

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

[19:56:54] 


[19:56:54] ______________________________________


[19:56:54]  Regular Expression Plugin v0.2.0 unloaded
[19:56:54] ______________________________________


[19:56:54]  
[19:56:54]  ====================
[19:56:54]  
[19:56:54]   Whirlpool unloaded
[19:56:54]  
[19:56:54]  ====================
[19:56:54]
Reply
#2

Search before posting.

It means you don't have main() in your script.
Reply
#3

Add
pawn Код:
main( ) { }
Reply
#4

Add 'main' above (or below) your OnGameModeInit()

pawn Код:
main()
{
    //I like to add the print messages here.
    print("Loaded Gamemode");
    return 1;
}

public OnGameModeInit()
{
    return 1;
}
Reply
#5

like this

pawn Код:
main()
{
print("\n----------------------------------");
print("  Your Gamemode Name :)                ");
print("----------------------------------\n");

CreateDynamicObject(3472, -1546.957397, -2206.117675, 2.566869, 0.000000, 0.000000, 0.000000);
}
Reply
#6

Quote:
Originally Posted by Guest123
Посмотреть сообщение
like this

pawn Код:
main()
{
print("\n----------------------------------");
print("  Your Gamemode Name :)                ");
print("----------------------------------\n");

CreateDynamicObject(3472, -1546.957397, -2206.117675, 2.566869, 0.000000, 0.000000, 0.000000);
}
main () != OnGameModeInit()

You still need to have the CreateDynamicObject inside of OnGameModeInit() instead of main()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)