Razish / japp

JA++ server and client modification for Jedi Academy
GNU General Public License v2.0
44 stars 30 forks source link

ooops GetPlayer() doesn't work #84

Closed Exmirai closed 10 years ago

Exmirai commented 10 years ago

i use for e.g: local id = 8 local ply = GetPlayer(id) and its return that: Attempt to call global ( GetPlayer() ) < a nil value > :(

Razish commented 10 years ago

Works here.

]lua local ply = GetPlayer(8)
Executing Lua code...
]lua local id = 8 local ply = GetPlayer( id )
Executing Lua code...
]lua local id = 8 local ply = GetPlayer( id ) print( ply:GetID() )
Executing Lua code...
Lua Error: [string "local id = 8 local ply = GetPlayer( id ) prin..."]:1: attempt to index local 'ply' (a nil value)

On both server and client. Are there any issue in the console on startup?

Exmirai commented 10 years ago

i see that problem only on server, and i didn't saw any error on startup :|

Stra1 commented 10 years ago

Could be using the wrong DLL?

Razish commented 10 years ago

Are you still having this issue? I just tested again with that code, and it works fine.

Exmirai commented 10 years ago

yes it works i delete cgamex86 and jampgamex86 in MyDocuments/MyGames/OpenJK folder)