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

Wysłany: 2014-06-22, 23:03


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

maciek3286, Wyskoczy mu b??d badArgument lub expected.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:06


maciek3286

LUA Developer






Wiek: 26
Na forum: 5201 dni
Posty: 230
Nick w MP: maciek00

Piwa: 3207

Respekt: 101,5
Respekt: 101,5

PanMaszyna, niekoniecznie. niech sprawdzi i powinno mu zadzia?a?.

Podpis
"Ludzie będą zawsze dla ciebie źli, jeżeli konieczność nie zmusi ich do tego, by byli dobrzy" ~~ Niccolò Machiavelli
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:07


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

maciek3286, on robi taki b??d, ?e daje tak? sam? nazw? funkcji jak i teamu. Zmienna dostaje najnowsz? warto?? jako funkcja i nie robi si? nic.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:09


maciek3286

LUA Developer






Wiek: 26
Na forum: 5201 dni
Posty: 230
Nick w MP: maciek00

Piwa: 3207

Respekt: 101,5
Respekt: 101,5

PanMaszyna, sorki nie doczyta?em sie dok?adnie kodu. to w takim wypadku wystarczy chyba tylko pozmienia? nazwy zmiennych team?w i powinno dzia?a?.

Podpis
"Ludzie będą zawsze dla ciebie źli, jeżeli konieczność nie zmusi ich do tego, by byli dobrzy" ~~ Niccolò Machiavelli
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:10


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

maciek3286, tak, lecz wyt?umacz mu to, ?e nale?y zmieni? jedynie nazwy zmiennych nie ca?ych nazw kodowych :D

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:12


maciek3286

LUA Developer






Wiek: 26
Na forum: 5201 dni
Posty: 230
Nick w MP: maciek00

Piwa: 3207

Respekt: 101,5
Respekt: 101,5

PanMaszyna, najlepiej to poprawi? i wys?a? mu tu gotowy kod jak to ma wygl?da?. niech sobie to przeanalizuje potem i sie nauczy na przysz?o??. :D

Podpis
"Ludzie będą zawsze dla ciebie źli, jeżeli konieczność nie zmusi ich do tego, by byli dobrzy" ~~ Niccolò Machiavelli
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:13


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3


function Chat(messagemsgtypelocal Gracz getPlayerName(source) 
if (msgtype == 0then 
cancelEvent() 
local redgreenblue getPlayerNametagColor(sourceoutputChatBox(""..Gracz..": "..messagerootredgreenbluetrueend 
end 
addEventHandler("onPlayerChat"rootChatCywile createTeam "Cywile"255255255 politeamx createTeam "Policja"0100255 Pogotowie createTeam "Pogotowie"20220220 PomocDrogowa createTeam "PomocDrogowa"20030230 Taxi createTeam "Taxi"255200OSP createTeam "OSP"2500PSP createTeam "PSP"2500) 


function Policja thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "Policja" ) ) then 
setPlayerTeam thePlayerpoliteamx giveWeapon thePlayer315000 giveWeapon thePlayer225000 giveWeapon thePlayer35000 setElementModel thePlayer281 setElementPosition thePlayer, -1616.0999755859683.299987792977.1999998092651 ) 
else 
outputChatBox"Nie jestes pracownikiem Policji"thePlayer0100255falseend 
end 
addCommandHandler "loginpolicja"Policja ) 


function Pogotowie thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "Pogotowie" ) ) then 
setPlayerTeam thePlayerPogotowie setElementModel thePlayer274 setElementPosition thePlayer, -2549672.9000244140627.799999237061 ) 
else 
outputChatBox"Nie jestes pracownikiem Pogotowia"thePlayer20220220falseend 
end 
addCommandHandler "loginpogo"Pogotowie ) 


function PomocDrogowa thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "PomocDrogowa" ) ) then 
setPlayerTeam thePlayerPomocDrogowa setElementModel thePlayer260 setElementPosition thePlayer, -1539.1623535156475.251800537116.8367257118225 ) 
else 
outputChatBox"Nie jestes pracownikiem PomocyDrogowej"thePlayer20030230falseend 
end 
addCommandHandler "loginpd"PomocDrogowa ) 


function OSP thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "OSP" ) ) then 
setPlayerTeam thePlayerOSP giveWeapon thePlayer4210000 setElementModel thePlayer277 setElementPosition thePlayer, -584.90002441406, -1055.800048828123.5 ) 
else 
outputChatBox"Nie jestes pracownikiem OSP"thePlayer25000falseend 
end 
addCommandHandler "loginosp"OSP ) 


function Taxi thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "Taxi" ) ) then 
setPlayerTeam thePlayerTaxi setElementModel thePlayer262 setElementPosition thePlayer, -1982.1999511719884.0999755859445.200000762939 ) 
else 
outputChatBox"Nie jestes pracownikiem Taxi"thePlayer2552000falseend 
end 
addCommandHandler "logintaxi"Taxi ) 


function PSP thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "PSP" ) ) then 
setPlayerTeam thePlayerPSP giveWeapon thePlayer4210000 setElementModel thePlayer279 setElementPosition thePlayer, -2360.5148.3000030517634.5 ) 
else 
outputChatBox"Nie jestes pracownikiem PSP"thePlayer25000falseend 
end 
addCommandHandler "loginpsp"PSP 
Prosz? szanowny kolego ;)
Licz? na :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:19


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Dzi?ki panowie, dostajecie razem po :piwo: :) Przeanalizuje to sobie :) Dzi?ki jeszcze raz !

