Jump to content

ayuda(facil)


Plate

Recommended Posts

Posted

Hola me podrian decir por que esto no anda

    addEvent ( "onZombieWasted", true ) 
    addEventHandler ( "onZombieWasted", root, 
        function ( killer ) 
            if ( killer and getElementType ( killer ) == "player" ) then 
                local zombiesLevel = getElementData ( source, "level" ) or 0 
                if (zombieLevel > 0) and (zombieLevel < 40) then 
                setElementData(killer, "EXP", getElementData(killer, "EXP") + 300) 
                elseif (zombieLevel > 41) and (zombieLevel < 50) then 
                setElementData(killer, "EXP", getElementData(killer, "EXP") + 400) 
                end 
            end 
        end 
    ) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Cual es el problema?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Estas usando "zombieLevel" en tu "if" y "elseif", pero tu variable es "zombiesLevel".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

ahora me dice

attempt to comparate a number whit boolean

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Nop no falta 1 end

1 por la funcion otro por el primer if y otro por el segundo

EDIT: Ya lo solucione muchas gracias nod y solid

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted (edited)
Nop no falta 1 end

1 por la funcion otro por el primer if y otro por el segundo

EDIT: Ya lo solucione muchas gracias nod y solid

Cual era el problema?

Edit, No problem :mrgreen:

Edited by Guest

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted

De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Ni idea si el jugador tiene experiencia 0 me da error pero si tiene + de 0 hay si ya funciona

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...