Le customcheck génere des erreurs lua

  • Initiateur de la discussion juju26
  • Date de début
  • Initiateur de la discussion
juju26

juju26

Nouveau né
Messages
57
Score réaction
0
Points
25
Quand j'ajoute la ligne du customcheck mon serveur génere une erreur lua ! Voila mon jobs.lua entier : Darkrp customcheck lua error - Pastebin.com
Je vous met mon erreur lua ci dessous :

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 72.
The best help I can give you is this:

There is an opening '{' bracket at line 45, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 72.

Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 716.
The best help I can give you is this:

DarkRP was unable to introduce player "Jules Luccini" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

------- End of Simplerr error -------
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
manque une virgule apres la category ligne 71
 
xLomble77

xLomble77

Psychopathe
Messages
2 191
Score réaction
348
Points
290
Résolu ? @juju26
 
  • Initiateur de la discussion
juju26

juju26

Nouveau né
Messages
57
Score réaction
0
Points
25
Résolu , merci beaucoup ! Seul problème c'est que le message "VIP seulement !" ne s'affiche pas quand je clique sur le metier en étant pas vip mais bon pas grave je ferais avec ^^ .
 
alibert640

alibert640

Geek suprême
Messages
149
Score réaction
12
Points
115
juju26 à dit:
Résolu , merci beaucoup ! Seul problème c'est que le message "VIP seulement !" ne s'affiche pas quand je clique sur le metier en étant pas vip mais bon pas grave je ferais avec ^^ .
Bonjour,


Code:
 customCheck = function(ply) return CLIENT or table.HasValue({"VIP", "superadmin", "admin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "Vip seulement !",
Essaye avec celui la
 
  • Initiateur de la discussion
juju26

juju26

Nouveau né
Messages
57
Score réaction
0
Points
25
Est ce code affichera le message ?
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
oui
 
Discord d'entraide
Rejoignz-nous sur Discord