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: skrypcie
1. Potrzebuje osoby w skrypcie
Mam napisany skrypt wraz z in meta.xml. lecz nie wiem co dalej trzeba tam da?, pomo?e kto??
2. Tekstury i czcionki w jednym skrypcie
Zastanawiam si? czy trzymanie jednych tekstur i czcionek w jednym skrypcie jest optymalne? Czy lepiej jak do ka?dego skryptu wgrywamy czcionki i tekstury do mety itd i wywo?ujemy za pomoc? exportowanych funkcji?? Co o tym my?licie?
3. Przycisk showHide w skrypcie nie chce działać!
Witam.
Ot?? mam problem z przyciskiem do nowego okna GUI.
Chodzi mi o to ?e jak klikniemy w przycisk (LABEL) to powinno nam zamkn?? okno nr.1 a wy?wietli? okno nr.2 i tutaj jest problem w tym ?e nie wywala mi b??du a okno nr.2 si? nie wy?wietla oto niezb?dny kod:

[code]
GUIEditor = {
staticimage = {},
label = {},
background = {},
edit = {}
}

addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.background[1] = guiCreateStaticImage(400, 450, 480, 330, ":egui/images/examples/shruk.png", false)
guiSetAlpha(GUIEditor.background[1], 0.80)
GUIEditor.background[2] = guiCreateStaticImage(400, 450, 480, 330, ":egui/images/examples/shruk.png", false)
guiSetAlpha(GUIEditor.background[2], 0.80)
GUIEditor.background[3] = guiCreateStaticImage(400, 450, 480, 330, ":egui/images/examples/shruk.png", false)
guiSetAlpha(GUIEditor.background[3], 0.80)

