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

Wysłany: 2017-12-13, 14:50


EvilXmik







Wiek: 28
Na forum: 3620 dni
Posty: 148
Nick w MP: EvilXmik

Piwa: 399

Respekt: 50

Witam wyskakuje mi DB w 15 linijce w setPlayerTeam


marker createMarker (-6766.26270, -1463.1417296.3"cylinder"1.200255255 )
setElementInterior (marker0)
setElementDimension(marker0)

addEventHandler "onMarkerHit"marker, function(element)
    if isObjectInACLGroup ("user."..getAccountName getPlayerAccount element ) ), aclGetGroup "Everyone" ) ) then
        if getAccountData getPlayerAccount element ), "stary:skin" then
            id tonumber getAccountData getPlayerAccount element ), "stary:skin" ) )
            setPlayerTeam playerGracze )
            setElementModel elementid ) 
            setAccountData getPlayerAccount element ), "stary:skin"false )
        else
            skin tonumber getElementModel element ) )
            setAccountData getPlayerAccount element ), "stary:skin"skin )
            setPlayerTeam playerSAPD )
            setElementModel element280 )
end
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-12-13, 15:10


nomercy







Wiek: 31
Na forum: 3103 dni
Posty: 5
Nick w MP: nomercy*

Piwa: 1

Respekt: 50


marker createMarker (-6766.26270, -1463.1417296.3"cylinder"1.200255255 )
setElementInterior (marker0)
setElementDimension(marker0)

addEventHandler "onMarkerHit"marker, function(element)
    if isObjectInACLGroup ("user."..getAccountName getPlayerAccount element ) ), aclGetGroup "Everyone" ) ) then
        if getAccountData getPlayerAccount element ), "stary:skin" then
            id tonumber getAccountData getPlayerAccount element ), "stary:skin" ) )
            setPlayerTeam player'Gracze' )
            setElementModel elementid ) 
            setAccountData getPlayerAccount element ), "stary:skin"false )
        else
            skin tonumber getElementModel element ) )
            setAccountData getPlayerAccount element ), "stary:skin"skin )
            setPlayerTeam player'SAPD' )
            setElementModel element280 )
end
    end
end)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
EvilXmik
Wysłany: 2017-12-13, 18:47


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

Problem polega w tym, ?e drugi argument setPlayerTeam to string, czyli trzeba by?o wstawi? w cudzys?owiu "Gracze", "SAPD"

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
EvilXmik
Wysłany: 2017-12-16, 17:31


EvilXmik







Wiek: 28
Na forum: 3620 dni
Posty: 148
Nick w MP: EvilXmik

Piwa: 399

Respekt: 50

aha no okey ju? zrobi?em :D
Dzi?ki za pomoc

Postaw piwo autorowi tego posta
 

 
Tagi: jest :: źle
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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