Help me fix those errors : "Invalid index parameter - 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)
+--- Thread: Help me fix those errors : "Invalid index parameter (
/showthread.php?tid=487170)
Help me fix those errors : "Invalid index parameter -
dimitri8 - 12.01.2014
Hey I've here error :
Код:
Run time error 20: "Invalid index parameter (bad entry point)"
Found it on server.logs....
Here's my full server_logs:
Код:
----------
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]
Here's my includes :
Код:
#include <a_samp>
#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>
Server.CFG
Код:
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
Re: Help me fix those errors : "Invalid index parameter -
Stinged - 12.01.2014
Add main() { } under your includes and defines.
Re: Help me fix those errors : "Invalid index parameter -
dimitri8 - 12.01.2014
Add it on script or add it here? Cause I think I've it: Just uploaded the full codes, can you look on that again please?
Re: Help me fix those errors : "Invalid index parameter -
Stinged - 12.01.2014
Under your includes and defines in your script add
Re: Help me fix those errors : "Invalid index parameter -
dimitri8 - 12.01.2014
Already added, Same shit dude...
Re: Help me fix those errors : "Invalid index parameter -
Blademaster680 - 12.01.2014
Make sure you havnt added any spaces in your "GameMode.pwn" name and make sure you have added it into your server config. Else it could be an outdated include
Re: Help me fix those errors : "Invalid index parameter -
dimitri8 - 12.01.2014
Which include are you talking about? And I can upload all my script to here see:
Код:
#define SERVER_GM_TEXT "RP v2.1"
#include <a_samp>
#include <a_mysql>
#include <streamer>
#include <yom_buttons>
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <YSI\y_timers>
#include <YSI\y_utils>
main()
{
}
#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