pb teamradio

  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
bonjour j'ai tous configurer quand je fais !radio sa me dit shift+r mais quand je fais rien ce passe
merci de votre aide
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
Bonjour,

Quand tu es dans le job qui possède la radio. Tu as bien le symbole en haut à droite?
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
nn rien voila mon code


TeamRadio.radioChannel[1] = {
channelName = "Gouvernement",
channelColor = Color( 0, 0, 255 ),
jobs = {"gendarme", "commissaire", "raid"}
}

TeamRadio.radioChannel[1] = {
channelName = "Gouvernement",
channelColor = Color( 0, 0, 254 ),
jobs = {"maire", "garde du maire"}
}

TeamRadio.radioChannel[1] = {
channelName = "Gouvernement",
channelColor = Color( 0, 0, 253 ),
jobs = {"staff"}
}
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
Ok tu as mis
has radio dans ton jobs.lua
?
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
hasRadio = true,
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
a non il faut le mettre a la fin
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
Code:
TeamRadio.radioChannel[1] = { channelName = "Police", channelColor = Color( 0, 0, 255 ), jobs = {"stat","tit","bric","tir","pre",},
}
TeamRadio.radioChannel[2] = { channelName = "Gangster", channelColor = Color( 0, 0, 255 ), jobs = {"surg","cheg","surgv",},
}
TeamRadio.radioChannel[3] = { channelName = "Mafieux", channelColor = Color( 0, 0, 255 ), jobs = {"surm","chem","surmv",},
}
Dans TeamRadio.radioChannel tu ne dois pas mettre le même numéro pour chaque radio.

Aussi dans jobs = j'ai mis les commandes des jobs


[EDIT] le code que j'ai mis, c'est ma config
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
j 'ai pas compris ton message avec les numero
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
ca me met cette erreur
addons/teamsradion/lua/radio/server/sv_teamradio.lua:67
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
Code:
TeamRadio.radioChannel[1] = {
channelName = "Gouvernement",
channelColor = Color( 0, 0, 255 ),
jobs = {"gendarme", "commissaire", "raid"}
}
TeamRadio.radioChannel[2] = {
channelName = "Gouvernement",
channelColor = Color( 0, 0, 254 ),
jobs = {"maire", "garde du maire"}
}
TeamRadio.radioChannel[3] = {
channelName = "Gouvernement",
channelColor = Color( 0, 0, 253 ),
jobs = {"staff"}
Comme sa
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
ouai ces ce que j'ai fait
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
et le has rado me fait de lua erreur voici un métier

TEAM_GENDARME = DarkRP.createJob("gendarme", {
color = Color(16, 3, 255, 255),
model = {"models/player/portal/f_police.mdl",
"models/player/portal/f_police2.mdl",
"models/player/portal/f_police3.mdl",
"models/player/portal/f_police4.mdl",
"models/player/portal/f_police5.mdl",
"models/player/portal/f_police6.mdl",
"models/player/portal/f_police7.mdl"},
description = [[Vous dever faire regner l'ordre dans la ville tous en écoutant votre commissaire]],
weapons = {"weapon_cuff_elastic","weapon_cuff_standard","stunstick","m9k_glock","unarrest_stick","arrest_stick","weaponchecker","weapon_arc_atmcard","weapon_fists","policebadge","door_ram","weapon_stungun"},
command = "gendarme",
max = 6,
salary = 300,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
hasRadio = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)


end
})
 
Mickapette

Mickapette

Psychopathe
Messages
1 126
Score réaction
193
Points
250
Bizarre quoi comme erreur?
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
  • [DarkRP] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 537.
  • The best help I can give you is this:
  • There is an opening '{' bracket at line 523, but this bracket is never closed or not closed in time. It was expected to be closed before the 'hasRadio' at line 537.
  • 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: ({)}.
 
  • Initiateur de la discussion
loui

loui

Geek
Messages
231
Score réaction
5
Points
65
ces bon plus d'erreur sa m'affiche le truc en haut par contre quand je fais shift+r sa fait rien
 
Discord d'entraide
Rejoignz-nous sur Discord