--Zawarto?? logowania--
GUIEditor.label[1] = guiCreateLabel(143, 83, 194, 18, "Login", false, GUIEditor.background[1])
guiSetFont(GUIEditor.label[1], "default-bold-small")
GUIEditor.edit[1] = guiCreateEdit(133, 101, 214, 32, "", false, GUIEditor.background[1])
GUIEditor.label[2] = guiCreateLabel(143, 153, 194, 18, "Has?o", false, GUIEditor.background[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
GUIEditor.e...
4. Po*oc w skrypcie admins
Mam problem, poniewa? nie dzia?aj? mi: bankomaty, kicki, bany itd. oraz celowanie suszark?, serwer ca?y jest ju? zrobiony tylko tego brakuje i prosz? o pomoc :)
5. Jak uzyc element daty w innym skrypcie
Witam borykam sie z takim problemem stworzylem sobie taki skrypt

function sprawdzel(plr)
    if 
getElementData (plr"player:faction") == 'SAMC' then
    outPutChatbox
("Masz ta element date"plr255255255)
end
end
addCommandHandler 
("sprawdzel"sprawdzel)

A w innym skrypcie mam setelementdata, i chcia?bym zeby ta element data dzialala w tym skrypcie
6. Wyjątek w skrypcie na pojazdy
Witam ,Wi?c sprawa wygl?da tak : Mam skrypt na pojazdy kt?ry sprawdza licencje kat .A i chodzi mi o to aby robi? on wyj?tek na pojazd faggio o id 462 ,tzn aby by?o mo?na tylko nim je?dzi? bez prawka kat A..
Kod:

addEventHandler("onVehicleStartEnter", getRootElement(), function(plr, seat, jacked)
if seat == 0 then
if getVehicleType(source) == "Bike" then
if getElementData(plr, "player:license:pjA") ~= 1 then
outputChatBox("* Nie posiadasz prawa jazdy kategori A", plr, 0, 255, 131)
cancelEvent()
end

Za pomoc Stawiam Zimne :piwo: Pozdrawiam :D
7. Prosze o porade przy skrypcie
Witam mam problem bo zrobi?em sobie skrypt na powiadomienia u?ytkownik?w co w danym miejscu jest si? znajduje ale po wej?ciu w Pickup wy?wietla powiadomienie wszystkim w pobli?u mam teraz pro?b? o pomoc tak ?eby powiadomienie si? pokazywa?o tylko osobie co wesz?a w Pickup dodaje fragment kodu

Kod:

psp = createPickup ( -2100.20, 1.52, 35.32, 3, 1239 )
function pspf( thePlayer )
showAutoBox("Tutaj znajduje si? G??wna baza PSP ")
end
addEventHandler ( "onClientPickupHit", psp, pspf )
8. Probelm w skrypcie, o co chodzi co zrobić
Z G?RY, NIE WIEM CZY NAPISA?EM W DOBRYM DZIALE JAK CO? PROSZ? O PRZENIESIENIE GO, A NIE USUWANIE!

Cze?? napisa?em tutaj oto taki skrypt:
Kod:

function wyjsciegracza ()
ostatniemiejsce = getElementPosition (source)
end
addEventHandler("onPlayerQuit", root, wyjsciegracza)


function spawngraczy ()
if ostatniemiejsce == nil then
spawnPlayer (source, -289.42081, 1557.35437, 53.55873)
elseif ostatniemiejsce ~= nil then
spawnPlayer (source, getElementPosition)
end
addEventHandler("onPlayerJoin", root, spawngraczy)


Ten kod jest na "respienie graczy" jak gracz jest nowy to respi go w miejscu wyznaczonym coordynatami, a jak juz gral gracz na serwerze to respi go w ostatnim miejscu, mo?e kto? mi pom?c bo wyskakuje mi takie co? w konsoli i nie do ko?ca wime jak to naprawi? ;) z g?ry dzi?ki, stawiam piwko!


Kod:

[2017-08-12 10] Starting Spawngraczy
[2017-08-12 10] SCRIPT ERROR: Spawngraczys_dolacz.lua:13: 'end' expected (to close 'function' at line 7) near '<eof>'
[2017-08-12 10] ERROR: Loading script failed: Spawngraczys_dolacz.lua:13: 'end' expected (to close 'function' at line 7) near '<eof>'
9. Wykonanie kodu mapy w skrypcie
Cze??. Mam takie troch? dziwne pytanie, czy da si? wykona? kod mapy w skrypcie? Tzn. mam skrypt i chc? aby przy wykonywaniu skryptu sprawdza?o czy gracz ma VIPa (warunek z gamemodu). Da si? takie co? zrobi?, czy lepiej ju? ten skrypt doda? do gamemodu?
10. kolor nicku w skrypcie killmesages
Siemanko , ot?? jestem zielony w tym i mam problem , macie pewnie podstawowy killmesages wiec kodu nie musze podawac , chodzi oto ze u mnie jest tak
,?e jak kto? kogo? zabije t owidac mu np. #ff0000Nick zabi? Gracza3232
Co chce zrobi? no chce aby Ten nick , nie mia? tego wiecie napisu kolorku tylko mia? ten kolorek tam : D
jak kto? nie rozumie to powtorze
#ff0000Nick zabi? Gracza3232
Jak jest
[color=red]Nick [/color]zabi? Gracza3232
a jak ma by?

kolorek podalem losowy jako przyklad ale wiecie o co chodzi

Myslalem ze sam to zrobie ale nie mog znalesc nigdzie cos co odpowiada za wyswietlanie aby to moglem jakos zmodyfikowac
szukalem w killmesages_client
[lua]
addEvent ("onClientPlayerKillMessage",true)
function onClientPlayerKillMessage ( killer,weapon,wr,wg,wb,kr,kg,kb,width,resource )
if wasEventCancelled() then return end
outputKillMessage ( source, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource )
end
addEventHandler ("onClientPlayerKillMessage",getRootElement(),onClientPlayerKillMessage)

function outputKillMessage ( source, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource )
if not iconWidths[weapon] then
if type(weapon) ~= "string" then
weapon = 999
end
end
local killerName
local wastedName
if not tonumber(wr) then wr = 255 end
if not tonumber(wg) then wg = 255 end
if not tonumber(wb) then wb = 255 end
if not tonumber(kr) then kr = 255 end
if not tonumber(kg) then kg = 255 end
if not t...
11. Powie mi ktos o co chodzi w tym skrypcie i jak go ustawic?
[lua]--[[
This script was made by Xownage, please do not re-release any part of this script without xownage's permission
--]]

player = getRootElement()


function clickmenupd (mouseButton, buttonState, clickedElement, worldPosX, worldPosY, worldPosZ, screenPosX, screenPosY)
-- outputChatBox ("1")
if ( buttonState == "down" ) then
-- outputChatBox ("2")
local team = getPlayerTeam(source)
if team then
if getTeamName(team) == "DUPA" and isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(source)), aclGetGroup("RCON")) then
-- outputChatBox ("3")
if ( getElementData ( source, "pdclickopen" ) == false ) then
-- outputChatBox ("4")
if ( getElementData (source, "pdmousebind") == true ) then
-- outputChatBox ("5")
if ( mouseButton == "right" ) then
if ( clickedElement ) then

