Fearless looking for geeks
#11
(01-17-2016, 05:43 PM)Marty Wrote: Geek is a little bit insulting is it not ?

Only if you think being a geek is a bad thing... Which it's not.
The following 1 user Likes Grunt's post:
  • Edned
#12
Yeah I am a geek xD
Regards,
Edned

[Image: get.php?s=STEAM_0:0:51199704&b=16]
+Rep
The following 2 users Like Edned's post:
  • Grunt, Gog
#13
(01-17-2016, 05:40 PM)Doctor Internet Wrote:
(01-17-2016, 04:28 PM)Astari Wrote:
(01-17-2016, 04:15 PM)Nuka Wrote: if ("nuka" = string "developer")
        apply for "contributer";

lua error on line 1 c:


hook.Add("PlayerSay", "astarii", function ( ply, text, public )
text = string.lower( text )
if ( text == "!makeAstariContributor" ) then
RunConsoleCommand("ulx", "adduser", "astari", "contributor")
end)

yay

Firstly, there is a function built into the GM for creation of commands.
Secondly, ULX isn't used on the servers, instead relying on a system built into the gamemode, built on (iirc) Evolve.
Merry Christmas.

implying i know that
implying i know they have evolve
merry kys.
#14
i can code jobs for darkrp if thats needed Wink
#15
I'm pretty good on paint?
[Image: jJ8oPAb.png]

The following 7 users Like Jax's post:
  • Tomo, JackZ, Nuka, DVN, Cox, goigle!, Random
#16
Geek, hmm.
#17
(01-17-2016, 05:40 PM)Doctor Internet Wrote:
(01-17-2016, 04:28 PM)Astari Wrote:
(01-17-2016, 04:15 PM)Nuka Wrote: if ("nuka" = string "developer")
        apply for "contributer";

lua error on line 1 c:


hook.Add("PlayerSay", "astarii", function ( ply, text, public )
text = string.lower( text )
if ( text == "!makeAstariContributor" ) then
RunConsoleCommand("ulx", "adduser", "astari", "contributor")
end)

yay

Firstly, there is a function built into the GM for creation of commands.
Secondly, ULX isn't used on the servers, instead relying on a system built into the gamemode, built on (iirc) Evolve.
Merry Christmas.

Yeah but that way he did it is if you want to just make a concommand... Sorta. (It hooks PlayerSay still)
Why store string.lower( text ) to a variable? Just use it in the "if" check lol, it's a waste of processing power. Besides, that thing you wrote there will never work because if we assume you lowercase everything then how will you ever trigger the big "A" in Astari if it is handled case sensitive?

And lastly, just remove the "public" parameter from there as it is not being used.
#18
When I saw this I trought you meant Greeks lol
The following 3 users Like DarkN00b's post:
  • Grunt, JackZ, Joulle
#19
Done.
#20
(01-17-2016, 07:31 PM)Zyphix Wrote:
(01-17-2016, 05:40 PM)Doctor Internet Wrote:
(01-17-2016, 04:28 PM)Astari Wrote:
(01-17-2016, 04:15 PM)Nuka Wrote: if ("nuka" = string "developer")
        apply for "contributer";

lua error on line 1 c:


hook.Add("PlayerSay", "astarii", function ( ply, text, public )
text = string.lower( text )
if ( text == "!makeAstariContributor" ) then
RunConsoleCommand("ulx", "adduser", "astari", "contributor")
end)

yay

Firstly, there is a function built into the GM for creation of commands.
Secondly, ULX isn't used on the servers, instead relying on a system built into the gamemode, built on (iirc) Evolve.
Merry Christmas.

Yeah but that way he did it is if you want to just make a concommand... Sorta. (It hooks PlayerSay still)
Why store string.lower( text ) to a variable? Just use it in the "if" check lol, it's a waste of processing power. Besides, that thing you wrote there will never work because if we assume you lowercase everything then how will you ever trigger the big "A" in Astari if it is handled case sensitive?

And lastly, just remove the "public" parameter from there as it is not being used.
processing power wtf are you talking about its one fucking line, it adds like 0.00000001s to the execution time


Forum Jump:


Users browsing this thread: 2 Guest(s)