Scripting, Compiling . . .
#1

Hello everybody.
I've a problem, when trying to compile my server it says "Not found Function or Gamemede", searched here and i also tried downloading new plugins nd updating em, but still bugged . ..
Reply
#2

Quote:
Originally Posted by dali123
Посмотреть сообщение
Hello everybody.
I've a problem, when trying to compile my server it says "Not found Function or Gamemede", searched here and i also tried doawnloading new plugins nd updating em, but still bugged . ..
Add main

PHP код:
main()
{

Reply
#3

Where should i put it exactly please ?
Reply
#4

In top ?
Reply
#5

Quote:
Originally Posted by dali123
Посмотреть сообщение
In top ?
Doesnt matter where
Reply
#6

Quote:
Originally Posted by Lokii
Посмотреть сообщение
Add main

PHP код:
main()
{

Quote:
Originally Posted by Lokii
Посмотреть сообщение
Doesnt matter where
I've "Main ()" print scripted already, nd there are no problems with compiling (No errors) but the when i try running it, it doesn't work :/
Reply
#7

Did you edit the server.cfg ?
Add your gamemode pwn name after " gamemode0 " in the server.cfg
Reply
#8

Yea, show server.log and server.cfg.


Randomly following random instructions is a sure way of having someone screw up your script. Especially when they're not asking for anything, simply giving you random code to put in.
Reply
#9

Here you go, my Server.log text
Quote:

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:05:21]
[18/07/2013 20:05:21] Server Plugins
[18/07/2013 20:05:21] --------------
[18/07/2013 20:05:21] Loading plugin: mysql
[18/07/2013 20:05:21]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:05:21] Loaded.
[18/07/2013 20:05:21] Loading plugin: sscanf
[18/07/2013 20:05:21] Failed.
[18/07/2013 20:05:21] Loading plugin: streamer
[18/07/2013 20:05:21]

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

[18/07/2013 20:05:21] Loaded.
[18/07/2013 20:05:21] Loading plugin: Whirlpool
[18/07/2013 20:05:21]
[18/07/2013 20:05:21] ==================
[18/07/2013 20:05:21]
[18/07/2013 20:05:21] Whirlpool loaded
[18/07/2013 20:05:21]
[18/07/2013 20:05:21] ==================
[18/07/2013 20:05:21]
[18/07/2013 20:05:21] Loaded.
[18/07/2013 20:05:21] Loaded 3 plugins.

[18/07/2013 20:05:21]
[18/07/2013 20:05:21] Filterscripts
[18/07/2013 20:05:21] ---------------
[18/07/2013 20:05:21] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:05:21] Loading filterscript 'anims.amx'...
[18/07/2013 20:05:21] Loading filterscript 'dmapping.amx'...
[18/07/2013 20:05:21] Loading filterscript 'zmapping.amx'...
[18/07/2013 20:05:21] Loaded 4 filterscripts.

[18/07/2013 20:05:21] Script[gamemodes/HRP.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:05:21] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:06:27]
[18/07/2013 20:06:27] Server Plugins
[18/07/2013 20:06:27] --------------
[18/07/2013 20:06:27] Loading plugin: mysql
[18/07/2013 20:06:27]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:06:27] Loaded.
[18/07/2013 20:06:27] Loading plugin: sscanf
[18/07/2013 20:06:27] Failed.
[18/07/2013 20:06:27] Loading plugin: streamer
[18/07/2013 20:06:27]

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

[18/07/2013 20:06:27] Loaded.
[18/07/2013 20:06:27] Loading plugin: Whirlpool
[18/07/2013 20:06:27]
[18/07/2013 20:06:27] ==================
[18/07/2013 20:06:27]
[18/07/2013 20:06:27] Whirlpool loaded
[18/07/2013 20:06:27]
[18/07/2013 20:06:27] ==================
[18/07/2013 20:06:27]
[18/07/2013 20:06:27] Loaded.
[18/07/2013 20:06:27] Loaded 3 plugins.

[18/07/2013 20:06:27]
[18/07/2013 20:06:27] Filterscripts
[18/07/2013 20:06:27] ---------------
[18/07/2013 20:06:27] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:06:27] Loading filterscript 'anims.amx'...
[18/07/2013 20:06:27] Loading filterscript 'dmapping.amx'...
[18/07/2013 20:06:27] Loading filterscript 'zmapping.amx'...
[18/07/2013 20:06:27] Loaded 4 filterscripts.

[18/07/2013 20:06:27] Script[gamemodes/HRP.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:06:27] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:07:10]
[18/07/2013 20:07:10] Server Plugins
[18/07/2013 20:07:10] --------------
[18/07/2013 20:07:10] Loading plugin: mysql
[18/07/2013 20:07:10]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:07:10] Loaded.
[18/07/2013 20:07:10] Loading plugin: sscanf
[18/07/2013 20:07:10] Failed.
[18/07/2013 20:07:10] Loading plugin: streamer
[18/07/2013 20:07:10]

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