if ( getElementType (clickedElement) == "vehicle" ) then
thecar = clickedElement
setElementData (source, "pdclickselplayer", thecar )
triggerClientEvent (source,"carmenu", getRootElement() )
triggerEvent("pokazuj_pd", getRootElement(),source)
triggerEvent("pokazuj2", getRootElement())
...
12. Zmiana z edytora samp na edytor MTA w skrypcie
Ot?? mam skrypt GEOGAMING (fgaming) - nie nie robi? go na role play. Chodzi mi aby zmieni? edytowanie sampowe kt?re tam jest czyli ruszanie obiektami WSAD itp a ?eby by?o to "MTA", pomocy!
13. Komendy w skrypcie
Witam,
mam pytanie, mianowicie jak mog? doda? komendy tylko dla VIPA w tym oto skrypcie? Pozdrawiam

[code]#include <a_samp>
#include <zcmd>
#include <colors>
#include <sscanf>

#define R "{FF0000}"
#define W "{000000}"
#define C_ADMIN "FF0000"
#define Y "{D2C520}"
#define G "{94D317}"
#define playername

new AAdmin[MAX_PLAYERS],
ZAdmin[MAX_PLAYERS],
QAdmin[MAX_PLAYERS],
IAdmin[MAX_PLAYERS];
////////////////////MOD LOGIN//////////////////////////////////
CMD:mlogin(playerid, params[])
{
new pname[MAX_PLAYER_NAME+1];
new tmp[256];
GetPlayerName(playerid, pname, sizeof(pname));
if( !strcmp(pname, "SnigolexXx", true) || !strcmp(pname, "Nick nr2", true) )
{
if(!QAdmin[playerid])
{
QAdmin[playerid]=1;
SendClientMessage(playerid, -1, "Zalogowales sie na range: {00FF00}Moderator.");
format(tmp, sizeof(tmp), "{FF0000}%s zalogowal sie na Moderatora.", pname, playerid);
SendClientMessageToAll(playerid, tmp);
return 1;
}
else if(QAdmin[playerid])
{
SendClientMessage(playerid, -1, "Aktualnie jeste? {00FF00}modem.");
return 1;
}
}
else
{
format(tmp, sizeof(tmp), "{FF0000}%s zostal(a) wyrzucony(a) , Powod: Nieautoryzowane logowanie na moda", pname, playerid);
SendClientMessageToAll(playerid, tmp);
Kick(playerid);
return 1;
}
}
////////////////////MOD LOGIN////////////...
14. DestroyVehicle w skrypcie
[b]Witam potrzebuj? pomocy w skrypcie,
ot?? mam skrypt na prace :D i w ka?dej z nich po wyj?ciu z np auta ono znika problem pojawia si? wtedy gdy kto? zrobi /quit albo /reconnect lub /disconnect
wtedy auto nie znika i stoi ... dop?ki nie zrestartuje si? skryptu prosz? pom??cie daj? wam kawa?ek skryptu :D
Chodzi mi o to ?e jak gracz wpisze np /quit to usunie sie pojazd [/b]

client:
[quote]local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end

if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0

end

triggerServerEvent("destroyVeh",resourceRoot,jobVehicle)

end


function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end

if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?/a? prac?.")
else
showMarker()
playSoundFrontEnd(12)
triggerServerEvent("givePlayerMoney", localPlayer, 20, 0)
end
end

function showMarker()
if jobMarker and isElement(jobMarker) then
des...
15. [<font color=#cccc99>SKRYPT</font>] CZY KTOS MI
[Lua]--[[
@author Lukasz Biegaj <[email protected]>
@author Karer <[email protected]>
@author WUBE <[email protected]>
@copyright 2011-2013 Lukasz Biegaj <[email protected]>
@license Dual GPLv2/MIT
@package MTA-XyzzyRP
@link https://github.com/lpiob/MTA-XyzzyRP GitHub
]]--

local function follow()
local dokogo=getElementData(localPlayer,"kajdanki")
if (not dokogo or not isElement(dokogo)) then
setElementData(localPlayer,"kajdanki", nil)
removeEventHandler("onClientPreRender", root, follow)
triggerServerEvent("setPedAnimation", localPlayer)
return
end

-- setElementInterior(localPlayer, getElementInterior(dokogo))
-- setElementDimension(localPlayer, getElementDimension(dokogo))

if (getPedOccupiedVehicle(dokogo) or getElementInterior(dokogo)~=getElementInterior(localPlayer) or getElementDimension(dokogo)~=getElementDimension(localPlayer)) then
setElementData(localPlayer,"kajdanki", nil)
removeEventHandler("onClientPreRender", root, follow)
triggerServerEvent("setPedAnimation", localPlayer)
return
end


local x,y,z=getElementPosition(dokogo)
local x2,y2,z2=getElementPosition(localPlayer)
local kat=0
kat=math.deg(math.atan(-1*(x2-x)/(y2-y)))
if (y2-y)<0 then
kat=kat+180.0
end
kat=(kat+180)%360

-- rx,ry,rz=getElementRotation(localPlayer)
-- setElementRotation(localPlayer, rx,ry,kat)
setPedRota...
16. Blokada ceny w skrypcie
Cze??, kolejna pro?ba dotycz?ca skryptu pana prezesa
http://hostuje.net/file.p...69b94a1ae77887a
Aby zablokowa? cene np. -999999 ? Pr?bowa?em co? takiego:
Kod:

function onSprzedazClickSprzedaj()
local cena = guiGetText(guig[16])
if #cena >= 100 then
local cena = tonumber(cena)
if type(cena) == "number" then
if cena >= 100 then
showCursor(false)
guiSetVisible(guig[13], false)
--
triggerServerEvent("zaproponujKupnoPojazdu", localPlayer, savePLAYER, saveVEHICLE, cena)
else
outputChatBox("Wpisz cen? za jak? chcesz sprzeda? sw?j pojazd.", 255, 255, 255, true)
end
end
end
end

jednak teraz jak klikam "Sprzedaj" nic sie nie dzieje nic w DS3 tez nie ma
Prosz? o pomoc nagradzam tym co zawsze czyli piwkiem oraz respektem :)
17. Muzyka w skrypcie
Witam tutaj macie m?j kod na granie muzyki lecz jest b??d z muzyk? na dole macie komunikat jaki wyskakuje po starcie skryptu

obiekt = {}

function 
onResourceStart ()
local sound playSound3D("muzyka.mp3"401.81213378906,2532.708984375,16.545238494873true)
setSoundMaxDistance sound300 )

obiekt[1] = createObject 2232401.10900878906,2532.5744628906,16.545066833496 )
obiekt[2] = createObject 2232400.01699829102,2532.4829101563,16.544803619385 
obiekt[3] = createObject 2232398.81665039063,2532.4501953125,16.544509887695 )

for 
k,_ in ipairs obiekt ) do
    
attachElements soundobiekt[k] )
end

end
addEventHandler
("onClientResourceStart"getResourceRootElement(getThisResource()), onResourceStart)


BASS ERROR 2 in LoadMedia  path
:C:Program Files (x86)MTA San Andreas 1.3modsdeathmatchresourcesmuzykamuzyka.mp3  3d:1  loop:
18. Poprawicie Mnie W Skrypcie
Dlaczego Skrypt Nie Dzi?a Jestem Pocz?tkuj?czym

[lua]
local bsMarker = createMarker(-1753.84,961.92,24,"cylinder",1.5,252,0,255,50)
createBlipAttachedTo(bsMarker,59)

local districtsBus = {

{45.83,1201.23,18.81},
{-66.73,1201.60,19.59},
{-68.33,1148.97,19.59},
{24.26,1144.16,19.59},
{26.12,1102.61,19.59},
{-65.06,1101.15,19.59},
{-185.69,1100.93,19.60},
{-188.17,1193.49,19.55},
{-115.97,1196.37,19.59},
{-117.24,1251.94,17.41},
{-73.71,1256.68,12.09},
{64.41,1220.31,18.83},

}

local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end

if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0

end

triggerServerEvent("destroyVeh", localPlayer)

end


function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end

if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?/a? prac?.")
else
showMarker()
playSoundFrontEnd(12)
triggerS...
19. PomÓżcie W Skrypcie
Witam Co Mam Zmienic W Moim Skrypcie Zeby Dawa?o Bron o id 90

