1
0
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:
kosmik641
2022-04-11 20:53:45 +03:00
parent 0f90ed365d
commit b319760e63
2 changed files with 4 additions and 4 deletions

View File

@@ -2321,8 +2321,8 @@ end
local function sendPanelTouch(panel,x,y,outside,state)
net.Start("metrostroi-panel-touch")
net.WriteString(panel or "")
net.WriteInt(x,11)
net.WriteInt(y,11)
net.WriteUInt(x,11)
net.WriteUInt(y,11)
net.WriteBool(outside)
net.WriteBool(state)
net.SendToServer()

View File

@@ -2219,8 +2219,8 @@ end)
-- 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)
local panel = net.ReadString()
local x = net.ReadInt(11)
local y = net.ReadInt(11)
local x = net.ReadUInt(11)
local y = net.ReadUInt(11)
local outside = net.ReadBool()
local state = net.ReadBool()
local seat = ply:GetVehicle()