- Initiateur de la discussion
J
jtilleul
Geek
- Messages
- 57
- Score réaction
- 1
- Points
- 60
Bonjour,
Voilà j'ai un petit problème, cela fait plus de 8h que je cherche le problème, mais sans réponse.
Voici l'erreur:
[ERROR] A runtime error has occurred in "addons/moonshinescoreboard/lua/autorun/client/moonshinescoreboard.lua" on line 855.
The best help I can give you is this:
Attempt to call Name/Nick/GetName on a non-existing player!
Hints:
- No hints, sorry.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/moonshinescoreboard/lua/autorun/client/moonshinescoreboard.lua on line 855
------- End of Simplerr error -------
Pourrait vous m'aidez?
Voici aussi le code que j'ai à cette ligne 855
--[[ PLAYER INFO ]]
draw.DrawText(v:Nick(), "bebas32", 40 , -1, cfg.PTColour, TEXT_ALIGN_LEFT) -- Player Namai
draw.DrawText(v:GetUserGroup(), "bebas20", 40, 22, cfg.PTDColour, TEXT_ALIGN_LEFT) -- Player Group Namai
draw.DrawText(v:getDarkRPVar("job"), "bebas32", self:GetWide() /2 + 45, 5, (team.GetColor(v:Team() ) ), TEXT_ALIGN_CENTER) -- Player Job Namai
draw.DrawText(v:Frags(), "bebas32", self:GetWide() - 305, 5, cfg.PTColour, TEXT_ALIGN_CENTER) -- Player Frag Counto
draw.DrawText(veaths(), "bebas32", self:GetWide() - 180, 5, cfg.PTColour, TEXT_ALIGN_CENTER) -- Player Des Counto
if ving() <= 30 then
surface.SetMaterial(SignalGood)
surface.DrawTexturedRect(self:GetWide() - 68,10, 18, 18)
draw.DrawText(ving(),"bebas32", self:GetWide() - 46, 5, Color(0,197,28) ,TEXT_ALIGN_LEFT)
elseif ving() >= 80 then
surface.SetMaterial(SignalBad)
surface.DrawTexturedRect(self:GetWide() - 68,10, 18, 18)
draw.DrawText(ving(),"bebas32", self:GetWide() - 46, 5, Color(255,0,60),TEXT_ALIGN_LEFT)
else
surface.SetMaterial(SignalOK)
surface.DrawTexturedRect(self:GetWide() - 68,10, 18, 18)
draw.DrawText(ving(),"bebas32", self:GetWide() - 46, 5, Color(255,168,0),TEXT_ALIGN_LEFT)
end
--[[ PLAYER INFO END ]]
Voilà, vous pouvez m'aider?
Merci d'avance
Jeremy
Voilà j'ai un petit problème, cela fait plus de 8h que je cherche le problème, mais sans réponse.
Voici l'erreur:
[ERROR] A runtime error has occurred in "addons/moonshinescoreboard/lua/autorun/client/moonshinescoreboard.lua" on line 855.
The best help I can give you is this:
Attempt to call Name/Nick/GetName on a non-existing player!
Hints:
- No hints, sorry.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/moonshinescoreboard/lua/autorun/client/moonshinescoreboard.lua on line 855
------- End of Simplerr error -------
Pourrait vous m'aidez?
Voici aussi le code que j'ai à cette ligne 855
--[[ PLAYER INFO ]]
draw.DrawText(v:Nick(), "bebas32", 40 , -1, cfg.PTColour, TEXT_ALIGN_LEFT) -- Player Namai
draw.DrawText(v:GetUserGroup(), "bebas20", 40, 22, cfg.PTDColour, TEXT_ALIGN_LEFT) -- Player Group Namai
draw.DrawText(v:getDarkRPVar("job"), "bebas32", self:GetWide() /2 + 45, 5, (team.GetColor(v:Team() ) ), TEXT_ALIGN_CENTER) -- Player Job Namai
draw.DrawText(v:Frags(), "bebas32", self:GetWide() - 305, 5, cfg.PTColour, TEXT_ALIGN_CENTER) -- Player Frag Counto
draw.DrawText(veaths(), "bebas32", self:GetWide() - 180, 5, cfg.PTColour, TEXT_ALIGN_CENTER) -- Player Des Counto
if ving() <= 30 then
surface.SetMaterial(SignalGood)
surface.DrawTexturedRect(self:GetWide() - 68,10, 18, 18)
draw.DrawText(ving(),"bebas32", self:GetWide() - 46, 5, Color(0,197,28) ,TEXT_ALIGN_LEFT)
elseif ving() >= 80 then
surface.SetMaterial(SignalBad)
surface.DrawTexturedRect(self:GetWide() - 68,10, 18, 18)
draw.DrawText(ving(),"bebas32", self:GetWide() - 46, 5, Color(255,0,60),TEXT_ALIGN_LEFT)
else
surface.SetMaterial(SignalOK)
surface.DrawTexturedRect(self:GetWide() - 68,10, 18, 18)
draw.DrawText(ving(),"bebas32", self:GetWide() - 46, 5, Color(255,168,0),TEXT_ALIGN_LEFT)
end
--[[ PLAYER INFO END ]]
Voilà, vous pouvez m'aider?
Merci d'avance
Jeremy