General > Developers Corner
[ULX hates me]Help with a command AGAIN AGAIN
XxLMM13xX:
--- Quote ---Secondly, ONCE AGAIN, what does "SIT" mean?
Code: Lua
sitc:help( "Teleports target to a sit." )
Even my bachelor's degree in Language Arts doesn't even help me. This entire script doesn't make sense to me at all, it literally just looks like a different version of !jailtp.
SO PLEASE TELL US NOW: What does this actually do, what is it supposed to do?! Yeah, we can read your code, and see what scriptly it is supposed to do, but to most of us it just looks like stuff written on a piece of paper. When you're requesting help, please, please, please, please, please, give some details of what its even supposed to do, so us people with imaginations can actually imagine it's initial goal.
--- End quote ---
This command basically is like a warp command.. ( might change name ) a sit is like a place that in like DarkRP maybe or some other gamemode a admin will take a person to talk to them. ( gamer slang )
BASIC REASON: Teleports a player to a set location
Also the code is based off the tp command from ULX i just changed the cross hair to a set vector
I ALSO GOT THE CODE TO WORK
i put the code at the beginning and it worked thanks for ALL the help!
Caustic Soda-Senpai:
--- Quote from: XxLMM13xX on February 04, 2015, 01:21:34 PM ---I ALSO GOT THE CODE TO WORK
i put the code at the beginning and it worked thanks for ALL the help!
--- End quote ---
It shouldn't STAY at the top though.
Bite That Apple:
--- Quote from: Bite That Apple on February 04, 2015, 09:37:30 AM ---Obviously do not leave it at the top if you find out what the problem is, but put it on the top to make sure the entire code is actually be executed correctly. You have some return ends, meaning that it may not be getting past the return end. People who actually try to problem solve, usually use "print" (I use "MsgN" because I see no difference) to see if there code is being executed to the next line of code. So I'll suggest to you to do the same, but instead of putting "print", use fancylogadmin and use it as a test.
--- End quote ---
Stickly Man!:
--- Quote from: Bite That Apple on February 04, 2015, 09:37:30 AM ---Okay, well first off, I would never use "~" to declare "not", generally it's obsolete, and most people I would say do not know that actually means "not".
--- End quote ---
Slightly off-topic, but I would have to disagree. Garry added the "not" keyword (along with a couple others), and it does not exist in the lua standard- only '~' does. If you tried to move your lua experience to a non-gmod lua project (WoW?), then you'd be shooting yourself in the foot each time you tried to use 'not'.
If someone doesn't know that "~" means not, then they haven't read the basics in the lua manual, which SHOULD be a must for anyone wanting to learn the language.
Bite That Apple:
--- Quote from: Stickly Man! on February 05, 2015, 07:51:01 AM ---If someone doesn't know that "~" means not, then they haven't read the basics in the lua manual, which SHOULD be a must for anyone wanting to learn the language.
--- End quote ---
My post was only Garry's Mod lua related. I understand that the tilde "~" is universal in some languages to not or opposite. Though, I mean, when do you ever see "~" in most people's code or gamemode. I had read a post (if I find it I'll link it) on facepunch, saying that the "tilde" is very missed when overviewing code, and to stop using it when you're trying to declare "not", and to use "!" or the actual word. So since then I had said the same thing, and never used "~".
Navigation
[0] Message Index
[*] Previous page
Go to full version