Re: Another Lua question [message #449336 is a reply to message #449326] |
Fri, 01 July 2011 19:50 |
hego64
Messages: 19 Registered: April 2011 Location: Hegoville
Karma:
|
Recruit |
|
|
Ok, I'm going to sound dumb for this, but...How can I edit this for like my previous post about the spectate stuff?
function myscript:Killed(ID, obj, killer)
print("Killed", ID, obj, killer)
end
I mean, I can do normal stuff in lua like weps and vehs and stuff, but I'm no hand at functions that I don't know.
Thanks for all your help y'all
-Hego64
Edit: I tried the whole thing that you guys had given me unedited in the server, and I got an error in the FDS on line 176.
(prolly a dumb idea to try it without anything added, but I had just wanted to fiddle with it for a bit)
Line 176: Register_Script("myscript", "", myscript) --register script
The error said that it couldn't have more than one script named the same thing.
[Updated on: Fri, 01 July 2011 19:55] Report message to a moderator
|
|
|