SA-MP Forums Archive
Please Help Run time error 20 - 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: Please Help Run time error 20 (/showthread.php?tid=446116)



Please Help Run time error 20 - xganyx - 24.06.2013

Run time error 20: "Invalid index parameter (bad entry point)"
this is what i got when i open samp-server.exe
here my code:
http://pastebin.com/SGVWAtbM


Re: Please Help Run time error 20 - Josh_Main - 24.06.2013

It's because your running a filterscript, not a gamemode


Re: Please Help Run time error 20 - xganyx - 25.06.2013

Here Is My Server.cfg
Код:
echo Executing Server Config...
lanmode 0
rcon_password Gany
maxplayers 50
port 7777
hostname [VN] GTA 4 LIFE
gamemode0 Gany 1
filterscripts 
plugins sscanf streamer
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]



Re: Please Help Run time error 20 - Josh_Main - 25.06.2013

Do you get any errors compiling your script in pawno?


Re: Please Help Run time error 20 - Scenario - 25.06.2013

You're missing main(){} from your game mode. Search next time!


Re: Please Help Run time error 20 - xganyx - 25.06.2013

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You're missing main(){} from your game mode. Search next time!
Not work i have main(){} but it not work
please help me i'm very need this


Re: Please Help Run time error 20 - xganyx - 25.06.2013

please helppppppppp


Re: Please Help Run time error 20 - Vince - 25.06.2013

The entire script from line 53 through 2001 isn't even being looked at by the compiler because of the directives. Remove any line that starts with: #if, #endif or #else.


Re: Please Help Run time error 20 - xganyx - 25.06.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
The entire script from line 53 through 2001 isn't even being looked at by the compiler because of the directives. Remove any line that starts with: #if, #endif or #else.
if i delete the #if and #endif i get this error :
Код:
C:\Documents and Settings\hung\Desktop\Example\gamemodes\Ganys.pwn(79) : error 001: expected token: ";", but found "stock"
C:\Documents and Settings\hung\Desktop\Example\gamemodes\Ganys.pwn(1937) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Documents and Settings\hung\Desktop\Example\gamemodes\Ganys.pwn(1937) : warning 215: expression has no effect
C:\Documents and Settings\hung\Desktop\Example\gamemodes\Ganys.pwn(1937) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\hung\Desktop\Example\gamemodes\Ganys.pwn(1937) : error 029: invalid expression, assumed zero
C:\Documents and Settings\hung\Desktop\Example\gamemodes\Ganys.pwn(1937) : fatal error 107: too many error messages on one line



Re: Please Help Run time error 20 - Josh_Main - 25.06.2013

Do you have Teamviewer? If you do, send me your ID and pass