Please Help Run time error 20
#1

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
Reply
#2

It's because your running a filterscript, not a gamemode
Reply
#3

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]
Reply
#4

Do you get any errors compiling your script in pawno?
Reply
#5

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

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
Reply
#7

please helppppppppp
Reply
#8

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.
Reply
#9

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)