Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
Okay, That works!
What I also find confusing is that Lua looks different on each game/API at least for a noob like me it looks different, and then there are styles of coding that are different wit... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-13-2014, 12:16 AM |
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
LO1ZB Wrote: (09-12-2014, 08:34 AM)
--
When you change the name of the function, which is called in the hook, you have to create a function with that name. ;)
--
Right, so, the name of the function... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-12-2014, 08:52 AM |
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
LO1ZB Wrote: (09-12-2014, 07:36 AM)
--
If you set return to true inside the function:
user send command -> enter hook -> enter function -> finish
set it to false:
user send command -> enter hook -... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-12-2014, 08:24 AM |
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
LO1ZB Wrote: (09-12-2014, 05:59 AM)
--
Why do you use the same function for a Hook and a command?
It is called first from the hook, then you after sending the message to the player, you are returnin... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-12-2014, 07:15 AM |
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
Seadragon91 Wrote: (09-12-2014, 04:47 AM)
--
Hello!
Change
Player:GetName(Player)
to
Player:GetName()
SendMessage
to
Player:SendMessage and remove the "Player," there
regards,
Seadragon91
--
Hell... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-12-2014, 05:04 AM |
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
STR_Warrior Wrote: (09-12-2014, 03:55 AM)
--
What errors did you get?
--
And here is the drama the console gave me:
--Warn [21:43:59] LUA: Plugins/STONED/stoned.lua:31: attempt to call global 'S... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-12-2014, 03:58 AM |
|
|
Thread: I can't create any commands.
Post: RE: I can't create any commands.
Hey guys,
First of all, C++ server, Awesome!
Now for my problem,
I seem to have the same errors, but fixing it as detailed above didn't help.
Trying to get a simple command going, but my Lua... |
|
Lo_Pan |
Plugin Discussion
|
20 |
17,910 |
09-12-2014, 03:49 AM |