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: niby
1. ZPJ i Wyciszenie - Niby działa, niby nie.
Witam wszystkich! Mam problem dotycz?cy wyciszania i zabierania prawka, na poprzedniej edycji serwera wszystko by?o pod??czone dobrze, dzia?a?o prawid?owo i nie by?o b??d?w. Teraz pod??czyli?my r?wnie? dobrze na innej paczce ale nie dzia?a TYLKO ZPJ i wyciszenie, dziwne jest to ?e Ban i Kick dzia?a a tylko w?a?nie wspomniane ZPJ i Mute nie dzia?a. Wszystkie tematy w?asnie dot. tego ?e ZPJ nie dzia?a przeczyta?em, robi?em tak jak to niekt?rzy polecali i dalej nic. A tutaj vehicles.lua

[code]--[[Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
-- Get vehicle keys
function getVehicleKey(plr,veh)
if plr and veh then
local uid=getElementData(plr,"player:uid")
if not uid then return end
if getElementData(plr,"player:admin") or uid == getElementData(veh,"vehicle:ownedPlayer") then
return true
else
return false
end
end
end
local categoryL={[592] = true,[553] = true,[577] = true,[488] = true,[511] = true,[497] = true,[548] = true,[563] = true,[512] = true,[476] = true,[593] = true,[447] = true,[425] = true,[519] = true,[520] = true,[460] = true,[417] = true,[469] = true,[487] = true,[513] = true}
local categoryA1={[462] = true,[468] = true}
addEventHandler("onVehicleStartEnter", root, function(plr,seat,jacked)
if getElementHealth(source) &l...
2. ZPJ i Wyciszenie - Niby działa, niby nie.
Witam wszystkich! Mam problem dotycz?cy wyciszania i zabierania prawka, na poprzedniej edycji serwera wszystko by?o pod??czone dobrze, dzia?a?o prawid?owo i nie by?o b??d?w. Teraz pod??czyli?my r?wnie? dobrze na innej paczce ale nie dzia?a TYLKO ZPJ i wyciszenie, dziwne jest to ?e Ban i Kick dzia?a a tylko w?a?nie wspomniane ZPJ i Mute nie dzia?a. Wszystkie tematy w?asnie dot. tego ?e ZPJ nie dzia?a przeczyta?em, robi?em tak jak to niekt?rzy polecali i dalej nic. A tutaj vehicles.lua

[code]--[[Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
-- Get vehicle keys
function getVehicleKey(plr,veh)
if plr and veh then
local uid=getElementData(plr,"player:uid")
if not uid then return end
if getElementData(plr,"player:admin") or uid == getElementData(veh,"vehicle:ownedPlayer") then
return true
else
return false
end
end
end
local categoryL={[592] = true,[553] = true,[577] = true,[488] = true,[511] = true,[497] = true,[548] = true,[563] = true,[512] = true,[476] = true,[593] = true,[447] = true,[425] = true,[519] = true,[520] = true,[460] = true,[417] = true,[469] = true,[487] = true,[513] = true}
local categoryA1={[462] = true,[468] = true}
addEventHandler("onVehicleStartEnter", root, function(plr,seat,jacked)
if getElementHealth(source) &l...
3. GUI, niby proste ale...
Witam!
Mam problem, gdy? zawsze dzia?a?o, teraz nie, chodzi o to, ?e nie wy?wietla si? GUI po wej?ciu w Marker, db czyste.

-s-side

function open_gui1hitElementmatchingDimension )
    if 
getElementType(hitElement) == "player" then
        triggerClientEvent
(hitElement,"open_gui",hitElement)    
    
end
end
addEventHandler
"onMarkerHit"sultan_carmarkeropen_gui1 )


-c-side

function o_gui(hitElement)
   
guiSetVisible win_carshowroomtrue )
   
showCursor(truefalse)
end
addEvent 
"open_gui" true)
addEventHandler "open_gui" getRootElement(), o_gui )


Zg?upia?em, prosz? o pomoc.
Wynagrodz? :piwo:
R*
Pozdrawiam,
mlodasnygo :)
4. [INNE] niby proste, ale ..
Witam!

Wyskakuj? mi 3 errory:
Kod:

C:Documents and Settings123Pulpit123.pwn(13) : error 010: invalid function or declaration
C:Documents and Settings123Pulpit123.pwn(15) : error 010: invalid function or declaration
C:Documents and Settings123Pulpit123.pwn(17) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


KOD:

Linia 13: if(strcmp(cmd, "/wejdz", true) == 0 || strcmp(cmd, "/enter", true) == 0)
Linia 15: if(IsPlayerConnected(playerid))
Linia17: if(PlayerToPoint(2, playerid,1544.1999511719,-1675.4000244141,13.199999809265))

Ca?y kod:

Kod:

return 1;
}
if(strcmp(cmd, "/wejdz", true) == 0 || strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(2, playerid,1544.1999511719,-1675.4000244141,13.199999809265))
{
GameTextForPlayer(playerid, "Witaj na komisariacie", 5000, 1);
SetPlayerInterior(playerid, 10); // ID ITERIORU
SetPlayerPos(playerid,247.5,109.40000152588,1002.9000244141); // POZYCJA DO KT?REJ MA TELEPORTOWAC PO WPISANIU /WEJDZ
}
}


Jak usun?? errory ?
5. [INNE] Mapa nie startuje , pluginy niby działają..
Witajcie,
mam problem z mapk? z polskiego ibiza serwera a mianowicie nie chce wystartowa? mimo tego, ?e pluginy dzia?aj?


W includach mapki jest jeszcze audio plugin lecz ten pod 03d nie dzia?a poprawnie.
Kod:


SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[19]
[19] Server Plugins
[19] --------------
[19] Loading plugin: sscanf.so
[19]

[19] ===============================

[19] sscanf plugin loaded.

[19] (c) 2009 Alex "Y_Less" Cole

[19] 0.3d-R2 500 Players "dnee"

[19] ===============================

[19] Loaded.
[19] Loading plugin: streamer.so
[19]

*** Streamer Plugin v2.6 by Incognito loaded ***

[19] Loaded.
[19] Loaded 2 plugins.

[19]
[19] Filterscripts
[19] ---------------
[19] Loading filterscript 'salon.amx'...
[19] Loaded 1 filterscripts.

[19] Script[gamemodes/1n.amx]: Run time error 19: "File or function is not found"
[19] Number of vehicle models: 0


Z g?ry THX

Pzdr