Recommended Posts

Ciao.. sono dinuovo qui.. per un aiuto che mi scervella..

dovrei aggiungere al joinquit la funzione che quando si connette qualcuno esca (dove stava la deathlist) la scritta *(name) is join .... con la flag del suo paese.

Si può creare? grazie.

Share this post


Link to post

È una cazzata,pensa che mentre sto scrivendo già ho la script in mente.

Ma non lo faccio se non inizi tu.

Non siamo il mercatino per le script.

Share this post


Link to post

Ho risolto, ho un nuovo problema.. il pickup del repair non va più, quando ci passo con l'auto sopra non ripara.. ho controllato tutto ma mi sembra in ordine l'unico warning che mi da in console è questo:

''[2013-07-12 21:33:10] WARNING: race/race_client.lua(Line 1202) [Client] setVehicleFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen.

[2013-07-12 21:33:10] Some files in 'race' use deprecated functions.

[2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.''

Come posso risolvere?

Share this post


Link to post

[2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.''

mai provato a scrivere upgrade in console?

Share this post


Link to post

Ma scusa il debugscript parla chiaro, stai usando una gamemode vecchia e divi sostituite le funzioni.

Share this post


Link to post
[2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.''

mai provato a scrivere upgrade in console?

non cambia nulla.

Share this post


Link to post
Ma scusa il debugscript parla chiaro, stai usando una gamemode vecchia e divi sostituite le funzioni.

precisamente quali funzioni? D:

Share this post


Link to post
[2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.''

mai provato a scrivere upgrade in console?

non cambia nulla.

fallo manualmente

Share this post


Link to post

il problema non e neanche setVehicleFrozen da convertire a setElementFrozen

il vero problema è : Some files in 'race' use deprecated functions

Che razza di gamemode stai usando? del 2007?

Se il debug potrebbe mandare a cagare la gente gia l avrebbe fatto :mrgreen:

Share this post


Link to post

Per risolvere il WARNING ti basta sostituire "setVehicleFrozen" con "setElementFrozen" nel file "race_client.lua" alla linea 1202, oppure scrivere in console "upgrade race". Dubito però che risolva il problema del pickup...

Share this post


Link to post

l'upgrade l'ho fatto.. ma il problema del pickup persiste..

No la gm è del 2012, ora ci ho ripreso a lavorare perchè ho riaperto il server.

Share this post


Link to post

Evidentemente hai tanti di quei bug che non riesci a leggere il vero problema nel debug,prova a vedere nei file logs.

Share this post


Link to post

===========================================================

= Multi Theft Auto: San Andreas v1.3

===========================================================

= Server name : -uNk. |Unknown Racers Server| DM

= Server IP address: 7.44.227.22

= Server port : 22003

=

= Log file : .. 1.3/server/mods/deathmatch/logs/server.log

= Maximum players : 32

= HTTP port : 22005

= Voice Chat : Disabled

===========================================================

[2013-07-12 22:20:10] Resources: 70 loaded, 0 failed

[2013-07-12 22:20:10] Querying game-monitor.com master server... failed! (Not available)

[2013-07-12 22:20:31] Querying backup master server... failed! (Not available)

[2013-07-12 22:20:52] Starting resources.............

[2013-07-12 22:20:53] INFO: Race resource starting

[2013-07-12 22:20:53] start: Resource 'race_toptimes' started

[2013-07-12 22:20:54] start: Resource 'race_traffic_sensor' started

[2013-07-12 22:20:54] INFO: Race onGamemodeStart

[2013-07-12 22:20:54] ERROR: exports: Call to non-running server resource (scoreboard) [string "?"]

[2013-07-12 22:20:54] Server started and is ready to accept connections!

[2013-07-12 22:20:54] Type 'help' for a list of commands.

[2013-07-12 22:20:54] Starting [DM]HTC-1

[2013-07-12 22:20:55] INFO: onGamemodeMapStart([DM]HTC-1)

[2013-07-12 22:20:55] INFO: Stopping map

[2013-07-12 22:20:55] Map '[DM]HTC_Vol1_New_Beginning' started.

[2013-07-12 22:20:55] start: Resource '[DM]HTC-1' started

Share this post


Link to post

i log non mostrano errori (oltre a quello della scoreboard che c'e l'ho in un altra cartella perchè l'ho cambiata)

Share this post


Link to post

Ok apri il race_server e cerca onPlayerPickUpRacePickup

Scendi giu fino a : if pickup.type == 'repair'

Controlla se ce scritto cosi : local vehicle = getPedOccupiedVehicle ( source)

fixVehicle(vehicle)

Share this post


Link to post

l'unico che c'e è questo:

''

addEvent('onPlayerPickUpRacePickup')

addEvent('onPlayerPickUpRacePickupInternal', true)

addEventHandler('onPlayerPickUpRacePickupInternal', g_Root,

function(pickupID, respawntime)

if checkClient( false, source, 'onPlayerPickUpRacePickupInternal' ) then return end

local pickup = g_Pickups[table.find(g_Pickups, 'id', pickupID)]

local vehicle = g_Vehicles[source]

if not pickup or not vehicle then return end

if respawntime and tonumber(respawntime) >= 50 then

table.insert(unloadedPickups, pickupID)

clientCall(g_Root, 'unloadPickup', pickupID)

TimerManager.createTimerFor("map"):setTimer(ServerLoadPickup, tonumber(respawntime), 1, pickupID)

end

if pickup.type == 'nitro' then

addVehicleUpgrade(vehicle, 1010)

elseif pickup.type == 'vehiclechange' then

if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then

clientCall(source, 'removeVehicleNitro')

setVehicleID(vehicle, pickup.vehicle)

if pickup.paintjob or pickup.upgrades then

setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades)

end

end

end

triggerEvent('onPlayerPickUpRacePickup', source, pickupID, pickup.type, pickup.vehicle)

end

)

''

Share this post


Link to post

Fai una cosa prendi un race_server nuovo e sostituiscilo,molto probabilmente hai editato solo il lato client quindi puoi farlo.

Share this post


Link to post

Prova così:

addEvent('onPlayerPickUpRacePickup') 
addEvent('onPlayerPickUpRacePickupInternal', true) 
addEventHandler('onPlayerPickUpRacePickupInternal', g_Root, 
function(pickupID, respawntime) 
    if checkClient( false, source, 'onPlayerPickUpRacePickupInternal' ) then return end 
    local pickup = g_Pickups[table.find(g_Pickups, 'id', pickupID)] 
    local vehicle = g_Vehicles[source] 
    if not pickup or not vehicle then return end 
    if respawntime and tonumber(respawntime) >= 50 then 
        table.insert(unloadedPickups, pickupID) 
        clientCall(g_Root, 'unloadPickup', pickupID) 
        TimerManager.createTimerFor("map"):setTimer(ServerLoadPickup, tonumber(respawntime), 1, pickupID) 
    end 
    if pickup.type == 'nitro' then 
        addVehicleUpgrade(vehicle, 1010) 
    elseif pickup.type == 'vehiclechange' then 
        if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then 
            clientCall(source, 'removeVehicleNitro') 
            setVehicleID(vehicle, pickup.vehicle) 
            if pickup.paintjob or pickup.upgrades then 
                setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades) 
            end 
        end 
    elseif pickup.type == 'repair' then 
        fixVehicle(vehicle) 
    end 
    triggerEvent('onPlayerPickUpRacePickup', source, pickupID, pickup.type, pickup.vehicle) 
end) 

Edit: se non dovesse funzionare fai come ti ha detto Hunterix.

Share this post


Link to post
Prova così:
addEvent('onPlayerPickUpRacePickup') 
addEvent('onPlayerPickUpRacePickupInternal', true) 
addEventHandler('onPlayerPickUpRacePickupInternal', g_Root, 
function(pickupID, respawntime) 
    if checkClient( false, source, 'onPlayerPickUpRacePickupInternal' ) then return end 
    local pickup = g_Pickups[table.find(g_Pickups, 'id', pickupID)] 
    local vehicle = g_Vehicles[source] 
    if not pickup or not vehicle then return end 
    if respawntime and tonumber(respawntime) >= 50 then 
        table.insert(unloadedPickups, pickupID) 
        clientCall(g_Root, 'unloadPickup', pickupID) 
        TimerManager.createTimerFor("map"):setTimer(ServerLoadPickup, tonumber(respawntime), 1, pickupID) 
    end 
    if pickup.type == 'nitro' then 
        addVehicleUpgrade(vehicle, 1010) 
    elseif pickup.type == 'vehiclechange' then 
        if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then 
            clientCall(source, 'removeVehicleNitro') 
            setVehicleID(vehicle, pickup.vehicle) 
            if pickup.paintjob or pickup.upgrades then 
                setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades) 
            end 
        end 
    elseif pickup.type == 'repair' then 
        fixVehicle(vehicle) 
    end 
    triggerEvent('onPlayerPickUpRacePickup', source, pickupID, pickup.type, pickup.vehicle) 
end) 

Edit: se non dovesse funzionare fai come ti ha detto Hunterix.

Glielo aggiungo sotto a quello che ho postato sopra? o sostituisco tutto?

Share this post


Link to post
Glielo aggiungo sotto a quello che ho postato sopra? o sostituisco tutto?

Sostituisci.

Share this post


Link to post

Ho risolto, ho fatto prima a cambiare tutto il race_server.lua sicuramente qualche altra funzione non andava di sicuro.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.