mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
gmod_subway_base.
net.WriteInt поменял на net.WriteUInt в metrostroi-panel-touch
This commit is contained in:
@@ -2321,8 +2321,8 @@ end
|
|||||||
local function sendPanelTouch(panel,x,y,outside,state)
|
local function sendPanelTouch(panel,x,y,outside,state)
|
||||||
net.Start("metrostroi-panel-touch")
|
net.Start("metrostroi-panel-touch")
|
||||||
net.WriteString(panel or "")
|
net.WriteString(panel or "")
|
||||||
net.WriteInt(x,11)
|
net.WriteUInt(x,11)
|
||||||
net.WriteInt(y,11)
|
net.WriteUInt(y,11)
|
||||||
net.WriteBool(outside)
|
net.WriteBool(outside)
|
||||||
net.WriteBool(state)
|
net.WriteBool(state)
|
||||||
net.SendToServer()
|
net.SendToServer()
|
||||||
|
|||||||
@@ -2219,8 +2219,8 @@ end)
|
|||||||
-- Receiver for panel touchs, Checks if people are the legit driver and calls buttonevent on the train
|
-- Receiver for panel touchs, Checks if people are the legit driver and calls buttonevent on the train
|
||||||
net.Receive("metrostroi-panel-touch", function(len, ply)
|
net.Receive("metrostroi-panel-touch", function(len, ply)
|
||||||
local panel = net.ReadString()
|
local panel = net.ReadString()
|
||||||
local x = net.ReadInt(11)
|
local x = net.ReadUInt(11)
|
||||||
local y = net.ReadInt(11)
|
local y = net.ReadUInt(11)
|
||||||
local outside = net.ReadBool()
|
local outside = net.ReadBool()
|
||||||
local state = net.ReadBool()
|
local state = net.ReadBool()
|
||||||
local seat = ply:GetVehicle()
|
local seat = ply:GetVehicle()
|
||||||
|
|||||||
Reference in New Issue
Block a user