[code]'addEventHandler' ['onClientPreRender' with this function is already handled][/code]
taki blad wyskakuje w debugu zaznaczylem w kodzie w ktorych linijkach wyskakuje
[lua]leci = false
leci2 = false
leci3 = false
function interpolateCam()
local now = getTickCount()
local endTime = start + 2000
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
local px, py, pz = getElementPosition(localPlayer)
local x, y, z = interpolateBetween ( dx, dy, dz, -1524.50, 890.68, 28.31, progress, "OutQuad")
setCameraMatrix(x, y, z, -1502.29, 919.74, 7.19+0.6, 0, 0)
end
function interpolateCam2()
local now = getTickCount()
local endTime = start2 + 2000
local elapsedTime = now - start2
local duration = endTime - start2
local progress = elapsedTime / duration
local px, py, pz = getElementPosition(localPlayer)
local x, y, z = interpolateBetween ( dx, dy, dz, -1704.22, 917.29, 58.05, progress, "OutQuad")
setCameraMatrix(x, y, z, -1748.76, 949.68, 24.74+0.6, 0, 0)
end
function interpolateCam3()
local now = getTickCount()
local endTime = start3 + 2000
local elapsedTime = now - start3
local duration = endTime - start3
local progress = elapsedTime / duration
local px, py, pz = getElementPosition(localPlayer)
local x, y, z = interpolateBetween ( dx, dy, dz, -2011.35, 1103.20, 95.72, progress, &...
Siema
Pisze odno?nie zmieniania pliku pwn na amx, poniewa? zawsze gdy mi si? komplikuje jaki? obiekt np. https://zapodaj.net/b2116c762d7e4.jpg.html
to czasami jak wgrywam takie obiekty z warningami to a? mi crashuje serwer ,
mo?e ich jest za duzo(z mapami tez tak bywa) wiecie mo?e jak si? pozby? tych warning?w?? bo mam takie podejrzenie ?e to przez nie, z g?ry dzi?ki za odpowiedzi.
function movePanelOut() local now = getTickCount() local elapsedTime = now - p_Move.startTime
local duration = p_Move.endTime - p_Move.startTime
local progress = elapsedTime / duration
local fAnimationTime = getEasingValue(progress, p_Move.easingFunction)
local move = fAnimationTime*sw * 0.122
removeEventHandler("onClientRender", getRootElement(), renderLoginContent) setTimer( function() addEventHandler ("onClientRender", getRootElement(), renderLoginContent) end, 600,1) -295 Linjka
removeEventHandler("onClientClick",getRootElement(),onClick)
for i,v in ipairs ( field ) do
if v.text then
v.text = "" v.erbox = "bialy" end
end
setTimer( function()
for i,v in ipairs ( field ) do
if v.text then
v.text = "Panel Rejestracji!" end
end
end, 1200, 1 ) mx = move
my = move * 2
sy = sh
ssy = 0 if now > p_Move.endTime then
removeEventHandler("onClientRender", getRootElement(), movePanelOut) addEventHandler("onClientClick",getRootElement(),onClick) end
end
function PlayerQuit()
local attached = getAttachedElements(source)
if (attached) then
for k,v in ipairs(attached) do
if getElementType(v) == "blip" then
destroyElement(v)
end
end
end
end
addEventHandler("onPlayerQuit", getRootElement(), PlayerQuit)
Witam serdecznie wstawiam wam tutaj skrypt znanego nam na forum The Ready, w postaci naprawionej do funkcji Kompilacji
Opis:
[code2]System drzwi:
->Gracz ma mo?liwo??:
->Wy?wietlania informacji nt. drzwi
->Zmieniania nazwy drzwi
->Zmieniania odtwarzanej muzyki w drzwiach (HiFi, jak kto woli tak nazwa? : ))
->Ustawianie widoczno?ci przez okna (zmiana interioru wewn?trznego na 0 - wida? map?, et cetera)
->Sprzedawanie za okre?lon? cen? innemu graczowi
->Ustalania pozycji wej?ciowej
->Mo?liwo?? wynaj?cia mieszkania (spawnu) innemu graczowi
->Wykupowanie dowolnej ilo?ci obiekt?w do drzwi
->Wykupowanie dowolnej ilo?ci napis?w do drzwi
->Przegl?danie zawarto?ci szafy
->Przypisywanie pod grup?
->Przypisywanie pod stref?
->Wczytywanie mapy obiekt?w
->Admin ma mo?liwo??:
->Tworzenia
->Zmiany interioru
->Zmiany vw (wewn?trznego i zewn?trznego)
->Ustalania nazwy drzwi
->Ustalania muzyki w drzwiach
->Teleportowanie si? do drzwi
->Zmienianie modelu pickupa
->Zmienianie id ownera i typu ownera
->Zamykanie i otwieranie
Inne:
-> Graczowi ze s?abym komputerem mog? si? nie za?adowa? obiekty odrazu po wje?dzie do interioru, z kt?rego bynajmniej pod?oga jest zrobiona z obiektu.
By zapobiec spadaniu pod interior, oprogramowanie sprawdza, czy takowy gracz spad? - czy nie. Je?eli spad?, przywraca go na pozycj? wej?ciow? wewn?trzn?
System obiekt?w:
->NIELIM...
No piona, mam problem z komend? do tworzenia broni, raczej normalnie dzia?a, tylko ?e jak kto? wpisze id broni np. 235235235 pojawia si? warning, oto kod:
function dajbron(gracz, commandName, weaponID, ammo)
if not tonumber(ammo) then ammo = 30 end
local status = giveWeapon(gracz, weaponID, ammo, true)
if status then
outputChatBox("Stworzy?e? bro? o id: " ..weaponID.. " z " ..ammo.. " ammo.", gracz, 0, 255, 0)
else
outputChatBox("Nie uda?o si? stworzy? broni!", gracz, 255, 0, 0)
end
end
addCommandHandler("bron", dajbron)
Cze??, mam ot?? 16 warning?w, ale gdy wyszukuje to po prostu zaznaczonego kodu poprzez program nie ma.. Czyli tak jakby czyta?, a zarazem nie ma owej linijki..
[code](12645) : warning 204: symbol is assigned a value that is never used: "carid"
(12646) : warning 204: symbol is assigned a value that is never used: "tires"
(12644) : warning 203: symbol is never used: "lights"
(12644) : warning 203: symbol is never used: "doors"
(12644) : warning 203: symbol is never used: "panels"
(12661) : warning 204: symbol is assigned a value that is never used: "carid"
(12662) : warning 204: symbol is assigned a value that is never used: "tires"
(12660) : warning 203: symbol is never used: "lights"
(12660) : warning 203: symbol is never used: "doors"
(12660) : warning 203: symbol is never used: "panels"
(26768) : warning 204: symbol is assigned a value that is never used: "vehicle"
(30240) : warning 204: symbol is assigned a value that is never used: "rands"
(43532) : warning 204: symbol is assigned a value that is never used: "result"
(44363) : warning 203: symbol is never used: "PlayerDrunk"
(44363) : warning 203: symbol is never used: "iOrder"
(16186) : warning 204: symbol is assigned a value that is never used: "iTGB"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Witam , mam problem wywo?ywany przez osoby 3 , kto? wie z czego wynikaj? te errory i jak to naprawi?. ?
[code][18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[18:14:05] Warn...
C:UsersM.i.K.iDesktopnew_backup.pwn(670) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(670) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(670) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(685) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(685) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(685) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(713) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(713) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(713) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(723) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(723) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(723) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(730) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(730) : warning 202: number of arguments does not match definition
C:UsersM.i.K.iDesktopnew_backup.pwn(730) : warning 202: nu...
Czesc znowu mam ma?e warringi wiem ze i tak przerobi na amx ale nie chce zadnych warringow ;d
C:UsersxxxxxDesktopGreenTruck 1.0.pwn(14078) : warning 219: local variable "doors" shadows a variable at a preceding level
C:UsersxxxxxDesktopGreenTruck 1.0.pwn(14078) : warning 219: local variable "lights" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Napisa?em skrypt na podstawie /apickup z H-RP na tworzenie napis?w 3D w grze i zapisu ich do pliku. Wszystko dzia?a, ale s? warningi (wszystkie to 'warning 213: tag mismatch')
[CODE]
new nr=NapisID[playerid];
NapisInfo[nr][napAktywny]=true;
Napis3D[nr]=Create3DTextLabel(NapisInfo[nr][napText],NapisInfo[nr][napKolor],NapisInfo[nr][napPosX],NapisInfo[nr][napPosY],NapisInfo[nr][napPosZ],20.0,NapisInfo[nr][napVir],0); // ta linijka
NapisTworze...
Siema. Mam 1 warning, z kt?rym nie mog? sobie poradzi?.
Wiem, ?e warning 201 oznacza, ?e co? si? powtarza, ale przeszuka?em ca?? map? i nic mi tutaj takiego si? nie powtarza.
A komplikator, zamiast poda? ?cie?k? do mapy, to pokazuje to include.
O to on:
C:Documents and SettingsArTeK.DZOJKOPulpitServpawnoincludeYSIy_utils.inc(223) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1)")
Witam, aktualnie robi? system rejestracji iiiii.......
Zrobi?em ju? zapis Respektu Levelu i Kasy, teraz chcia?em zrobi? zapis ?mierci, Zabi?. I mam 2 errory w tych linijkach:
F:Extreme 0.3e 0.1GamemodKupa.pwn(5682) : warning 215: expression has no effect
F:Extreme 0.3e 0.1GamemodKupa.pwn(5683) : warning 215: expression has no effect
i warny:
I:Documents and SettingsGrzesiuPulpitserwer_03epawnonew.pwn(29) : warning 202: number of arguments does not match definition
I:Documents and SettingsGrzesiuPulpitserwer_03epawnonew.pwn(30) : warning 202: number of arguments does not match definition
I:Documents and SettingsGrzesiuPulpitserwer_03epawnonew.pwn(31) : warning 202: number of arguments does not match definition
I:Documents and SettingsGrzesiuPulpitserwer_03epawnonew.pwn(32) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase