General > Developers Corner
Need some help with a ULX LUA command.
LuaTenshi:
--- Quote from: MrPresident on June 23, 2011, 05:48:09 AM ---Cool, let me know how it runs.
I was only going to pick it up if you gave up on it. The idea is too good to let it just die, though I'd rather have you be the one to complete and release it seeing as it was your idea.
--- End quote ---
Oh OK, so I tested it in the server how it is currently and nothing happens, I mean the command does not run and gives no errors.
Edit: I think I know what the problem is...
in places such as...
--- Code: ---function Spawnzomb( Pos, Ang, pl, pl.zomb )
--- End code ---
and
--- Code: ---function ulx.zombify( calling_ply, target_plys, pl.zomb )
--- End code ---
pl.zomb should probably just be "zomb". I am gonna try that and hopefully get some thing from it.
MrPresident:
No, pl.zomb is the entity now.. as long as the function identifies pl as the player entity it should see it.
zomb will never equal pl.zomb... if you know how OOP works you will know why.
JamminR:
Can't speak for other visitors, but MrP, my team mates, and a few other regulars here are more than happy to assist, give credit when credit is due, and like seeing new insight and ideas from others such as yourself, even if learning Glua for the first time (Most of us learn here, even when those such as yourself ask questions about stuff we've seen, there's always something we haven't.) :D
If you take a look at the ULib and ULX change logs, you'll see various honorable mentions of users who have helped us over time, including MrPresident himself.
LuaTenshi:
I now have an error the error is...
--- Code: ---[addons\ulx_svn-hellfox_15\lua\ulx\modules\sh\sh_zombify.lua:3] ')' expected near '.'
--- End code ---
Megiddo:
--- Quote from: HeLLFox_15 on June 24, 2011, 08:28:47 AM ---I now have an error the error is...
--- Code: ---[addons\ulx_svn-hellfox_15\lua\ulx\modules\sh\sh_zombify.lua:3] ')' expected near '.'
--- End code ---
--- End quote ---
Could you share line three and a few of the surrounding lines? Line 3 on the OP is a blank line.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version