Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Help and Support v
« Previous 1 … 17 18 19 20 21 Next »
E2 Function timers [BROKEN]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
E2 Function timers [BROKEN]
08-08-2014, 09:54 PM,
#1
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
E2 Function timers [BROKEN]
Hello!

I recently joined to this server and tried out my E2 scripts. I tried to use function timers but for some reason those timers just do not call my functions.

Now you ask maybe I did it wrong? Well I didn't because when I set wrong function name to the timer it notified me.

Then I asked myself maybe I did it wrong and then I tried the example from this forums. Well the original version is using hint instead of print and is missing one ) but anyway this does not work. It does not print a thing.

Code:
@name Function timer test @inputs A B C function midPoint(A, B) #Hint the mid point between the numbers A and B. { print( toString( ( A + B / 2 ), 7 )) } #After one second and only once, run the midPoint() function with arguments given by the inputs A and B. timer(1000,1,"midpoint","midPoint(nn)",A, B) function entity:checkID(ID) #Hint if the number given matches the entity's ID. { if(This:id() == ID) { hint("ID: "+ID+" matched.",7) } else { hint("ID did not match.",7) } } #Every 5 seconds, repeated infinitely, run the checkID function on the owner with argument given by the input C. timer(5000,0,"IDCheck","checkID(e:n)",owner(),C)

I even tried this:
Code:
Think=50 timer(Think,0,"Think","think()") function think() { print("print lol") }
But well it never printed the text.

Im lua coder myself so I can help to resolve this issue if its required.

LocInt

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
08-08-2014, 10:44 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: E2 Function timers [BROKEN]
The extension was a very old version. I've updated it now so it ought to work.
Find
Reply
08-08-2014, 10:51 PM, (This post was last modified: 08-08-2014, 10:59 PM by LocInt.)
#3
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: E2 Function timers [BROKEN]
Great! Works now!

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.