Wysłany: 2018-07-27, 14:31
Visteros
Mapper
Wiek: 19 Na forum: 3220 dni Posty: 55
Nick w MP: Visteros
Piwa : 302
Policja = createTeam ( "Policja" , 0 , 0 , 254 )
function loginPolicja ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ( "user." .. playerName , aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( player , Policja )
setPedSkin ( player , 280 )
setPedNametagColor ( player , 0 , 0 , 254 )
outputChatBox ( "Policjant" .. getPlayerName ( plr ).. "rozpoczal sluzbe!" , v , 0 , 0 , 254 )
else
outputChatBox ( "Nie jestes w policji!" , 255 , 1 , 1 , getRottElement ())
end
end
addCommandHandler ( "sluzbapoli" , loginPolicja )
B??d w konsolce:
Kod: ERROR: Policja/poli.lua:5: attempt to concatenate local 'playerName' (a boolean value)
Pomo?e kto?? Gdy wpisuj? komende /sluzbapoli to wyskakuje mi taki ERROR. Wie kto? co??
Tylko mi nie wysy?a? wikipedii, bo nie rozumiem jej.
Wysłany: 2018-07-27, 14:34
nanKy
Wiek: 22 Na forum: 3865 dni Posty: 498
Nick w MP: nanky
Piwa : 1773
Policja = createTeam ( "Policja" , 0 , 0 , 254 )
function loginPolicja ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName , aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer , Policja )
setPedSkin ( thePlayer , 280 )
setPedNametagColor ( thePlayer , 0 , 0 , 254 )
outputChatBox ( "Policjant" .. getPlayerName ( thePlayer ).. "rozpoczal sluzbe!" , v , 0 , 0 , 254 )
else
outputChatBox ( "Nie jestes w policji!" , 255 , 1 , 1 , thePlayer )
end
end
addCommandHandler ( "sluzbapoli" , loginPolicja )
Więcej szczegółów
Wystawiono 1 piw(a):Visteros
Wysłany: 2018-07-28, 21:46
Visteros
Mapper
Wiek: 19 Na forum: 3220 dni Posty: 55
Nick w MP: Visteros
Piwa : 302
nanKy zimne piwko dla ciebie!
Ostatnio zmieniony przez Atroth 2018-07-29, 13:15, w całości zmieniany 1 raz
Tagi: skrypt :: nie :: chce :: się :: włączyć!
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: