- Initiateur de la discussion
Grainbox
Geek
- Messages
- 99
- Score réaction
- 5
- Points
- 95
Je ne comprends pas, je lance le net.Start en appuyant sur un bouton:
je réceptionne dans le init.lua:
Lua Error:
[npc_acheteur] Warning! A net message (FinMission) is already started! Discarding in favor of the new message! (FinMission)
1. DoClick - addons/npc_acheteur/lua/entities/npc_acheteur/cl_init.lua:75
2. unknown - lua/vgui/dlabel.lua:237
Lua Error:
[DLib] Warning! A net message (FinMission) is already started! Discarding in favor of the new message! (DLib.getinfo.replicate)
1. ReplicateNow - lua/dlib/modules/getinfo.lua:156
2. unknown - lua/dlib/modules/getinfo.lua:149
Code:
local Button1 = vgui.Create("DButton", BasicFrame) Button1:SetPos(410, 360) Button1:SetSize(400, 100) Button1:SetText("Vendre") Button1.DoClick = function() net.Start("FinMission") BasicFrame:Close() end
end
Code:
net.Receive("FinMission", function(len, ply) local playerPathRestart = "npc_dealer/firstmission/restart/" .. ply:SteamID64() .. ".txt" if ( !file.Exists( playerPathRestart, "DATA" ) ) then DarkRP.notify(ply,0,7,"Vous avez terminé la mission. Bravo!") DarkRP.notify(ply,0,7,"Pascal vous à donné 100€") ply:addMoney(100) elseif ( file.Exists( playerPathRestart, "DATA" ) ) then DarkRP.notify(ply,0,7,"Vous avez terminé la mission mais vous n'êtes pas payé.") end
end)
[npc_acheteur] Warning! A net message (FinMission) is already started! Discarding in favor of the new message! (FinMission)
1. DoClick - addons/npc_acheteur/lua/entities/npc_acheteur/cl_init.lua:75
2. unknown - lua/vgui/dlabel.lua:237
Lua Error:
[DLib] Warning! A net message (FinMission) is already started! Discarding in favor of the new message! (DLib.getinfo.replicate)
1. ReplicateNow - lua/dlib/modules/getinfo.lua:156
2. unknown - lua/dlib/modules/getinfo.lua:149
Dernière édition: