• net.ReadType: Couldn't read type 215
    3 replies, posted
Im getting this error in : CLIENTSIDE [CODE]net.Receive("open_borsa_menu",function() local allA = net.ReadTable().allA local allB = net.ReadTable().allB local allC = net.ReadTable().allC local riskA = net.ReadTable().riskA local riskB = net.ReadTable().riskB local riskC = net.ReadTable().riskC local max = net.ReadTable().max [/CODE] SERVERSIDE [CODE] local t = {} t.allA = allA t.allB = allB t.allC = allC t.riskA = riskA t.riskB = riskB t.riskC = riskC t.max = max net.Start("open_borsa_menu") net.WriteTable(t) net.Send(ply)[/CODE]
You can only use net.ReadWhatever once. Example: [lua] local tab = net.ReadTable() local allA = tab.allA local allB = tab.allB local allC = tab.allC [/lua] etc
[QUOTE=meharryp;48093530]You can only use net.ReadWhatever once. Example: [lua] local tab = net.ReadTable() local allA = tab.allA local allB = tab.allB local allC = tab.allC [/lua] etc[/QUOTE] ty i will try that
[QUOTE=meharryp;48093530]You can only use net.ReadWhatever once. Example: [lua] local tab = net.ReadTable() local allA = tab.allA local allB = tab.allB local allC = tab.allC [/lua] etc[/QUOTE] To be more precise, you can only read things as much times as you wrote them. If you wrote 2 integers, you can only read two integers. If you wrote one table ( Once net.WriteTable() call ), you can only read one table ( one net.ReadTable() call )
Sorry, you need to Log In to post a reply to this thread.