Drano Posted December 7, 2014 Share Posted December 7, 2014 Cum asi putea invata scripting in cam maxim 1 luna ? Stiu engleza cam 10% .... Daca mati putea ajuta.. Link to comment
Dany Alex Posted December 7, 2014 Share Posted December 7, 2014 https://wiki.multitheftauto.com/ Link to comment
Drano Posted December 7, 2014 Author Share Posted December 7, 2014 nu stiu bine engleza mane ) cum sa invat de acolo?) Link to comment
Dany Alex Posted December 7, 2014 Share Posted December 7, 2014 Cumpara-ti un manual roman-englez Link to comment
Strike27208 Posted December 8, 2014 Share Posted December 8, 2014 nu stiu bine engleza mane ) cum sa invat de acolo?) Pai stii cum faci ? Folosesti Google Translate unde nu stii ce inseamna , de exemplu : getPedArmour -- get - obtine -- Ped - jucator, SKIN -- Armour = armura EX 2 : function mesajMoarte (thePlayer) ------function - motorul scriptului / thePlayer -- este pentru local adica doar tie iti arata if isPedDead (thePlayer) then ----- if - daca / isPedDead (thePlayer ) - esteJucatorMort ( Jucatorul ) / then - atunci outputChatBox ( "You're dead... prepare to spawn.", thePlayer ) ---outputChatBox - nu prea are rost traducerea aici . da mesaj pe chat end -- sfarsitul functiei. este foarte simpu sunt cuvinte din engleza legate intre ele . Link to comment
crismar Posted December 8, 2014 Share Posted December 8, 2014 nu stiu bine engleza mane ) cum sa invat de acolo?) Pai stii cum faci ? Folosesti Google Translate unde nu stii ce inseamna , de exemplu : getPedArmour -- get - obtine -- Ped - jucator, SKIN -- Armour = armura EX 2 : function mesajMoarte (thePlayer) ------function - motorul scriptului / thePlayer -- este pentru local adica doar tie iti arata if isPedDead (thePlayer) then ----- if - daca / isPedDead (thePlayer ) - esteJucatorMort ( Jucatorul ) / then - atunci outputChatBox ( "You're dead... prepare to spawn.", thePlayer ) ---outputChatBox - nu prea are rost traducerea aici . da mesaj pe chat end -- sfarsitul functiei. este foarte simpu sunt cuvinte din engleza legate intre ele . Si cand o sa fie chemata functia 'mesajMoarte' ? Inca ceva, recomand sa nu folosesti nume in romana pt. functii... face scripturile urate. Link to comment
Strike27208 Posted December 8, 2014 Share Posted December 8, 2014 nu stiu bine engleza mane ) cum sa invat de acolo?) Pai stii cum faci ? Folosesti Google Translate unde nu stii ce inseamna , de exemplu : getPedArmour -- get - obtine -- Ped - jucator, SKIN -- Armour = armura EX 2 : function mesajMoarte (thePlayer) ------function - motorul scriptului / thePlayer -- este pentru local adica doar tie iti arata if isPedDead (thePlayer) then ----- if - daca / isPedDead (thePlayer ) - esteJucatorMort ( Jucatorul ) / then - atunci outputChatBox ( "You're dead... prepare to spawn.", thePlayer ) ---outputChatBox - nu prea are rost traducerea aici . da mesaj pe chat end --- acesta este de la " IF " mereu functia " if " are nevoie de inca un end . end -- sfarsitul functiei. este foarte simpu sunt cuvinte din engleza legate intre ele . Si cand o sa fie chemata functia 'mesajMoarte' ? Inca ceva, recomand sa nu folosesti nume in romana pt. functii... face scripturile urate. Eu am dat un exemplu , acolo poate sa puna ce vrea el , DeadMessage ..etc. Eu nu folosesc romana absolut de loc in scripturi dar ca sa inteleaga el . Link to comment
crismar Posted December 8, 2014 Share Posted December 8, 2014 Si lipseste eventHandleru Link to comment
crismar Posted December 8, 2014 Share Posted December 8, 2014 Nu poti invata Lua in 1 luna, mai ales daca nu ai o baza extinsa de programare. Eu personal am in semnatura tot ce stiu, si pot sa-ti spun un lucru: daca stii sintaxa C/C++ sau C# n-o sa ai probleme. Link to comment
Strike27208 Posted December 8, 2014 Share Posted December 8, 2014 Si lipseste eventHandleru Nu are nevoie de event . Link to comment
crismar Posted December 9, 2014 Share Posted December 9, 2014 Si lipseste eventHandleru Nu are nevoie de event . Si atunci cum/ce/cine cheama functia ? Link to comment
Strike27208 Posted December 10, 2014 Share Posted December 10, 2014 Si lipseste eventHandleru Nu are nevoie de event . Si atunci cum/ce/cine cheama functia ? Da am gresit le mai incurc ca nu ma pricep prea bine in partea asta adica vroiam sa fac un mesaj de moarte dar trebuia folosit. function DeadMessage (thePlayer) outputChatBox ( "You're dead... prepare to spawn.", thePlayer ) guiCreateStaticImage( x, y, Sx, Sy, "name.png", false ) end addEventHandler("onClientPedWasted", getRootElement(), DeadMessage) Eu m-am complicat din cauza ca am crezut ca isPedDead are cam aceasi functie dar nup. Eventual la ce am facut eu mai sus merge o comanda sau un trigger pe buton. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now