Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-09-25, 22:52


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4700 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8

Nie dzia?a mi ten kod:

Kod:

function PanelSAPD ( thePlayer )
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "SAPD" ) ) then
triggerClientEvent( thePlayer, "GUISAPD", thePlayer)
else
outputChatBox ( "Nie jeste? pracownikiem SAPD!",thePlayer)
end
end
addEvent( "PSAPD", true)
addEventHandler( "PSAPD", getRootElement(), OpenPanel )



Debug:

SAPD_S.lua:1: unexpected symbol near '?'

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-09-25, 23:34


PolskiSebek12

Programista






Wiek: 28
Na forum: 4347 dni
Posty: 343
Nick w MP: CrosRoad95

Piwa: 3883

Respekt: 288,8
Respekt: 288,8Respekt: 288,8Respekt: 288,8

Ostrzeżeń: 100%
addEvent( "PSAPD", true)
addEventHandler( "PSAPD", getRootElement(), OpenPanel )


function PanelSAPD ( thePlayer )

2 r??ne nazwy :)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-09-26, 00:32


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
[nt]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-09-26, 00:34


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Damian2511, sprawd? kodowanie pliku, powinno by? utf-8 bez bom.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-09-26, 13:19


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Tak jak DestroY napisal, najlepiej, jakbys mial Notepad ++ do tego i tam zmieniasz na gorze kodowanie.

Jezeli natomiast masz notatnik czy co innego, to to bedzie dzialac:


function PanelSAPD thePlayer local accName getAccountName getPlayerAccount thePlayer ) ) 
if isObjectInACLGroup ("user."..accNameaclGetGroup "SAPD" ) ) then 
triggerClientEventthePlayer"GUISAPD"thePlayer) 
else 
outputChatBox "Nie jestes pracownikiem SAPD!",thePlayerend 
end 
addEvent"PSAPD"trueaddEventHandler"PSAPD"getRootElement(), OpenPanel )


Postaw piwo autorowi tego posta
 

 
Tagi: nie :: działa
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Nie działa Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku