Tematy otagowane jako: podpięciem
1. Wytłumaczenie z podpieciem argumentu ThePlayer
Witam przychodz? z problemem i te? prosz? o wyjasnienie na czym polega soruce,thePlayer dodaje do funkcji thePlayer,source,vehicle i za ka?dym razem at argument 1 got nill nie rozumiem ?e w jednym daje sie to w 2 daje si? to prosze o wyja?nienie jak i o pomoc w skrypice
addEvent( "siren1" , true )
addEventHandler ( "siren1" , root ,function( targetElem , thePlayer , vehicle , seat )
-- local vehicle = getElementType ( targetElem )== "vehicle"
local vehicle = getPedOccupiedVehicle ( vehicle )
id = getElementModel ( vehicle )
if ( seat == 0 ) then
if ( id == 597 ) then
addVehicleSirens ( targetElem , 2 , 2 )
setVehicleSirens ( targetElem , 1 , - 0.3 , 0 , 0.8 , 0 , 0 , 255 , 255 , 255 )
setVehicleSirens ( targetElem , 2 , 0.3 , 0 , 0.8 , 255 , 0 , 0 , 255 , 255 )
end
end
end )
2. podpięciem bazy danych i logowaniem
Witam,
Mam problem z podpi?ciem bazy danych wy?wietla si? takie co?
Kod: [21-10-27 17:55] ERROR: new-logging/s_logging.lua:49: call: failed to call 'pystories-db:dbGet' [string "?"]
[21-10-27 17:55] ERROR: new-logging/s_logging.lua:53: call: failed to call 'pystories-db:dbGet' [string "?"]
[21-10-27 17:55] ERROR: new-logging/s_logging.lua:57: call: failed to call 'pystories-db:dbSet' [string "?"]
[21-10-27 17:55] ERROR: new-logging/s_logging.lua:49: call: failed to call 'pystories-db:dbGet' [string "?"] [DUP x4]
[21-10-27 17:55] ERROR: new-logging/s_logging.lua:53: call: failed to call 'pystories-db:dbGet' [string "?"] [DUP x4]
[21-10-27 17:55] ERROR: new-logging/s_logging.lua:57: call: failed to call 'pystories-db:dbSet' [string "?"] [DUP x4]
[21-10-27 17:55] ERROR: new-logging/s_logging.lua:10: call: failed to call 'pystories-db:dbGet' [string "?"]
Prosz? o pomoc
[ Dodano : 2021-10-27, 17:56 ]
Co mam zrobi? ?
3. Kłopoty z podpięciem giełdy i przecho do systemu aut
posiadam gie?de i przechowalnie aut lecz nie wiem jak go pod??czy? do tego systemu pojazd?w
wy?le tutaj link do tych skrypt?w https://www.mediafire.com.../skrypty_do_mta
Za pomoc postawie piwo Prosi?bym o szybk? pomoc
4. [DM] Kłopot z podpięciem GM XyzzyRP do Xampp
Cze??, ot?? w?a?nie pr?buje postawi? serwer MTA SA na hamachi (jako serwer testowy) i mam k?opot z skonfigurowaniem DB i DB2
Wyskakuje taki oto komunikat :
5. [INNE] robienie napisów i podpięciem pod pojazd
OnGamemodeInit
[code]TNaczepabfc1 = Create3DTextLabel("[BFCT 001]", KOLOR_ZOLTY, 1839.0740,-2693.5940,13.0204, 60.0, 0, 0);
Attach3DTextLabelToVehicle(TNaczepabfc1,naczepabfc1,0,0,2);
//-------------------------------------------------------------------------------------------------
TNaczepabfc2 = Create3DTextLabel("[BFCT 002]", KOLOR_ZOLTY, 1839.0740,-2693.5940,13.0204, 60.0, 0, 0);
Attach3DTextLabelToVehicle(TNaczepabfc2,naczepabfc2,0,0,2);
//-------------------------------------------------------------------------------------------------
TNaczepabfc3 = Create3DTextLabel("[BFCT 003]", KOLOR_ZOLTY, 1839.0740,-2693.5940,13.0204, 60.0, 0, 0);
Attach3DTextLabelToVehicle(TNaczepabfc3,naczepabfc3,0,0,2);
//-------------------------------------------------------------------------------------------------
TNaczepabfc3 = Create3DTextLabel("[BFCT 003]", KOLOR_ZOLTY, 1839.0740,-2693.5940,13.0204, 60.0, 0, 0);
Attach3DTextLabelToVehicle(TNaczepabfc3,naczepabfc3,0,0,2);
//-------------------------------------------------------------------------------------------------
TNaczepabfc4 = Create3DTextLabel("[BFCT 004]", KOLOR_ZOLTY, 1839.0740,-2693.5940,13.0204, 60.0, 0, 0);
Attach3DTextLabelToVehicle(TNaczepabfc4,naczepabfc4,0,0,2);
//-------------------------------------------------------------------------------------------------
TNaczepabfc5 = Create3DTextLabel("[BFCT 005]", KOLOR_ZOLTY, 1839.0740,-2693.5940,13.02...