Wysłany: 2017-03-09, 18:12
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
Mam taki b??d podczas pisania na chacie:
Error : Server triggerd clientside event onDebugMessage , but event is not added clientside
B??d wy?wietla sie w debugscript 3
Ten b??d pochodzi podaj?e od Pear life z skryptu PL-Core
Drugim b?edem jest to ?e nie dzia?a /pm i /przelej
Moze to przez ten b??d co jest wyzej ale niewiem.
Prosze o pomoc
Wysłany: 2017-03-09, 18:16
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
Podaj ca?e kody, prosisz o pomoc ale bez kodu a nie ka?dy ma t? paczk? i chce j? ?ci?ga? specjalnie dla ciebie, triggeruje si? zdarzenie 'onDebugMessage' ale nie dodaje si? nigdzie.
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-09, 18:23
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
Znalaz?em w chats.lua
addEventHandler ( 'onPlayerChat' , root , function( msg , type )
if type == 0 then
cancelEvent ()
if ninjaban ( msg ) then
kickPlayer ( source , "System:Reklama" )
triggerClientEvent ( root , "admin:rendering" , root , "* " .. getPlayerName ( source ).. "(" .. getElementData ( source , "id" ).. ") zosta?(a) wyrzucony(a). Powod: Reklama" )
return end
local x , y , z = getElementPosition ( source )
local sphere = createColSphere ( x , y , z , 30 )
local players = getElementsWithinColShape ( sphere , 'player' )
for i , v in pairs ( players ) do
local id = getElementData ( source , "id" )
outputChatBox ( "#66CC33(#FFFFFF" .. getElementData ( source , "id" ).. "#66CC33) #FFFFFF" .. getPlayerName ( source ).. ":#FFFFFF " .. msg : gsub ( "#%x%x%x%x%x%x" , "" ), v , _ , _ , _ , true )
end
destroyElement ( sphere )
local desc = string . format ( "Czat Lokalny> " .. getPlayerName ( source ).. "(" .. getElementData ( source , "id" ).. "): " .. msg ): gsub ( "#%x%x%x%x%x%x" , "" )
triggerEvent ( "admin:addText" , root , desc )
triggerClientEvent ( root , "onDebugMessage" , resourceRoot , desc : gsub ( "#%x%x%x%x%x%x" , "" ), 1 , "CZAT" )
elseif type == 1 then
cancelEvent ()
if ninjaban ( msg ) then
kickPlayer ( source , "System:Reklama" )
triggerClientEvent ( root , "admin:rendering" , root , "* " .. getPlayerName ( source ).. "(" .. getElementData ( source , "id" ).. ") zosta?(a) wyrzucony(a). Powod: Reklama" )
return end
local x , y , z = getElementPosition ( source )
local sphere = createColSphere ( x , y , z , 30 )
local players = getElementsWithinColShape ( sphere , 'player' )
destroyElement ( sphere )
for i , v in pairs ( players ) do
outputChatBox ( "* " .. getPlayerName ( source ): gsub ( "#%x%x%x%x%x%x" , "" ).. " " .. msg : gsub ( "#%x%x%x%x%x%x" , "" ), v , 255 , 51 , 102 )
end
local q = string . format ( ">> " .. getPlayerName ( source ).. "(" .. getElementData ( source , "id" ).. "): " .. msg : gsub ( "#%x%x%x%x%x%x" , "" ))
triggerClientEvent ( "onDebugMessage" , resourceRoot , q , 1 , "/ME" )
end
end )
[ Dodano : 2017-03-09, 18:24 ]
Dobra juz nie wa?ne naprawione.
Tylko mam problem dalej z /pm
Nie dzia?a
Wysłany: 2017-03-09, 18:52
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
Mo?e daj kod tego /pm i b??d z db3?
Podpis
"amited" napisał/a :
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-09, 19:12
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
W?asnie chodzi o to ze nie ma zadnego b?edu. Wgrywam inne paczki i to samo /pm nie dziala i /przelew pisze ze * Gracz nie zalogowany!
Wysłany: 2017-03-09, 20:10
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
musisz pod??czy? pod swoj? element date ID
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-09, 21:29
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
"HazeMaFaze" napisał/a :musisz pod??czy? pod swoj? element date ID
Czyli Bo og?lnie jak kiedy? mia?em serwer /pm i /przelew dzia?a? a teraz wgrywam i nie dzia?a
Wysłany: 2017-03-09, 21:33
Virahh
Weteran MTA
Wiek: 24 Na forum: 3466 dni Posty: 38
Nick w MP: Eszteban
Piwa : 1326
Albo ?le podpinasz albo zreinstaluj serwer
Podpis
Pomogłem? może jakieś
Więcej szczegółów
Wystawiono 2 piw(a):PenkY , lukas60055
Wysłany: 2017-03-09, 22:23
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
Podasz ten kod czy nie?
Podpis
"amited" napisał/a :
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-09, 23:02
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
"amited" napisał/a :
No m?wi? w?a?nie nie ma ?adnego b??du
Wysłany: 2017-03-10, 00:01
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
Chodzi o kod w postaci skryptu, nie b??du.
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-10, 10:37
DylemaT929
Nikt
Wiek: 28 Na forum: 4041 dni Posty: 333
Nick w MP: dylemat929
Piwa : 3195
Czatbubbles w??czy?e? w innych paczkach nazywa si? czat albo chat sprawd?
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-10, 17:16
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
function onPrivateMessage ( plr , cmd , target , ...)
if not ( getElementData ( plr , "player:logged" ) == true ) then return end
if not target or not {...} then
outputChatBox ( '* U?yj /pm <nick/ID> <tre??> ' , plr )
return
end
if ninjaban (...) then
kickPlayer ( plr , "System:Reklama" )
triggerClientEvent ( root , "admin:rendering" , root , "* " .. getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ).. "(" .. getElementData ( plr , "id" ).. ") zosta?(a) wyrzucony(a). Powod: Reklama" )
return end
local text = table . concat ({...}, ' ' )
local target = findPlayer ( plr , target )
if not target then
triggerClientEvent ( plr , "addNotification" , root , '* Nie znaleziono podanego gracza.' , "error" )
return
end
if not ( getElementData ( target , "player:logged" ) == true ) then
triggerClientEvent ( plr , "addNotification" , root , '* Gracz nie jest zalogowany.' , "error" )
return end
local pmoff = getElementData ( target , "pmoff" )
if ( pmoff ) then
outputChatBox ( getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ).. " nie akceptuje wiadomo?ci PM." , plr )
if ( type ( pmoff )== "string" ) then
outputChatBox ( "Pow?d: " .. pmoff , plr )
end
return
end
if getElementData ( plr , "pmoff" ) then
outputChatBox ( "Posiadasz wy??czone wiadomo?ci PM. Ta osoba nie b?dzie mog?a Ci odpisa?." , plr )
end
if getElementData ( target , "gracz_mute" ) == 1 then
outputChatBox ( "* Ten gracz jest wyciszony, nie odpisze ci!" , plr )
return
end
outputChatBox ( "#CCCCCC[PW]#CCCCCC[#FFFFFF" .. getElementData ( target , "id" ).. "#CCCCCC] #CCCCCC" .. getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ).. ">> " .. text .. "" , plr , _ , _ , _ , true )
outputChatBox ( "#FFFF00[PW]#CCCCCC[#FFFFFF" .. getElementData ( plr , "id" ).. "#CCCCCC] #CCCCCC" .. getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ).. "<< " .. text .. "" , target , _ , _ , _ , true )
local pm_text =( 'Czat Prywatny> %s(%d)(uid:%d) >> %s(%d)(uid:%d): %s' ): format ( getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ), getElementData ( plr , "id" ), getElementData ( plr , "player:uid" ), getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ), getElementData ( target , "id" ), getElementData ( target , "player:uid" ), text )
triggerEvent ( "admin:logs" , root , pm_text )
triggerEvent ( "admin:addText" , root , pm_text )
triggerClientEvent ( "onDebugMessage" , resourceRoot , pm_text , 3 , "PM" )
end
addCommandHandler ( 'pw' , onPrivateMessage )
addCommandHandler ( 'pm' , onPrivateMessage )
addCommandHandler ( "pmon" , function( plr , cmd )
removeElementData ( plr , "pmoff" )
outputChatBox ( "(( Akceptujesz wszystkie wiadomo?ci PM. ))" , plr )
return
end )
addCommandHandler ( "pmoff" , function( plr , cmd ,...)
local powod = table . concat ({...}, ' ' )
if ( not powod or string . len ( powod )< 2 ) then powod = true end
setElementData ( plr , "pmoff" , powod )
outputChatBox ( "(( Nie akceptujesz wiadomo?ci PM. ))" , plr )
return
end )
function onTransferMoney ( plr , cmd , target , value )
if not target or not tonumber ( value ) then
outputChatBox ( ' U?yj: /przelej <nick/ID> <kwota>' , plr )
return
end
value = tonumber ( value )
local target = findPlayer ( plr , target )
if not target then
triggerClientEvent ( plr , "addNotification" , root , '* Nie znaleziono podanego gracza.' , "error" )
return
end
if not ( getElementData ( target , "player:logged" ) == true ) then
outputChatBox ( '* Gracz nie jest zalogowany!.' , plr , 255 , 0 , 0 )
return end
if getPlayerMoney ( plr ) < value then
triggerClientEvent ( plr , "addNotification" , root , '* Nie masz wystarczajacych ?rodk?w.' , "error" )
return
end
if value == 0 or value < 0 then
triggerClientEvent ( plr , "addNotification" , root , '* Poda?e? nie prawid?ow? warto??.' , "error" )
return
end
takePlayerMoney ( plr , value )
givePlayerMoney ( target , value )
outputChatBox ( "#FFFF00>>#C0C0C0 Przela?e? graczowi o nazwie #FFFF00" .. getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ).. "(" .. getElementData ( target , "id" ).. ") #00FF00 " .. value .. " EURO" , plr , _ , _ , _ , true )
outputChatBox ( "#FFFF00>> #C0C0C0Otrzyma?e? #00FF00" .. value .. " EURO #C0C0C0od gracza o nazwie #FFFF00" .. getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ).. "(" .. getElementData ( plr , "id" ).. ")." , target , _ , _ , _ , true )
local transfer_text =( 'TRANSFER> %s(%d)(uid:%d)>> %s(%d)(uid:%d): %d' ): format ( getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ), getElementData ( plr , "id" ), getElementData ( plr , "player:uid" ), getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ), getElementData ( target , "id" ), getElementData ( target , "player:uid" ), value )
triggerEvent ( "admin:addText" , root , transfer_text )
triggerClientEvent ( "onDebugMessage" , resourceRoot , transfer_text , 4 , "TRANSFER" )
triggerEvent ( "admin:logs" , root , transfer_text )
end
addCommandHandler ( 'przelej' , onTransferMoney )
addCommandHandler ( 'zaplac' , onTransferMoney )
addCommandHandler ( 'dajkase' , onTransferMoney )
addEventHandler ( "onPlayerCommand" , root , function( command )
if command == "register" then cancelEvent () return end
if command == "msg" then cancelEvent () return end
if command == "Toggle" then return end
if command == "Next" then return end
if command == "Previous" then return end
if command == "say" then return end
--if getElementData ( source , "player:admin" ) then
-- triggerEvent ( "admin:logs" , root , "Admin> /" .. tostring ( command ).. " Nick:" .. getPlayerName ( source ).. " UID(" .. getElementData ( source , "player:uid" ).. ")" )
-- end
end
)
/pm wogule nie dzia?a nawet komenda sie nie wy?wietla na chacie a /przelew jak sie wpisze to pokazuje komende ale jak chce sie dokogos cos wyslac to pisze ze * Gracz nie jest zalogowany
I NIE MA ZADNEGO BLEDU W CONSOLI ANI W DEBUGSCRIPT 3
Wysłany: 2017-03-10, 18:16
AssasiPlayGames
Wiek: 22 Na forum: 3757 dni Posty: 176
Nick w MP: NiFeKpL
Piwa : 909
Kod: if not (getElementData(target, "player:logged") == true) then
daj tak Kod: if (getElementData(target, "player:logged") == true) then
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Wysłany: 2017-03-10, 20:41
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
AssasiPlayGames , Wtedy gdy gracz b?dzie zalogowany b?dzie pisa? ?e nie jest...
lukas60055 , 2 rzeczy: czy na PEWNO jeste? zalogowany?, oraz czy masz elementDat? "player:logged", a mo?e inn? na swoim serwie?
Podpis
"amited" napisał/a :
Więcej szczegółów
Wystawiono 1 piw(a):lukas60055
Tagi: komunikat :: podczas :: pisania
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: