13.01.2014, 12:37
Script can be built like that? Or becuase of that my script Gamemode is "Unknown"?
Script:
Server.cfg:
Server Logs:
Using MySQL Database too... Please help me cuz in logs it should write me : "Loaded from MySQL Vehicles/ETC..."
Script:
Код:
/* ---------------- SCRIPT REVISION ----------------- */ // Do not forget to change this everytime you commit - it's mandatory! #define SERVER_GM_TEXT "RP v2.1" #include <a_samp> main( ) { } #include <a_mysql> #include <streamer> #include <yom_buttons> #include <ZCMD> #include <sscanf2> #include <foreach> #include <YSI\y_timers> #include <YSI\y_utils> #if defined SOCKET_ENABLED #include <socket> //End #include "./includes/defines.pwn" #include "./includes/enums.pwn" #include "./includes/variables.pwn" #include "./includes/timers.pwn" #include "./includes/functions.pwn" #include "./includes/commands.pwn" #include "./includes/mysql.pwn" #include "./includes/OnPlayerLoad.pwn" #include "./includes/callbacks.pwn" #include "./includes/textdraws.pwn" #include "./includes/streamer.pwn" #include "./includes/OnDialogResponse.pwn" public OnGameModeInit() { print("Preparing the gamemode, please wait..."); g_mysql_Init(); return 1; } public OnGameModeExit() { g_mysql_Exit(); return 1; } #endif
Код:
echo Executing Server Config... lanmode 0 rcon_password dswewew maxplayers 50 port 7785 hostname My Server bind 66.225.195.125 gamemode0 MyScript filterscripts yom_buttons gcustom plugins streamer sscanf mysql Whirlpool announce 1 query 1 weburl Coming Soon maxnpc 0 onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 rcon 0 sleep 1 mapname San Andreas
Код:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x-R2, ©2005-2013 SA-MP Team [01:29:14] [01:29:14] Server Plugins [01:29:14] -------------- [01:29:14] Loading plugin: streamer [01:29:14] *** Streamer Plugin v2.6.1 by Incognito loaded *** [01:29:14] Loaded. [01:29:14] Loading plugin: sscanf [01:29:14] [01:29:14] =============================== [01:29:14] sscanf plugin loaded. [01:29:14] © 2009 Alex "******" Cole [01:29:14] 0.3d-R2 500 Players "dnee" [01:29:14] =============================== [01:29:14] Loaded. [01:29:14] Loading plugin: mysql [01:29:14] > MySQL plugin R7 successfully loaded. [01:29:14] Loaded. [01:29:14] Loading plugin: Whirlpool [01:29:14] [01:29:14] ================== [01:29:14] [01:29:14] Whirlpool loaded [01:29:14] [01:29:14] ================== [01:29:14] [01:29:14] Loaded. [01:29:14] Loaded 4 plugins. [01:29:14] [01:29:14] Filterscripts [01:29:14] --------------- [01:29:14] Loading filterscript 'yom_buttons.amx'... [01:29:14] Loading filterscript 'gcustom.amx'... [01:29:14] Loaded 2 filterscripts. [01:29:14] [01:29:14] ======================================= [01:29:14] | | [01:29:14] | YSI version 3.01.0002 | [01:29:14] | By Alex "******" Cole | [01:29:14] | | [01:29:14] ======================================= [01:29:14] [01:29:14] Script[gamemodes/MyScript.amx]: Run time error 20: "Invalid index parameter (bad entry point)" [01:29:14] Number of vehicle models: 0 [01:29:15] [01:29:15] ========================================== [01:29:15]