Try Posted October 14, 2011 Author Share Posted October 14, 2011 Ok Ok If u look at the script you will see (at the client) 161. guiSetText(GUIEditor_Label[7],xa) 162. guiSetText(GUIEditor_Label[8],ya) 163. guiSetText(GUIEditor_Label[9],za) 164. nam = getPlayerName(localPlayer) 165. guiSetText(GUIEditor_Label[6],nam) 166. mon = getPlayerMoney(localPlayer) 167. guiSetText(GUIEditor_Label[10],mon) idk where put it I need it work when the player open the window ------------------------------ And the other its here: idk why don't work [server] 117. function tag ( source, client, col, ta ) 118. setElementData(source,"userr",col,ta) 119. end 120. addEvent( "tagg", true ) 121. addEventHandler( "tagg", getRootElement(), tag) [Client] 139. function tag(button, state) 140. if (source == GUIEditor_Button[1]) then 141. ta = guiGetText(GUIEditor_Edit[2]) 142. col = guiGetText(GUIEditor_Edit[1]) 143. tiggerServerEvent("tagg",localPlayer,localPlayer,col,ta) 144. end 145. end 146. addEventHandler("onClientGUIClick",getRootElement(),tag) Can you help me?? Link to comment
BriGhtx3 Posted October 14, 2011 Share Posted October 14, 2011 First Fix : Client --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(491,314,351,344,"Member Stuffs --- by Maria",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,333,311,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("User Info",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(12,11,38,16,"Name:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(12,31,11,15,"X:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(12,50,11,15,"Y:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(12,71,11,15,"Z:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(12,91,42,16,"Money:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(53,11,200,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(29,31,249,12,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(28,50,176,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(28,71,204,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[9],255,0,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(59,91,265,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(12,119,139,17,"Set Tag/Set Tag Color:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[11],0,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,149,71,21,"#00ff00",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],7) GUIEditor_Label[12] = guiCreateLabel(87,151,26,17,"--->",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[12],0,100,255) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(117,149,116,21,"Your #00ff00[TAG] here!",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],25) GUIEditor_Button[1] = guiCreateButton(10,182,223,22,"Set Tag",false,GUIEditor_Tab[1]) GUIEditor_Label[13] = guiCreateLabel(45,218,244,56,"BADWOLF",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[13],"sa-header") GUIEditor_Tab[2] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Label[14] = guiCreateLabel(10,10,115,17,"Create Fire: <1-99>",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],255,0,0) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(10,30,40,20,"5",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[3],2) GUIEditor_Button[2] = guiCreateButton(56,30,269,20,"Create Fire",false,GUIEditor_Tab[2]) GUIEditor_Label[15] = guiCreateLabel(10,59,115,17,"Items:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[15],0,255,0) guiSetFont(GUIEditor_Label[15],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(10,83,86,19,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(124,83,86,19,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(235,83,86,19,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(10,111,86,19,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(124,110,86,19,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(235,109,86,19,"Infrared",false,GUIEditor_Tab[2]) GUIEditor_Label[16] = guiCreateLabel(10,136,115,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[16],0,100,255) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(10,159,86,19,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(124,159,86,19,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(235,159,86,19,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(10,186,86,19,"Money Bag",false,GUIEditor_Tab[2]) GUIEditor_Button[13] = guiCreateButton(124,186,86,19,"Dolphin",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(235,186,86,19,"Submarine",false,GUIEditor_Tab[2]) GUIEditor_Label[17] = guiCreateLabel(28,238,276,17,"Any bugs/sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[17],0,255,0) guiSetFont(GUIEditor_Label[17],"default-bold-small") -- 1º Part Buttons function fire(button, state) if (source == GUIEditor_Button[2]) then nun = guiGetText(GUIEditor_Edit[3]) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) end end addEventHandler("onClientGUIClick",getRootElement(),fire) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) col = guiGetText(GUIEditor_Edit[1]) tiggerServerEvent("tagg",localPlayer,localPlayer,col,ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) xa,ya,za = getElementPosition(localPlayer) guiSetText(GUIEditor_Label[7],xa) guiSetText(GUIEditor_Label[8],ya) guiSetText(GUIEditor_Label[9],za) nam = getPlayerName(localPlayer) guiSetText(GUIEditor_Label[6],nam) mon = getPlayerMoney(localPlayer) guiSetText(GUIEditor_Label[10],mon) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) Second Fix --THIS IS THE SERVER FILE function tag ( thePlayer, col, ta ) setElementData(thePlayer,"userr",col,ta) end addEvent( "tagg", true ) addEventHandler( "tagg", getRootElement(), tag) --THAT IS THE CLIENT FILE function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) col = guiGetText(GUIEditor_Edit[1]) tiggerServerEvent(getLocalPlayer(),"tagg",getLocalPlayer(),col,ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) You triggered the Event wrong. Link to comment
Castillo Posted October 15, 2011 Share Posted October 15, 2011 You also triggered it wrong. --THIS IS THE SERVER FILE function tag ( thePlayer, col, ta ) setElementData(thePlayer,"userr",col,ta) end addEvent( "tagg", true ) addEventHandler( "tagg", getRootElement(), tag) --THAT IS THE CLIENT FILE function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) col = guiGetText(GUIEditor_Edit[1]) tiggerServerEvent("tagg",localPlayer,localPlayer,col,ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) Link to comment
Try Posted October 16, 2011 Author Share Posted October 16, 2011 ok butt the debugscript 3 the client:143 tiggerServerEvent (a nil value) EDIT OK OK SOLVED ITS TRIGGER NOT TIGGER Lol But thanks Link to comment
Try Posted October 16, 2011 Author Share Posted October 16, 2011 ok ok still not workinnnggg its says its a bad argument but let me try to explain ok setElementData(source,"userr", HERE ITS LIKE THIS ---> #00ff00[bW] so if i separete idk if it work i will try again but now only with one edit Link to comment
Try Posted October 16, 2011 Author Share Posted October 16, 2011 Okkk okkk guys all solved!! Thanks for allllllllllllllllll the peoples who helped me (2 peoples) 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