[lua]policeCars = { [596]=true, [598]=true, [597]=true }
policeSkins = { [280]=true, [282]=true, [281]=true }
function team()
local player = getRootElement()
policeteam = createTeam ("Policja", 0, 0, 255)
setTeamFriendlyFire ( policeteam , false )
end
addEventHandler("onResourceStart", resourceRoot, team)
function addLs( player, Police, source )
setPlayerTeam ( player, policeteam )
setElementModel(player, 280)
local carLs = createVehicle (596, 1601.7983398438, -1684.4337158203, 6.890625, 0, 0, -90)
warpPedIntoVehicle( player, carLs )
outputChatBox("Dolanczas Do Policji W Ls!", player, 255, 0, 0)
end
function addLv( player, Police, source )
setPlayerTeam ( player, policeteam )
setElementModel(player, 282)
local carLv = createVehicle (598, 2256.4929199219, 2460.1003417969, 11.503442764282, 0, 0, 0)
warpPedIntoVehicle( player, carLv )
outputChatBox("Dolanczas Do Policji W Lv!", player, 255, 0, 0)
end
function addSf( player, Police, source )
setPlayerTeam ( player, policeteam )
setElementModel(player, 281)
local carSf = createVehicle (597, -1603.9359130859, 748.88757324219, -4.6161198616028, 0, 0, 0)
warpPedIntoVehicle( player, carSf )
outputChatBox("Dolanczas Do Policji W Sf!", player, 255, 0, 0)
end
function removeFromVehicle( thePlayer, seat, jacked )
if ( policeCars[getElementModel ( source )] ) and ( not ...
20. Dziwna sytuacja w skrypcie
Witam, wszystko jest z tym kodem w symie ok, tylko gdy jak dojdzie do 7 to nie tworzy si? tabela z nowym indexem czyli 2. Nic nie wyrzuca w debugu.


local savedClientItems 
= {}
local itemsPage = {1,1}  --strona oraz ile stron aktualnie przetwarzanego ekwipunku
local itemsSorted 
= {}
local page 1

function refreshClientItems itemTable )
    
savedClientItems itemTable
    itemsSorted
[page] = {}
    for 
i,v in ipairs(savedClientItems) do
    if 
== or == 13 or == 19 then      
    page 
page 1  
    itemsPage
[2] = page  
    itemsSorted
[page] = {} 
    
end
    itemsSorted
[page][i] = { v[1] ,  v[2] ,  v[3] }
    
outputChatBox(page .. " " .. .. " " ..#itemsSorted[itemsPage[1]])
    
    
    
end
end
addEvent
"refreshClientItems"true )
addEventHandler"refreshClientItems"localPlayerrefreshClientItems )