[18/07/2013 20:07:10] Loaded.
[18/07/2013 20:07:10] Loading plugin: Whirlpool
[18/07/2013 20:07:10]
[18/07/2013 20:07:10] ==================
[18/07/2013 20:07:10]
[18/07/2013 20:07:10] Whirlpool loaded
[18/07/2013 20:07:10]
[18/07/2013 20:07:10] ==================
[18/07/2013 20:07:10]
[18/07/2013 20:07:10] Loaded.
[18/07/2013 20:07:10] Loaded 3 plugins.

[18/07/2013 20:07:11]
[18/07/2013 20:07:11] Filterscripts
[18/07/2013 20:07:11] ---------------
[18/07/2013 20:07:11] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:07:11] Loading filterscript 'anims.amx'...
[18/07/2013 20:07:11] Loading filterscript 'dmapping.amx'...
[18/07/2013 20:07:11] Loading filterscript 'zmapping.amx'...
[18/07/2013 20:07:11] Loaded 4 filterscripts.

[18/07/2013 20:07:11] Script[gamemodes/DNS.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:07:11] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:07:20]
[18/07/2013 20:07:20] Server Plugins
[18/07/2013 20:07:20] --------------
[18/07/2013 20:07:20] Loading plugin: mysql
[18/07/2013 20:07:20]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:07:20] Loaded.
[18/07/2013 20:07:20] Loading plugin: sscanf
[18/07/2013 20:07:20] Failed.
[18/07/2013 20:07:20] Loading plugin: streamer
[18/07/2013 20:07:20]

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

[18/07/2013 20:07:20] Loaded.
[18/07/2013 20:07:20] Loading plugin: Whirlpool
[18/07/2013 20:07:20]
[18/07/2013 20:07:20] ==================
[18/07/2013 20:07:20]
[18/07/2013 20:07:20] Whirlpool loaded
[18/07/2013 20:07:20]
[18/07/2013 20:07:20] ==================
[18/07/2013 20:07:20]
[18/07/2013 20:07:20] Loaded.
[18/07/2013 20:07:20] Loaded 3 plugins.

[18/07/2013 20:07:20]
[18/07/2013 20:07:20] Filterscripts
[18/07/2013 20:07:20] ---------------
[18/07/2013 20:07:20] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:07:20] Loading filterscript 'anims.amx'...
[18/07/2013 20:07:20] Loading filterscript 'dmapping.amx'...
[18/07/2013 20:07:20] Loading filterscript 'zmapping.amx'...
[18/07/2013 20:07:20] Loaded 4 filterscripts.

[18/07/2013 20:07:20] Script[gamemodes/DNS.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:07:20] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:07:56]
[18/07/2013 20:07:56] Server Plugins
[18/07/2013 20:07:56] --------------
[18/07/2013 20:07:56] Loading plugin: mysql
[18/07/2013 20:07:56]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:07:56] Loaded.
[18/07/2013 20:07:56] Loading plugin: streamer
[18/07/2013 20:07:56]

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

[18/07/2013 20:07:56] Loaded.
[18/07/2013 20:07:56] Loading plugin: Whirlpool
[18/07/2013 20:07:56]
[18/07/2013 20:07:56] ==================
[18/07/2013 20:07:56]
[18/07/2013 20:07:56] Whirlpool loaded
[18/07/2013 20:07:56]
[18/07/2013 20:07:56] ==================
[18/07/2013 20:07:56]
[18/07/2013 20:07:56] Loaded.
[18/07/2013 20:07:56] Loaded 3 plugins.

[18/07/2013 20:07:56]
[18/07/2013 20:07:56] Filterscripts
[18/07/2013 20:07:56] ---------------
[18/07/2013 20:07:56] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:07:56] Loading filterscript 'anims.amx'...
[18/07/2013 20:07:56] Loading filterscript 'dmapping.amx'...
[18/07/2013 20:07:56] Loading filterscript 'zmapping.amx'...
[18/07/2013 20:07:56] Loaded 4 filterscripts.

[18/07/2013 20:07:56] Script[gamemodes/DNS.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:07:56] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:08:22]
[18/07/2013 20:08:22] Server Plugins
[18/07/2013 20:08:22] --------------
[18/07/2013 20:08:22] Loading plugin: mysql
[18/07/2013 20:08:22]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:08:22] Loaded.
[18/07/2013 20:08:22] Loading plugin: streamer
[18/07/2013 20:08:22]

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

[18/07/2013 20:08:22] Loaded.
[18/07/2013 20:08:22] Loading plugin: Whirlpool
[18/07/2013 20:08:22]
[18/07/2013 20:08:22] ==================
[18/07/2013 20:08:22]
[18/07/2013 20:08:22] Whirlpool loaded
[18/07/2013 20:08:22]
[18/07/2013 20:08:22] ==================
[18/07/2013 20:08:22]
[18/07/2013 20:08:22] Loaded.
[18/07/2013 20:08:22] Loaded 3 plugins.

