SA-MP Forums Archive
Doesn't load gamemode. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Doesn't load gamemode. (/showthread.php?tid=236248)



Doesn't load gamemode. - Type-R - 07.03.2011

Hello, something just happend and the server doesn't load the gamemode, which is fully compiled. Here's the server log:


SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team

[00:52:32]
[00:52:32] Server Plugins
[00:52:32] --------------
[00:52:32] Loading plugin: streamer
[00:52:32]

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

[00:52:32] Loaded.
[00:52:32] Loaded 1 plugins.

[00:52:32]
[00:52:32] Ban list
[00:52:32] --------
[00:52:32] Loaded: samp.ban
[00:52:32]
[00:52:32]
[00:52:32] Filter Scripts
[00:52:32] ---------------
[00:52:32] Loaded 0 filter scripts.

[00:52:32] Script[gamemodes/FreeRoamLT.amx]: Run time error 19: "File or function is not found"
[00:52:32] Number of vehicle models: 0

Any suggestions?


Re: Doesn't load gamemode. - Stigg - 07.03.2011

Have you added the gamemode to the server config ?
Is it in the gamemode folder ?


Re: Doesn't load gamemode. - BASITJALIL - 07.03.2011

Compile the GM if any error that's why its not loading


Re: Doesn't load gamemode. - Type-R - 07.03.2011

Theres no errors when compilling and the gamemode is in gamemodes folder and it is in server.cfg. When compiling the server theres just this one warning at the end of the gamemode:

C:\Users\Type-R\Desktop\FreeRoam LT\gamemodes\FreeRoamLT.pwn(8784) : warning 203: symbol is never used: "ret_memcpy"

i dont know how to fix it.


Re: Doesn't load gamemode. - Stigg - 07.03.2011

Under your defines:

Код:
#pragma unused ret_memcpy
To get rid of warning.


Re: Doesn't load gamemode. - Type-R - 07.03.2011

Thanks, i got rid of the warning, but i still can't figure out how to get the server read the Gamemode...


Respuesta: Doesn't load gamemode. - TheChaoz - 07.03.2011

bad pawno version. try compile with right pawno version


Re: Respuesta: Doesn't load gamemode. - Stigg - 07.03.2011

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
bad pawno version. try compile with right pawno version
He's using 3c, so he's already got the latest version, read his log.


Re: Doesn't load gamemode. - Type-R - 07.03.2011

This was a server log, before i edited the server it would give this message:

[01:45:49] Script[gamemodes/FreeRoamLT.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[01:45:49] Number of vehicle models: 78

but the server would still work, any suggestions?


Re: Doesn't load gamemode. - Stigg - 07.03.2011

You need this in your script:

Код:
main()
{
   	
}
Put it near the top somewhere.


Re: Doesn't load gamemode. - Type-R - 07.03.2011

So for the one that isin't loading the script, can it be that i scripted something wrong maybe?


Re: Doesn't load gamemode. - Stigg - 07.03.2011

Lets take a peek at your gm then ?
If it's to big to put on here, use pastebin.


Re: Doesn't load gamemode. - Type-R - 07.03.2011

I don't want to publish it. I think i will figure it out myself, but thanks for help.


Re: Doesn't load gamemode. - alpha500delta - 07.03.2011

This error means you are missing a plugin, Please check if all plugins you have included really are there, if not, download them


Re: Doesn't load gamemode. - Stigg - 07.03.2011

Quote:
Originally Posted by Type-R
Посмотреть сообщение
I don't want to publish it. I think i will figure it out myself, but thanks for help.
I did'nt want to steal it m8..lolz
Just wanted to see where you was going wrong.


Re: Doesn't load gamemode. - Stigg - 07.03.2011

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
This error means you are missing a plugin, Please check if all plugins you have included really are there, if not, download them
Which error ?


Re: Doesn't load gamemode. - [WF]Demon - 07.03.2011

Almost sure this error

Run time error 19: "File or function is not found"

is not referring to the script not being found, Try seeing if your script need plugins that you aren't loading.


Re: Doesn't load gamemode. - titanak - 07.03.2011

the error runtime 19 comes because of: You got missing plugins , or scriptfiles.

check your plugins


Re: Doesn't load gamemode. - Stigg - 07.03.2011

Quote:
Originally Posted by titanak
Посмотреть сообщение
the error runtime 19 comes because of: You got missing plugins , or scriptfiles.

check your plugins
Just a heads up, the last error was:
Код:
[01:45:49] Script[gamemodes/FreeRoamLT.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
And we fixed that with:

Код:
main()
{
   	
}



Re: Doesn't load gamemode. - titanak - 07.03.2011

kk. but i dont have main() function in gamemode and still no errors with compiling.. lol