Chce ?e gdy iterator (i) dojdzie do 7 to tworzy tabele z nowym indexem. Dodam ?e na pocz?tku normalnie si? tworz? tylko gdy jak sprawdze
addCommandHandler("testtt",function()
    
outputChatBox(#itemsSorted[2])
end)
to pokazuje 0 a jak dam
addCommandHandler("testtt",function()
    
outputChatBox(#itemsSorted[1])
end)
to pokazuje normalnie 6 tak jak ma by?, bo o to mi chodzi.
21. Co w tym skrypcie jest nie tak?
Mam problem, ten skrypt nie chce mi za?o?y? konta.
Tzn. Nie dzia?aj? przyciski "Zaloguj" i "Zarejestruj Si?".
Prosz? o pomoc.
[lua]wdwLogin_Pannel = {}
tabPannel_Main = {}
tab_Login = {}
tab_Register = {}

--Settings
blackLoginScreen = true --True/false Black screen, while player login...
blackScreenTime = 5 --Time to complete disappearance of the black screen in seconds.

GuestEnable = false --Can a Player play as Guest, or no. [true/false]
EnableMTAControlsOnLogin = false --Set false to not open the chat when you press "t" on fields, for example. [true/false]


function open_log_reg_pannel()
if not(isElement(wdwLogin_Pannel)) then

showPlayerHudComponent ( "all", false )


local sWidth,sHeight = guiGetScreenSize() -- The variables
local Width,Height = 350,284 --Main Window sizes
local X = (sWidth/2) - (Width/2) --Main Window horizontal position
local Y = (sHeight/2) - (Height/2) --Main Window vertical position
toggleAllControls(EnableMTAControlsOnLogin)

cameraMoveSoft(1352.91345, -1632.61829, 84.61942,751.33777, -878.44891, 156.56206, 751.33777, -878.44891, 156.56206,751.33777, -878.44891, 156.56206, "OutInQuad")

fadeCamera(true,blackScreenTime)



GUIEditor = {
label = {},
staticimage = {}
}
wdwLogin_Pannel = guiCreateGridList(0.00, 0.38, 1.00, 0.31, true)
-- obrazek = guiCreateStaticImage(0.08, 0.32, 0.40, 0.11, "images/logo.png", true)
guiSetVisible ( o...
22. [GF] Nie działające pojazdy w skrypcie
Witam, mam taki problem. Ot??:

Zespawnowa?em kilka aut w MTA, zapisa?em, przekonwertowa?em i tu zaczyna si? problem. Kiedy wgrywam pojazdy do skryptu i powstaje co? takiego:


Cytat:

#include <a_samp>

public OnFilterScriptInit()
{

AddStaticVehicle(405,23.1757679,1165.3862305,19.5691757,0.0000000,0,0); //Sentinel
AddStaticVehicle(405,2.5388384,1165.3198242,19.5891819,0.0000000,0,0); //Sentinel
AddStaticVehicle(551,16.3795815,1165.8984375,19.4465561,0.0000000,0,0); //Merit
AddStaticVehicle(581,9.3924522,1165.0671387,19.3038387,0.0000000,0,0); //BF-400
AddStaticVehicle(477,-27.2943230,1166.4475098,19.2237644,0.0000000,0,0); //ZR-350
AddStaticVehicle(555,-41.3192902,1166.2185059,19.3122425,0.0000000,0,0); //Windsor
AddStaticVehicle(474,-30.7176743,1166.4626465,19.3055305,0.0000000,0,0); //Hermes
AddStaticVehicle(474,-51.4280472,1166.5258789,19.5158463,0.0000000,0,0); //Hermes
AddStaticVehicle(576,-37.5864029,1166.8883057,19.2265549,0.0000000,0,0); //Tornado

return 1;
}



To kiedy po skompilowaniu wchodz? do gry, pisze, ?e wszystkie z tych pojazd?w nale?? do Police Departament.

Ale...

Kiedy wgrywam auta do publicka OnGameModeInit to wi?kszo?? z nich normalnie dzia?a.


I tu moje pytanie, co zrobi? aby WSZYSTKIE pojazdy dzia?a?y w SKRYPCIE nie w samej mapie.


Z g?ry dzi?kuje za Pomoc :)
23. [INNE] bledy w skrypcie
Kod:

C:UsersrudyyDesktopPAWNOaim.pwn(118) : error 001: expected token: "#endif", but found "-end of file-"
C:UsersrudyyDesktopPAWNOaim.pwn(118) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Kod:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!(oldkeys & KEY_FIRE) && (newkeys & KEY_FIRE) && !(newkeys & KEY_HANDBRAKE)) {
keyfire[playerid] = true;
} else if(!(newkeys & KEY_FIRE)) keyfire[playerid] = false;
if(!ispressingaimkey[playerid]) CheckNextAim[playerid] = false;
ispressingaimkey[playerid] = !! (newkeys & KEY_HANDBRAKE);
if(ispressingaimkey[playerid] && !(oldkeys & KEY_HANDBRAKE)) {
pressingaimtick[playerid] = GetTickCount()+500;
}
return 1;
}


stock notallowed(weaponid) {
switch(weaponid) {

case 25..27, 16..18, 34..37, 39..40, 43..200: return 0;
// Blocks shotguns, sniper rifle, RPG, heat seaker satchel charges etc - besides shotguns these are unaffected by autoaim
// the reason shotguns are removed from checking is because i've found them to be unreliable.
default:return 1;
}
return 1;
}


stock IsPlayerUsingAutoaim(playerid) return autoaim[playerid];
24. [DM] Obiekty w mapie czy skrypcie ?
Mam ma?e pytanko odno?nie obiekt?w lepiej je wkleja? do mapy czy przez streamer w skrypcie ? Co b?dzie bardziej optymalne ?eby nie by?o lag?w i szybko si? wczytywa?y ?
25. [INNE] 13 domek w skrypcie Garhouse
Cze??. U?ywam skryptu GarHouse na swoim serwerze i mam z tym problem. Gdy postawi?em 12 dom?w wszystko by?o ok, od 13 wzwy? gracze nie mog? ju? ich kupi?, nic si? nie wy?wietla :/ Jaki mo?e by? tego pow?d? Zamieszczam PWN skryptu, gdyby kto? m?g?by mi to naprawi? - bardzo prosz?, ja sam tego nie dam rady zrobi?. :/

http://speedy.sh/Wy4uf/GarHouse.pwn