Closed Exmirai closed 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?
i see that problem only on server, and i didn't saw any error on startup :|
Could be using the wrong DLL?
Are you still having this issue? I just tested again with that code, and it works fine.
yes it works i delete cgamex86 and jampgamex86 in MyDocuments/MyGames/OpenJK folder)
i use for e.g: local id = 8 local ply = GetPlayer(id) and its return that: Attempt to call global ( GetPlayer() ) < a nil value > :(