Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: dwa
1. Dwa bledy w pracy jeden przy rozpoczęciu drugi przy zakończe
Witam, gdy rozpoczynam prac? i ko?czepojawiaj? mi si? dwa blendy

Kod:


ERROR: Client (#800080Konrad) triggered serverside event destroyVeh, but event is not added serverside
Oraz
ERROR: Server triggered clientside event STARTJobBus, but event is not added clientside
[/code]

Pom?g?by kto??
2. Dwa skrypty powodują lagi serwera/client
Witam

Mam takie pytanie a wi?c nie wiem dlaczego i co jest przyczynom ale jak patrz? w tabelce client to tam s? podane 2 skrypty kt?re obci??aj? najwi?cej serwer i te skrypty to: skrypt na og?oszenia obci??a serwer 63.15% a skrypt markery obci??a serwer 8.59%. Prosz? o szybk? pomoc w rozwi?zaniu problemu z skryptami i powiedzeniu mi co mo?e by? z nimi nie tak
3. dwa napisy vopis
Witam mam paczk? nice life 4.0 bodajrze i mam np na skuterku napisane nice life i ten napis jest w razy tutaj macie ss https://imgur.com/a/1ZvgQDU
wy?oncza?em wszystkie skrpyty gdzie pisze text ale nadal nic
4. Dwa różne skrypty w jednym markerze
Witam mam dziwny problem. Ot?? mam dwa ca?kiem inne skrypty w ca?kiem innej mecie, a dzieje si? takie co? https://imgur.com/a/VplnM1W


DWA KODY

Client w syrenie OSP !
[lua]
x,y = guiGetScreenSize()
button = guiCreateButton(627/1440*x, 510/900*y, 209/1440*x, 123/900*y, "Uruchom Syrene", false)
guiSetProperty(button, "NormalTextColour", "FFAAAAAA")
guiSetVisible(button, false)

function drawSyrena()
dxDrawRectangle(600/1440*x, 278/900*y, 261/1440*x, 372/900*y, tocolor(0, 0, 33, 184), false)
dxDrawRectangle(590/1440*x, 265/900*y, 289/1440*x, 16/900*y, tocolor(187, 0, 0, 255), false)
dxDrawText("Syrena OSP Fort Carson", 616/1440*x, 346/900*y, 851/1440*x, 445/900*y, tocolor(255, 255, 255, 255), 3.00, "default", "center", "center", false, false, false, false, false)
end

addEvent("showGUI", true)
addEventHandler("showGUI", getRootElement(), function()
guiSetVisible(button, true)
addEventHandler("onClientRender", getRootElement(), drawSyrena)
showCursor(true, false)
end)

addEvent("hideGUI", true)
addEventHandler("hideGUI", getRootElement(), function()
guiSetVisible(button, false)
removeEventHandler("onClientRender", getRootElement(), drawSyrena)
showCursor(false)
panel=false
end)

addEventHandler("onClientGUIClick", button, function()
triggerServerEvent("playSyrena_s", getLocalPlayer...
5. Dwa radary
Tak jak w temacie, mam dwa radary, nowy i standardowy, jak usun?? standardowy? Zapomnia?em jak si? usuwa?o ;_;
6. Pojawiaja mi sie auta dwa razy te same
Witam, skrypt dzialal mi dobrze do czasu az przelozylem go do innego serwera.Teraz mam auta dwa razy te same a w kodzie tego nie ma.


http://imgur.com/a/0WRrk

za dobra odpowiedz stawiam Zimne Piwko.
7. DWA CHATY
Witam zrobi?em skrypt na tagi i mam dwa czaty jeden z tagiem drugi nie jak mam usun?? ten bez tagu ?
8. Dwa GUI w jednym zasobie
Witam
M?j problem polega na tym i? mam w jednym skrypcie 2 GUI. W przypadku pierwszego wszystko dzia?a poprawnie, w przypadku drugiego po wystartowaniu zasobu GUI od razu pojawia si? na ekranie i tu jest w?a?nie problem.
Oto kawa?ki kodu odpowiedzialne za w??czanie/wy??czanie GUI:

Client 1:
[lua] GUIEditor = {
button = {},
window = {}
}
GUIEditor.window[1] = guiCreateWindow(x, y, w, h, "Podno?nik", false)
GUIEditor.button[1] = guiCreateButton(x3, y3, w3, h3, "Poziom 3", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(x2, y2, w2, h2, "Poziom 2", false, GUIEditor.window[1])
GUIEditor.button[3] = guiCreateButton(x1, y1, w1, h1, "Poziom 1", false, GUIEditor.window[1])



--GUI ON/OF
function pokazz ()
if ( guiGetVisible ( GUIEditor.window[1]) == true ) then
guiSetVisible ( GUIEditor.window[1], false )
end
end
addEventHandler("onClientResourceStart", resourceRoot,pokazz)

--GUI
addEvent("poka", true)
addEventHandler("poka", root, function(player)
guiSetVisible ( GUIEditor.window[1], true)
showCursor (true,false)
toggleControl( "fire", false)
end)

addEventHandler ( "onClientMarkerLeave", cm, function()
guiSetVisible ( GUIEditor.window[1], false)
showCursor (false,false)
toggleControl( "fire", true)
end)[/lua]

Client 2:
[lua] --GUI 2
GUIEditor = {
butto...
9. Dwa sposoby na zmianę serialu w mta
#1: Kup nowy PC.

#2:

2.1: Zainstaluj dowolny Linux, p??niej WINE i gta... :)
2.2: Je?li masz system starszy ni? windows 8 zr?b czyst? instalacj? (czyli format+instalacja) windowsa 8. ?semka inaczej 'czyta' hardawre przez co dostajemy inny serial.

pozdr?wka
10. Dwa kody
Witam mam dla was 2 kody mety z b??dami ale nie wiem gdzie s? b??dy.Prosz? o wykrycie ich i poprawienie.
1.
Kod:

<meta>
<info author="__Vector__" name="czat" version="1.0" type="script" description="Just a Chat in 3D!" />
<script src="s_chat_system.lua" type="server"/>
<script src="c_chat_system.lua" type="client"/>
<script src="c_chatbubbles.lua" type="client"/>
<script src="s_stats.lua" type="server"/>
<script src="c_chat_icon.lua" type="client"/>
<script src="s_chat_icon.lua" type="server"/>
<file src="chat.png"/>

<export function="trunklateText" type="server"/>
<export function="localIC" type="server"/>
<export function="localShout" type="server"/>
<export function="departmentradio" type="server"/>
</meta>

2.
Kod:


<meta>
<info author="__Vector__" name="chat3d" version="1.0" type="script" description="Just a Chat in 3D!" />
<script src="client.lua" type="client" />
<script src="server.lua" type="server" />
</meta>


POMOC= jeszcze zimne :piwo:
11. [INNE] Dwa razy to samo.
Witam.Doda?em do mapy kod kt?ry jest odpowiedzialny za to ?eby wy?wietli? ID graczy itp.Po dodaniu go do mapki ujrza?em co? takiego: http://www.iv.pl/images/84499879854874806594.png jak mo?na to naprawi? by by? widoczny tylko 1 napis ? Za pomoc jak zawsze piwko ;)
12. [INNE] Mam dwa pytanka dotyczące vipa i komendy /sklep .
Nie wiedzia?em gdzie to napisa? wi?dz tu napisa?em, je?li z?y dzia? to prosz? przenie?? do prawid?owego, a nie do kosza, z g?ry dzi?kuj? .

No wi?dz mam dwie sprawy :
1.Chc? zrobi? komend? /sklep lecz nie wiem jak najlepiej jak ktos na gotowo napisze tylko tam gdzie mam tekst napisa? to niech napisze ''tutaj tekst"
2.No wi?dz chc? vipa ale chc? ustawi? do kiedy dana osoba b?dzie go mia?a z g?ry dzi?kuj? i pozdrawiam :)
13. [GF] Dwa interiory w jednym kodzie.
Witam.
Napisa?em ten temat bo mam problem a dok?adniej posiadam dwa interiory w jednym kodzie bo chcia?bym to zrobi? jako skrypt ,ale wyskakuj? errory ;//

Kod :

[code]//Obiekty by blackelegy
//Zakaz kopiowania na inne fora!
//Specjalnie dla larency-rp

#include <a_samp>
public OnFilterScriptInit()

//Obiekty banku :
CreateObject(14789, 1424.6903, -1004.0662, 1643.0187, 0, 0, 90);
CreateObject(2774, 1433.0262, -1004.6439, 1635.8198, 0, 0, 0);
CreateObject(2774, 1429.297, -1004.6187, 1641.2811, 0, 0, 0);
CreateObject(2774, 1440.957, -979.6821, 1640.2977, 0, 0, 0);
CreateObject(2774, 1429.3372, -979.5453, 1639.7234, 0, 0, 0);
CreateObject(2774, 1449.3141, -984.505, 1648.0232, 0, 0, 0);
CreateObject(2774, 1413.9141, -984.5154, 1643.0735, 0, 0, 0);
CreateObject(1886, 1448.5101, -1003.6429, 1647.094, 19.767, 0, 223.3584);
CreateObject(1886, 1414.7065, -980.6044, 1647.0616, 19.767, 0, 43.3584);
CreateObject(2774, 1430.4169, -999.0173, 1638.7224, 0, 269.7592, 0);
CreateObject(2774, 1408.1493, -998.9968, 1638.7224, 0, 269.7592, 180);
CreateObject(2774, 1443.5773, -986.6346, 1638.7234, 0, 269.7592, 270);
CreateObject(2774, 1443.6045, -998.9982, 1647.7975, 0, 0, 0);
CreateObject(11359, 1414.3562, -988.9854, 1639.7959, 0, 0, 90);
CreateObject(2774, 1413.9274, -986.0117, 1643.047, 0, 0, 270);
CreateObject(2774, 1413.7637, -992.0854, 1643.6733, 0, 0, 0);
CreateObject(626, 1427.5546, -997.323, 1640.7665, 0, 0, 135);
CreateObject(626, 1427.4883, -990.75...
14. [INNE] Jak zrobić komende na frezze i unfrezze gracza, oraz
Jak zrobi? komende na frezze i unfrezze gracza, oraz dwa gui?

Mam neony w gui i zrobi?em sobie radio w gui, lecz jak wpisuje /radio to pokazuje mi neony i wlacza neony, a jak /neony to to samo. Co? mi si? tak buguje te gui. Jak to naprawi?? :( .
15. Chat dwa słowa
Witam.
Mam skrypt kt?ry zmienia kolor chatu tylko osobom z grupy Admin. Tzn jesli jestes adminem do piszesz na kolor niebieski a inni na bia?y (podstawowy). Moje pytanie jest takie: dlaczego jak w??cze ten skrypt to osoba kt?ra pisze to wysy?a dwie wiadomosci ?

Kod:

function setPlayerChatColor(message, messageType)
if (messageType == 0) then
local thePlayer = getPlayerName(source)
cancelEvent()
if not (getPlayerTeam(source) == shcteam) then
local team = getPlayerTeam(source)
local r,g,b
if (team) then
r,g,b = getTeamColor(team)
else
r,g,b = 231, 106, 12
end
message = string.gsub(message,"fuck","****")
message = string.gsub(message,"bitch","*****")
message = string.gsub(message,"ficken","******")
message = string.gsub(message,"wixxer","******")
message = string.gsub(message,"arsch","*****")
outputChatBox(thePlayer.. ': #FFFFFF' ..tostring(message),getRootElement(),r,g,b,true)
else
local r,g,b = getTeamColor(shcteam)
outputChatBox(thePlayer.. ': #00E5FF' ..tostring(message),getRootElement(),r,g,b,true)
end
end
end
addEventHandler( "onPlayerChat", getRootElement(), setPlayerChatColor )