You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionAdvDupe.SendClientError(ply, errormsg, NoSound)
if ( !IsValid(ply) or !ply:IsPlayer() or !errormsg ) thenreturnendMsgN("AdvDupe: Sending this ErrorMsg to ",tostring(ply),"\nAdvDupe-ERROR: \"",tostring(errormsg).."\"")
umsg.Start("AdvDupeCLError", ply)
umsg.String(errormsg)
umsg.Bool(NoSound)
umsg.End("AdvDupeCLError")
endusermessage.Hook("AdvDupeCLError", AdvDupeCLError)
To become:
if(SERVER) thenutil.AddNetworkString("AdvDupeCLError")
elsefunctionAdvDupeCLError(len, ply)
AdvDupeClient.Error( net.ReadString(), net.ReadBool() )
endnet.Receive("AdvDupeCLError", AdvDupeCLError)
end--- Somewhere in the server codefunctionAdvDupe.SendClientError(ply, errormsg, NoSound)
if ( not (IsValid(ply) andply:IsPlayer()) ) thenreturnend-- Validate player only to check for empty error messagesMsgN("AdvDupe: Sending this error message to ",ply:Nick(),"\nAdvDupe-ERROR: \"",tostring(errormsg ).."\"")
net.Start("AdvDupeCLError")
net.WriteString(errormsg)
net.WriteBool(NoSound)
net.Send(ply)
end
Consider user messages being deprecated:
To become:
AdvDupe1 better switch to the net library.
The text was updated successfully, but these errors were encountered: