N9.Xzi Posted January 28, 2016 Share Posted January 28, 2016 Hey guys. I'm now install toptime addon for race mode. And have this two debug errors: The serverside: function onUpdateLine (number) ttcounter = tostring(tonumber(number)) triggerClientEvent ("onUpdateLine", getRootElement(), ttcounter) end function onTTcounterUpdate (check) if (not ttcounter) then ttcounter = 0 end if(check)then triggerClientEvent (source,"onUpdateLine", getRootElement(), ttcounter) else triggerClientEvent ("onUpdateLine", getRootElement(), ttcounter) end end addEvent ( "onTTcounterUpdate", true) addEventHandler ( "onTTcounterUpdate", getRootElement(), onTTcounterUpdate) The clientside: addEvent("onUpdateLine", true) function onUpdateLine (number) ttcounter = tostring(tonumber(number)) end addEventHandler("onUpdateLine", getRootElement(), onUpdateLine) META file: <script src="_common_tt.lua" type="server"/> <script src="util_tt_server.lua" type="server"/> <script src="databasetable_server.lua" type="server"/> <script src="maptimes_server.lua" type="server"/> <script src="toptimes_server.lua" type="server"/> <script src="_common_tt.lua" type="client"/> <script src="util_tt_client.lua" type="client"/> <script src="toptimes_client.lua" type="client"/> What the problem I'm have? Guys help please! Link to comment
vx89 Posted January 28, 2016 Share Posted January 28, 2016 https://forum.multitheftauto.com/viewtopic.php?f=91&t=96309 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now