[18/07/2013 20:08:22]
[18/07/2013 20:08:22] Filterscripts
[18/07/2013 20:08:22] ---------------
[18/07/2013 20:08:22] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:08:22] Loading filterscript 'anims.amx'...
[18/07/2013 20:08:22] Loaded 2 filterscripts.

[18/07/2013 20:08:22] Script[gamemodes/DNS.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:08:22] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[18/07/2013 20:09:42]
[18/07/2013 20:09:42] Server Plugins
[18/07/2013 20:09:42] --------------
[18/07/2013 20:09:42] Loading plugin: mysql
[18/07/2013 20:09:42]

> MySQL plugin R6-2 successfully loaded.

[18/07/2013 20:09:42] Loaded.
[18/07/2013 20:09:42] Loading plugin: streamer
[18/07/2013 20:09:42]

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

[18/07/2013 20:09:42] Loaded.
[18/07/2013 20:09:42] Loading plugin: Whirlpool
[18/07/2013 20:09:42]
[18/07/2013 20:09:42] ==================
[18/07/2013 20:09:42]
[18/07/2013 20:09:42] Whirlpool loaded
[18/07/2013 20:09:42]
[18/07/2013 20:09:42] ==================
[18/07/2013 20:09:42]
[18/07/2013 20:09:42] Loaded.
[18/07/2013 20:09:42] Loaded 3 plugins.

[18/07/2013 20:09:42]
[18/07/2013 20:09:42] Filterscripts
[18/07/2013 20:09:42] ---------------
[18/07/2013 20:09:42] Loading filterscript 'yom_buttons.amx'...
[18/07/2013 20:09:42] Loading filterscript 'anims.amx'...
[18/07/2013 20:09:42] Loaded 2 filterscripts.

[18/07/2013 20:09:42] Script[gamemodes/HRP_9.0.amx]: Run time error 19: "File or function is not found"
[18/07/2013 20:09:42] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[25/05/2018 13:47:32]
[25/05/2018 13:47:32] Server Plugins
[25/05/2018 13:47:32] --------------
[25/05/2018 13:47:32] Loading plugin: mysql
[25/05/2018 13:47:32]

> MySQL plugin R6-2 successfully loaded.

[25/05/2018 13:47:32] Loaded.
[25/05/2018 13:47:32] Loading plugin: streamer
[25/05/2018 13:47:32]

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

[25/05/2018 13:47:32] Loaded.
[25/05/2018 13:47:32] Loading plugin: Whirlpool
[25/05/2018 13:47:32]
[25/05/2018 13:47:32] ==================
[25/05/2018 13:47:32]
[25/05/2018 13:47:32] Whirlpool loaded
[25/05/2018 13:47:32]
[25/05/2018 13:47:32] ==================
[25/05/2018 13:47:32]
[25/05/2018 13:47:32] Loaded.
[25/05/2018 13:47:32] Loaded 3 plugins.

[25/05/2018 13:47:32]
[25/05/2018 13:47:32] Filterscripts
[25/05/2018 13:47:32] ---------------
[25/05/2018 13:47:32] Loading filterscript 'yom_buttons.amx'...
[25/05/2018 13:47:32] Loading filterscript 'anims.amx'...
[25/05/2018 13:47:32] Loaded 2 filterscripts.

[25/05/2018 13:47:32] Script[gamemodes/HRP_9.0.amx]: Run time error 19: "File or function is not found"
[25/05/2018 13:47:32] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

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

[25/05/2018 13:48:07]
[25/05/2018 13:48:07] Server Plugins
[25/05/2018 13:48:07] --------------
[25/05/2018 13:48:07] Loading plugin: mysql
[25/05/2018 13:48:07]

> MySQL plugin R6-2 successfully loaded.

[25/05/2018 13:48:07] Loaded.
[25/05/2018 13:48:07] Loading plugin: streamer
[25/05/2018 13:48:07]

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

[25/05/2018 13:48:07] Loaded.
[25/05/2018 13:48:07] Loading plugin: Whirlpool
[25/05/2018 13:48:07]
[25/05/2018 13:48:07] ==================
[25/05/2018 13:48:07]
[25/05/2018 13:48:07] Whirlpool loaded
[25/05/2018 13:48:07]
[25/05/2018 13:48:07] ==================
[25/05/2018 13:48:07]
[25/05/2018 13:48:07] Loaded.
[25/05/2018 13:48:07] Loaded 3 plugins.

[25/05/2018 13:48:07]
[25/05/2018 13:48:07] Filterscripts
[25/05/2018 13:48:07] ---------------
[25/05/2018 13:48:07] Loading filterscript 'yom_buttons.amx'...
[25/05/2018 13:48:07] Loading filterscript 'anims.amx'...
[25/05/2018 13:48:07] Loaded 2 filterscripts.

[25/05/2018 13:48:07] Script[gamemodes/DNS.amx]: Run time error 19: "File or function is not found"
[25/05/2018 13:48:07] Number of vehicle models: 0
Reply
#10

Put nativechecker plugin, run the server and re post the log.
https://sampforum.blast.hk/showthread.php?tid=249226
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)