Anyelberth Posted December 11, 2013 Share Posted December 11, 2013 Hola Chicos... Necesito Su Ayuda, Es que al startear el script, me tira Error. Me Dice: ERROR: Loading script failed: autos/client.lua:6: "=" expected near · Pero No Se Como Solucionarlo... Panels = guiCreateWindow(172, 0, 450, 600, "~|Skins|~", false) guiWindowSetSizable(Panels, false) guiSetAlpha(Panels, 0.98) guiSetProperty(Panels, "CaptionColour", "FF000BFE") Pestaña = guiCreateTabPanel(20, 21, 407, 532, false, Panels) PestañaAutos = guiCreateTab("~|Autos|~", Pestaña) Infernus1 = guiCreateButton(126, 31, 163, 36, "~|Infernus|~", false, PestañaAutos) guiSetFont(Infernus1, "sa-header") guiSetProperty(Infernus1, "NormalTextColour", "FF000BFE") GUIEditor.label[1] = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Infernus|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 11, 254) Buffalos = guiCreateLabel(4, 81, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Buffalo|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Buffalos, "default-bold-small") guiLabelSetColor(Buffalos, 0, 11, 254) Buffalo = guiCreateButton(126, 101, 163, 36, "~|Buffalo|~", false, PestañaAutos) guiSetFont(Buffalo, "sa-header") guiSetProperty(Buffalo, "NormalTextColour", "FF000BFE") Elegys = guiCreateLabel(4, 151, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Elegy|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Elegys, "default-bold-small") guiLabelSetColor(Elegys, 0, 11, 254) Elegy = guiCreateButton(126, 172, 163, 36, "~|Elegy|~", false, PestañaAutos) guiSetFont(Elegy, "sa-header") guiSetProperty(Elegy, "NormalTextColour", "FF000BFE") Cheetahs = guiCreateLabel(4, 222, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Cheetah|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Cheetahs, "default-bold-small") guiLabelSetColor(Cheetahs, 0, 11, 254) Cheetah = guiCreateButton(126, 243, 163, 36, "~|Cheetah|~", false, PestañaAutos) guiSetFont(Cheetah, "sa-header") guiSetProperty(Cheetah, "NormalTextColour", "FF000BFE") Bullets = guiCreateLabel(4, 293, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Bullet|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Bullets, "default-bold-small") guiLabelSetColor(Bullets, 0, 11, 254) Bullet = guiCreateButton(126, 314, 163, 36, "~|Bullet|~", false, PestañaAutos) guiSetFont(Bullet, "sa-header") guiSetProperty(Bullet, "NormalTextColour", "FF000BFE") Turismos = guiCreateLabel(4, 364, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Turismo|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Turismos, "default-bold-small") guiLabelSetColor(Turismos, 0, 11, 254) Turismo = guiCreateButton(126, 384, 163, 36, "~|Turismo|~", false, PestañaAutos) guiSetFont(Turismo, "sa-header") guiSetProperty(Turismo, "NormalTextColour", "FF000BFE") Comets = guiCreateLabel(2, 434, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Comet|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Comets, "default-bold-small") guiLabelSetColor(Comets, 0, 11, 254) Comet = guiCreateButton(126, 455, 163, 36, "~|Comet|~", false, PestañaAutos) guiSetFont(Comet, "sa-header") guiSetProperty(Comet, "NormalTextColour", "FF000BFE") PestañaMotos = guiCreateTab("~|Motos|~", Pestaña) Nrg-500S = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~|NRG-500|~~~~~~~~~~~~~~~~~~~~~", false, PestañaMotos) guiSetFont(Nrg-500S, "default-bold-small") guiLabelSetColor(Nrg-500S, 0, 11, 254) Nrg-500 = guiCreateButton(116, 35, 183, 37, "~|NRG-500|~", false, PestañaMotos) guiSetFont(Nrg-500, "sa-header") guiSetProperty(Nrg-500, "NormalTextColour", "FF000BFE") GUIEditor.tab[1] = guiCreateTab("~|Info|~", Pestaña) Cierre = guiCreateButton(166, 561, 115, 24, "Cerrar", false, Panels) guiSetFont(Cierre, "sa-header") guiSetProperty(Cierre, "NormalTextColour", "FF000BFE") By = guiCreateLabel(329, 575, 116, 15, "by: ~|For~Speed|~", false, Panels) guiLabelSetColor(By, 0, 11, 254) guiSetVisible(Panels, false) bindKey('F2','down', function() guiSetVisible(Panels, not guiGetVisible(Panels)) showCursor(not isCursorShowing()) end ) Link to comment
Castillo Posted December 11, 2013 Share Posted December 11, 2013 Es porque usaste la letra "ñ", no se puede usar. Link to comment
Anyelberth Posted December 12, 2013 Author Share Posted December 12, 2013 Es porque usaste la letra "ñ", no se puede usar. Uhmmm... Nunca Avia Trabajado Con La Letra Ñ Para Paneles, Jaja Gracias... Link to comment
Anyelberth Posted December 12, 2013 Author Share Posted December 12, 2013 Oye men, Terminado El Script, Todo Bien, Presiono Un botón y Reemplaza El Auto, Pero Cuando Presiono Cualquier parte de El Panel y Tab Panel, Todos Los Reemplazos Se Activan Automáticamente... Que Seria lo que causa esto? Panel = guiCreateWindow(172, 0, 450, 600, "~|Skins|~", false) guiWindowSetSizable(Panel, false) guiSetAlpha(Panel, 0.98) guiSetProperty(Panel, "CaptionColour", "FF000BFE") Pestana1 = guiCreateTabPanel(20, 21, 407, 532, false, Panel) PestanaAutos = guiCreateTab("~|Autos|~", Pestana1) Infernus1 = guiCreateButton(126, 31, 163, 36, "~|Infernus|~", false, PestanaAutos) guiSetFont(Infernus1, "sa-header") guiSetProperty(Infernus1, "NormalTextColour", "FF000BFE") Infernuss = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Infernus|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Infernuss, "default-bold-small") guiLabelSetColor(Infernuss, 0, 11, 254) Buffalos = guiCreateLabel(4, 81, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Buffalo|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Buffalos, "default-bold-small") guiLabelSetColor(Buffalos, 0, 11, 254) Buffalo = guiCreateButton(126, 101, 163, 36, "~|Buffalo|~", false, PestanaAutos) guiSetFont(Buffalo, "sa-header") guiSetProperty(Buffalo, "NormalTextColour", "FF000BFE") Elegys = guiCreateLabel(4, 151, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Elegy|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Elegys, "default-bold-small") guiLabelSetColor(Elegys, 0, 11, 254) Elegy = guiCreateButton(126, 172, 163, 36, "~|Elegy|~", false, PestanaAutos) guiSetFont(Elegy, "sa-header") guiSetProperty(Elegy, "NormalTextColour", "FF000BFE") Cheetahs = guiCreateLabel(4, 222, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Cheetah|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Cheetahs, "default-bold-small") guiLabelSetColor(Cheetahs, 0, 11, 254) Cheetah = guiCreateButton(126, 243, 163, 36, "~|Cheetah|~", false, PestanaAutos) guiSetFont(Cheetah, "sa-header") guiSetProperty(Cheetah, "NormalTextColour", "FF000BFE") Bullets = guiCreateLabel(4, 293, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Bullet|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Bullets, "default-bold-small") guiLabelSetColor(Bullets, 0, 11, 254) Bullet = guiCreateButton(126, 314, 163, 36, "~|Bullet|~", false, PestanaAutos) guiSetFont(Bullet, "sa-header") guiSetProperty(Bullet, "NormalTextColour", "FF000BFE") Turismos = guiCreateLabel(4, 364, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Turismo|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Turismos, "default-bold-small") guiLabelSetColor(Turismos, 0, 11, 254) Turismo = guiCreateButton(126, 384, 163, 36, "~|Turismo|~", false, PestanaAutos) guiSetFont(Turismo, "sa-header") guiSetProperty(Turismo, "NormalTextColour", "FF000BFE") Comets = guiCreateLabel(2, 434, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Comet|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Comets, "default-bold-small") guiLabelSetColor(Comets, 0, 11, 254) Comet = guiCreateButton(126, 455, 163, 36, "~|Comet|~", false, PestanaAutos) guiSetFont(Comet, "sa-header") guiSetProperty(Comet, "NormalTextColour", "FF000BFE") PestanaMotos = guiCreateTab("~|Motos|~", Pestana1) Nrg500S = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~|NRG-500|~~~~~~~~~~~~~~~~~~~~~", false, PestanaMotos) guiSetFont(Nrg500S, "default-bold-small") guiLabelSetColor(Nrg500S, 0, 11, 254) Nrg500 = guiCreateButton(116, 35, 183, 37, "~|NRG-500|~", false, PestanaMotos) guiSetFont(Nrg500, "sa-header") guiSetProperty(Nrg500, "NormalTextColour", "FF000BFE") Cierre = guiCreateButton(166, 561, 115, 24, "Cerrar", false, Panel) guiSetFont(Cierre, "sa-header") guiSetProperty(Cierre, "NormalTextColour", "FF000BFE") By = guiCreateLabel(329, 575, 116, 15, "by: ~|For~Speed|~", false, Panel) guiLabelSetColor(By, 0, 11, 254) guiSetVisible(Panel, false) ------Abrir-Cerrar---- bindKey('F5','down', function() guiSetVisible(Panel, not guiGetVisible(Panel)) showCursor(not isCursorShowing()) end) --------------------------- --- ---------------------------Infernus---------------------------- function Infernus () TXD = engineLoadTXD( "infernus.txd" ) engineImportTXD( TXD, 411 ) DFF = engineLoadDFF( "infernus.dff", 411 ) engineReplaceModel ( DFF, 411 ) end addEventHandler ( "onClientGUIClick", Infernus1, Infernus ) ----------------------------------------------------------------- --- ---------------------------Buffalo---------------------------- function Buffalo1 () TXD = engineLoadTXD( "Buffalo.txd" ) engineImportTXD( TXD, 402 ) DFF = engineLoadDFF( "Buffalo.dff", 402 ) engineReplaceModel ( DFF, 402 ) end addEventHandler ( "onClientGUIClick", Buffalo, Buffalo1 ) ----------------------------------------------------------------- --- ---------------------------elegy---------------------------- function elegy1 () TXD = engineLoadTXD( "elegy.txd" ) engineImportTXD( TXD, 562 ) DFF = engineLoadDFF( "elegy.dff", 0 ) engineReplaceModel ( DFF, 562 ) end addEventHandler ( "onClientGUIClick", Elegy, elegy1 ) ----------------------------------------------------------------- --- ---------------------------cheetah---------------------------- function cheetah1 () TXD = engineLoadTXD( "cheetah.txd" ) engineImportTXD( TXD, 415 ) DFF = engineLoadDFF( "cheetah.dff", 415 ) engineReplaceModel ( DFF, 415 ) end addEventHandler ( "onClientGUIClick", Cheetah, cheetah1 ) ----------------------------------------------------------------- --- ---------------------------bullet1---------------------------- function bullet1 () TXD = engineLoadTXD( "bullet.txd" ) engineImportTXD( TXD, 415 ) DFF = engineLoadDFF( "bullet.dff", 415 ) engineReplaceModel ( DFF, 415 ) end addEventHandler ( "onClientGUIClick", Bullet, bullet1 ) -------------------------------------------------------------------- ---------------------------bullet1---------------------------- function turismo1 () TXD = engineLoadTXD( "turismo.txd" ) engineImportTXD( TXD, 451 ) DFF = engineLoadDFF( "turismo.dff", 451 ) engineReplaceModel ( DFF, 451 ) end addEventHandler ( "onClientGUIClick", Turismo, turismo1 ) ----------------------------------------------------------------- --- ---------------------------comet---------------------------- function comet1 () TXD = engineLoadTXD( "comet.txd" ) engineImportTXD( TXD, 480 ) DFF = engineLoadDFF( "comet.dff", 480 ) engineReplaceModel ( DFF, 480 ) end addEventHandler ( "onClientGUIClick", Comet, comet1 ) ----------------------------------------------------------------- --- ---------------------------Nrg---------------------------- addEventHandler ( "onClientGUIClick", Nrg500, function() TXD = engineLoadTXD( "nrg500.txd" ) engineImportTXD( TXD, 522 ) DFF = engineLoadDFF( "nrg500.dff", 522 ) engineReplaceModel ( DFF, 522 ) end ) ----------------------------------------------------------------- --- ---------------------------Cerrar---------------------------- addEventHandler ( "onClientGUIClick", Cierre, function() guiSetVisible(Panel, false) showCursor(false) end ) ----------------------------------------------------------------- Link to comment
Castillo Posted December 12, 2013 Share Posted December 12, 2013 Eso es porque no pusiste el argumento getPropagated en false en la funcion addEventHandler. Aca: addEventHandler ( "onClientGUIClick", Infernus1, Infernus ) Ponele a todos un 'false' al final, asi: addEventHandler ( "onClientGUIClick", Infernus1, Infernus, false ) Link to comment
Anyelberth Posted December 12, 2013 Author Share Posted December 12, 2013 Eso es porque no pusiste el argumento getPropagated en false en la funcion addEventHandler.Aca: addEventHandler ( "onClientGUIClick", Infernus1, Infernus ) Ponele a todos un 'false' al final, asi: addEventHandler ( "onClientGUIClick", Infernus1, Infernus, false ) Gracias Link to comment
Recommended Posts