General > Developers Corner

Help with Check AFK command?

<< < (5/11) > >>

JamminR:
Get rid of the loop.
Change v in front of the concommand to target_ply.

iViscosity:
Yeah that's what I thought too, however when I did that I got the error
--- Code: ---[ERROR] addons/customcommands/lua/ulx/modules/sh/sh_cc_cafk.lua:8: attempt to index local 'target_ply' (a nil value)
  1. forceSpec - addons/customcommands/lua/ulx/modules/sh/sh_cc_cafk.lua:8
   2. unknown - addons/customcommands/lua/ulx/modules/sh/sh_cc_cafk.lua:12

--- End code ---
what do I do here?

(Also, 50 posts ayy XD)

JamminR:
Post in code tags all that you've got now.
I don't want to have to flip pages just to see all your code/edits.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version