• What'd I mess up on in this code?
    4 replies, posted
If you need more of the script, let me know. The error it gives ingame is: [gamemodes\axiom\gamemode\init.lua:98] attempt to index global 'ply' (a nil value) [php] function RoundStart() if timer.IsTimer("roundtimer1") then timer.IsTimer("roundtimer1") else for k,v in pairs( player.GetAll() ) do if ( v:Alive() && v:Team() > 0 ) then timer.Create("roundtimer1", 480, 0, RoundNotifyStart()) end end end end function RoundNotifyStart() ply:ChatPrint( "Round Started: You have six minutes to locate the cure" ) end [/php]
you haven't posted any errors, that's what you messed up.
Updated, I forgot to do that. The error is now up.
RoundNotifyStart(v) function RoundNotifyStart(ply)
Thanks, works perfect now.
Sorry, you need to Log In to post a reply to this thread.