[ Dodano: 2014-06-22, 23:20 ]
Macie po kilka :piwo: :)

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:20


maciek3286

LUA Developer






Wiek: 26
Na forum: 5201 dni
Posty: 230
Nick w MP: maciek00

Piwa: 3207

Respekt: 101,5
Respekt: 101,5

Maximerr, jak juz robisz to zr?b to dok?adnie. zrobi?e? tylko z 1 frakcj?. tu masz ju? wszystkie poprawione.

function Chat(messagemsgtypelocal Gracz getPlayerName(source) 
if (msgtype == 0then 
cancelEvent() 
local redgreenblue getPlayerNametagColor(sourceoutputChatBox(""..Gracz..": "..messagerootredgreenbluetrueend 
end 
addEventHandler("onPlayerChat"rootChatCywile createTeam "Cywile"255255255 politeamx createTeam "Policja"0100255 pogoteamx createTeam "Pogotowie"20220220 pdteamx createTeam "PomocDrogowa"20030230 taxiteamx createTeam "Taxi"255200ospteamx createTeam "OSP"2500pspteamx createTeam "PSP"2500) 


function Policja thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "Policja" ) ) then 
setPlayerTeam thePlayerpoliteamx giveWeapon thePlayer315000 giveWeapon thePlayer225000 giveWeapon thePlayer35000 setElementModel thePlayer281 setElementPosition thePlayer, -1616.0999755859683.299987792977.1999998092651 ) 
else 
outputChatBox"Nie jestes pracownikiem Policji"thePlayer0100255falseend 
end 
addCommandHandler "loginpolicja"Policja ) 


function Pogotowie thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "Pogotowie" ) ) then 
setPlayerTeam thePlayerpogoteamx setElementModel thePlayer274 setElementPosition thePlayer, -2549672.9000244140627.799999237061 ) 
else 
outputChatBox"Nie jestes pracownikiem Pogotowia"thePlayer20220220falseend 
end 
addCommandHandler "loginpogo"Pogotowie ) 


function PomocDrogowa thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "PomocDrogowa" ) ) then 
setPlayerTeam thePlayerpdteamx setElementModel thePlayer260 setElementPosition thePlayer, -1539.1623535156475.251800537116.8367257118225 ) 
else 
outputChatBox"Nie jestes pracownikiem PomocyDrogowej"thePlayer20030230falseend 
end 
addCommandHandler "loginpd"PomocDrogowa ) 


function OSP thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "OSP" ) ) then 
setPlayerTeam thePlayerospteamx giveWeapon thePlayer4210000 setElementModel thePlayer277 setElementPosition thePlayer, -584.90002441406, -1055.800048828123.5 ) 
else 
outputChatBox"Nie jestes pracownikiem OSP"thePlayer25000falseend 
end 
addCommandHandler "loginosp"OSP ) 


function Taxi thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "Taxi" ) ) then 
setPlayerTeam thePlayertaxiteamx setElementModel thePlayer262 setElementPosition thePlayer, -1982.1999511719884.0999755859445.200000762939 ) 
else 
outputChatBox"Nie jestes pracownikiem Taxi"thePlayer2552000falseend 
end 
addCommandHandler "logintaxi"Taxi ) 


function PSP thePlayer local playerName getAccountName getPlayerAccount thePlayer ) )    
if isObjectInACLGroup "user." .. playerNameaclGetGroup "PSP" ) ) then 
setPlayerTeam thePlayerpspteamx giveWeapon thePlayer4210000 setElementModel thePlayer279 setElementPosition thePlayer, -2360.5148.3000030517634.5 ) 
else 
outputChatBox"Nie jestes pracownikiem PSP"thePlayer25000falseend 
end 
addCommandHandler "loginpsp"PSP 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 23:25


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Dzi?ki jeszcze raz panowie ! Naprawd? mi pomogli?cie :) Dorobi?em sobie tak do reszty frakcji i teraz wszystko dzia?a :D Dzi?kuj? !

[ Dodano: 2014-06-22, 23:26 ]
Nie trzeba, sam sobie dorobi?em reszt? na wz?r :)

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-23, 22:15


Fanciak

BOT






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

Piwa: 1572

Respekt: 500
Respekt: 500

Mi to nie dzia?a... da?em ten kod do team.lua mete normaln? mam i na serwie nic... nie pojawia si? nic na TAB.

Pomocy, dam piwko.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-24, 00:08


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

To zale?y gdzie to da?e?, bo jaj mam ca?kiem inaczej zrobione to. Nie mam go dodanego do resource, tylko jest to w moim gamemodzie :D Mog? pokaza? jak mam gamemoda zrobionego

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-24, 11:24


Fanciak

BOT






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

Piwa: 1572

Respekt: 500
Respekt: 500

Rozumiem, ?e musz? do gamemodu swojego a nie do resources, tak ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-24, 14:18


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Tak, ale w mecie gamemodu musisz napisa? o tym skryptcie? Poda? jak ja mam ?

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-25, 00:00


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3


<meta>
<script src="?cie?ka" type="server" />
</meta>

W twoim przypadku b?dzie to server.

Postaw piwo autorowi tego posta
 

 
Tagi: frakcje
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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