Problème avec le vip

  • Initiateur de la discussion VAVA Fonda Swinrp
  • Date de début
  • Initiateur de la discussion
VAVA Fonda Swinrp

VAVA Fonda Swinrp

Geek
Messages
12
Score réaction
0
Points
80
Bonjour je rencontre un promblème avec le VIP quand je met cette ligne de code:
TEAM_GANG = DarkRP.createJob("ChefYakuza[VIP]", { (ligne 790)
color = Color(0, 0, 0, 255),
model = {
"models/sd/players/[soy_grappler].mdl",
"models/sd/players/[dbs_grappler].mdl",
"models/sd/players/[dbs_grappler_2].mdl"
},
description = [[Vous devez vous inposé devant les autres gangs]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "unarrest_stick", "m9k_honeybadger","itemstore_pickup"},
command = "yakuzav",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gangsters"
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "VIP+" end, (ligne 807)
})

Ma console me dit qu'il faut fermer un paranthèse,voi l'erreur :
There is an opening '{' bracket at line 790, but this bracket is never closed or not closed in time. It was expected to be closed before the '(' at line 807.

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: ({)}.
 
Guthen

Guthen

è_é
Messages
233
Score réaction
84
Points
150
Salut,
Tu as oublié une virgule après category = "Gangsters".
 
  • Initiateur de la discussion
VAVA Fonda Swinrp

VAVA Fonda Swinrp

Geek
Messages
12
Score réaction
0
Points
80
Merci :)
 
S

sparto6000

Sparto50
Messages
4
Score réaction
0
Points
5
j'ai un problème pour mettre un job en vip

26/02/2022 18:43:05
Lua Error:
[ERROR] gamemodes/darkrp/gamemode/libraries/simplerr.lua:528: [ERROR] A runtime error has occurred in "customCheck" on line 1.
The best help I can give you is this:
Something is being called like it is a function, but in reality it is a userdata.
Hints:
- You are doing something(). The 'something' here is not a function.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. customCheck on line 1
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
6. gamemodes/darkrp/gamemode/modules/jobs/sv_jobs.lua on line 46
7. gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua on line 226
8. gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua on line 17
9. gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua on line 325
10. lua/includes/mo
[ERROR] gamemodes/darkrp/gamemode/libraries/simplerr.lua:528: [ERROR] A runtime error has occurred in "customCheck" on line 1.
The best help I can give you is this:
Something is being called like it is a function, but in reality it is a userdata.
Hints:
- You are doing something(). The 'something' here is not a function.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. customCheck on line 1
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
6. gamemodes/darkrp/gamemode/modules/jobs/sv_jobs.lua on line 46
7. gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua on line 226
8. gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua on line 17
9. gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua on line 325
10. lua/includes/modules/concommand.lua on line 54

comment je peux le régler merci
 
Discord d'entraide
Rejoignz-nous sur Discord