Azten Posted January 15, 2011 Share Posted January 15, 2011 (edited) hi every one i need help iv been using race_starter_pack script but it has a problem i edited some stuff in it and tryed to make it work it works fine but when i press f7 only the mouse shows and dosent let me do any thing so if i pressed f7 i would have to restart i said i maybe did some thing rong when i edited it then i reinstalled the original (not edited) so it still does the same so people plz help me here is the code --[[ **Created By MAR 2010 **panel_c.lua by MAR **Please don't reproduce this without permission. **Copyright 2010 ]]-- GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Radio = {} ShopItems = { "Vehicle Repair","Nitro","Flip","Ghostmode","Barrel","Hay","Blow A Player","Godmode","Mortar Strike","Invisibility","Change Time" } function startGUI() local Edit1 = getElementData(getLocalPlayer(), "info.name") local Edit2 = getElementData(getLocalPlayer(), "info.country") local Edit3 = getElementData(getLocalPlayer(), "info.age") local Edit4 = getElementData(getLocalPlayer(), "info.email") local Edit5 = getElementData(getLocalPlayer(), "info.gender") local Edit6 = getElementData(getLocalPlayer(), "info.contact") local ip = getElementData(getLocalPlayer(), "data.ip") local serial= getElementData(getLocalPlayer(), "data.serial") local Bpoints=getElementData(getLocalPlayer(), "data.AchB") local Spins = getElementData(getLocalPlayer(), "data.Ach5") local Rolls = getElementData(getLocalPlayer(), "data.Ach4") local ShopPurchases = getElementData(getLocalPlayer(), "data.Ach6") local RaceAttempts = getElementData(getLocalPlayer(), "data.raceAttempts") local Wins1 = getElementData(getLocalPlayer(), "race.Wins") local Wins2 = getElementData(getLocalPlayer(), "race.Wins2") local Wins3 = getElementData(getLocalPlayer(), "race.Wins3") local money = getElementData(getLocalPlayer(), "data.money") local exploded = getElementData(getLocalPlayer(), "data.Ach2") local AchNum = getElementData(getLocalPlayer(),"data.Achnum") local namecolor = getElementData(getLocalPlayer(),"info.namecolor") local chatcolor = getElementData(getLocalPlayer(),"info.chatcolor") local Col1 = getElementData(getLocalPlayer(),"vehicle.col1") local Col2 = getElementData(getLocalPlayer(),"vehicle.col2") local Col3 = getElementData(getLocalPlayer(),"vehicle.col3") local Col4 = getElementData(getLocalPlayer(),"vehicle.col4") local R = getElementData(getLocalPlayer(),"vehicle.LightR") local G = getElementData(getLocalPlayer(),"vehicle.LightG") local B = getElementData(getLocalPlayer(),"vehicle.LightB") local DDAttempts = getElementData(getLocalPlayer(),"data.DDAttempts") local DDWins = getElementData(getLocalPlayer(),"data.DDWins") local timee = getRealTime() local minute = timee.minute local hour = timee.hour local second = timee.second local day = timee.monthday local month = timee.month local year = timee.year + 1900 if DDAttempts == 0 then ratio = 0 else ratio = (tonumber(DDWins)/tonumber(DDAttempts))*100 end GUIEditor_Window[1] = guiCreateWindow(103,82,538,430,"Welcome to your User Panel, "..getPlayerName(getLocalPlayer()),false) GUIEditor_TabPanel[1] = guiCreateTabPanel(21,103,505,313,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Home",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(2,13,490,25,getPlayerName(getLocalPlayer()).."'s Userpanel ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(25,84,122,26,Edit1,false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(173,84,122,26,Edit2,false,GUIEditor_Tab[1]) GUIEditor_Edit[4] = guiCreateEdit(322,84,122,26,Edit4,false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(25,152,122,26,""..Edit3,false,GUIEditor_Tab[1]) GUIEditor_Edit[11]= guiCreateEdit(173,151,122,26,Edit5,false,GUIEditor_Tab[1]) GUIEditor_Edit[12]= guiCreateEdit(322,151,122,26,""..Edit6,false,GUIEditor_Tab[1]) GUIEditor_Label[34] = guiCreateLabel(339,131,74,14,"Contact Info:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[34],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[34],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[34],"left",false) GUIEditor_Label[33] = guiCreateLabel(218,131,47,14,"Gender:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[33],255,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[33],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[33],"left",false) GUIEditor_Label[5] = guiCreateLabel(41,67,95,16,"Your Real Name:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[6] = guiCreateLabel(209,67,88,13,"Country:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Label[7] = guiCreateLabel(75,131,31,16,"Age:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) GUIEditor_Label[8] = guiCreateLabel(355,66,94,15,"E-mail:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false) GUIEditor_Label[2010] = guiCreateLabel(48,199,205,20,"Time: "..hour..":"..minute..":"..second,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2010],0,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2010],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2010],"left",false) guiSetFont(GUIEditor_Label[2010],"clear-normal") GUIEditor_Label[2011] = guiCreateLabel(48,217,209,20,"Date: "..day.."/"..month.."/"..year,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2011],0,0,255) guiLabelSetVerticalAlign(GUIEditor_Label[2011],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2011],"left",false) guiSetFont(GUIEditor_Label[2011],"clear-normal") GUIEditor_Label[2012] = guiCreateLabel(48,234,209,20,"IP: "..ip,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2012],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[2012],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2012],"left",false) guiSetFont(GUIEditor_Label[2012],"clear-normal") GUIEditor_Button[1] = guiCreateButton(326,219,121,27,"Save All",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] =guiCreateTab("Stats",GUIEditor_TabPanel[1]) -- Statistics titles1 = guiCreateLabel(10,10,156,20,"Cash & Points.",false,GUIEditor_Tab[2]) guiLabelSetColor(titles1,0,255,0) guiLabelSetVerticalAlign(titles1,"top") guiLabelSetHorizontalAlign(titles1,"left",false) guiSetFont(titles1,"default-bold-small") titles2 = guiCreateLabel(10,76,156,20,"Rolls / Spins.",false,GUIEditor_Tab[2]) guiLabelSetColor(titles2,0,255,255) guiLabelSetVerticalAlign(titles2,"top") guiLabelSetHorizontalAlign(titles2,"left",false) guiSetFont(titles2,"default-bold-small") titles3 = guiCreateLabel(10,140,156,20,"Achievements.",false,GUIEditor_Tab[2]) guiLabelSetColor(titles3,0,255,255) guiLabelSetVerticalAlign(titles3,"top") guiLabelSetHorizontalAlign(titles3,"left",false) guiSetFont(titles3,"default-bold-small") titles4 = guiCreateLabel(259,10,156,20,"Race Stats.",false,GUIEditor_Tab[2]) guiLabelSetColor(titles4,0,255,255) guiLabelSetVerticalAlign(titles4,"top") guiLabelSetHorizontalAlign(titles4,"left",false) guiSetFont(titles4,"default-bold-small") titles5 = guiCreateLabel(259,113,156,20,"Misc.",false,GUIEditor_Tab[2]) guiLabelSetColor(titles5,0,255,255) guiLabelSetVerticalAlign(titles5,"top") guiLabelSetHorizontalAlign(titles5,"left",false) guiSetFont(titles5,"default-bold-small") titles6 = guiCreateLabel(10,184,156,20,"DD/DM Stats.",false,GUIEditor_Tab[2]) guiLabelSetColor(titles6,0,255,255) guiLabelSetVerticalAlign(titles6,"top") guiLabelSetHorizontalAlign(titles6,"left",false) guiSetFont(titles6,"default-bold-small") --> GUIEditor_Button[2] = guiCreateButton(28,-10,5,5,"",false,GUIEditor_Tab[2]) GUIEditor_Label[11] = guiCreateLabel(11,28,210,23,"You currently have $"..money.." in cash.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[11],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[11],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",false) GUIEditor_Label[12] = guiCreateLabel(13,94,125,20,"You spinned "..Spins.." times.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[12],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[12],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[12],"left",false) GUIEditor_Label[13] = guiCreateLabel(13,113,210,18,"You rolled "..Rolls.." times.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[13],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[13],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[13],"left",false) GUIEditor_Label[17] = guiCreateLabel(262,29,230,22,"You have attempted "..RaceAttempts.." races.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[17],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[17],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[17],"left",false) GUIEditor_Label[14] = guiCreateLabel(262,48,230,17,"You have finished "..Wins1.." times first.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[14],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[14],"left",false) GUIEditor_Label[15] = guiCreateLabel(13,161,302,19,"You have unlocked "..AchNum.."/9 Achievements.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[15],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[15],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[15],"left",false) GUIEditor_Label[16] = guiCreateLabel(12,47,190,17,"You currently have "..Bpoints.." B points.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[16],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[16],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[16],"left",false) GUIEditor_Label[18] = guiCreateLabel(265,162,213,17,"You have exploded "..exploded.." times.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[18],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[18],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[18],"left",false) GUIEditor_Label[109] = guiCreateLabel(264,132,227,33,"You have purchased "..ShopPurchases.." items from the shop.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[109],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[109],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[109],"left",true) GUIEditor_Label[19] = guiCreateLabel(262,67,227,17,"You have finished "..Wins2.." times second.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[19],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[19],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[19],"left",false) GUIEditor_Label[20] = guiCreateLabel(262,86,229,17,"You have finished "..Wins3.." times third.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[20],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[20],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[20],"left",false) guiSetFont(GUIEditor_Label[27],"default-bold-small") GUIEditor_Label[1550] = guiCreateLabel(11,204,478,20,"You have attempted "..DDAttempts.." DD/DM Matches.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[1550],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[1550],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1550],"left",false) GUIEditor_Label[1551] = guiCreateLabel(11,224,478,20,"You have won "..DDWins.." matches.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[1551],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[1551],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1551],"left",false) GUIEditor_Label[1552] = guiCreateLabel(11,246,478,20,"That gives you a ratio of "..ratio .."%.",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[1552],0,255,100) guiLabelSetVerticalAlign(GUIEditor_Label[1552],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1552],"left",false) --Shop GUIEditor_Tab[3] = guiCreateTab("Shop",GUIEditor_TabPanel[1]) GUIEditor_Label[21] = guiCreateLabel(189,12,233,24,"Race Mini-Shop!",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[21],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[21],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[21],"left",false) guiSetFont(GUIEditor_Label[21],"default-bold-small") GUIEditor_Grid[911] = guiCreateGridList(12,32,186,232,false,GUIEditor_Tab[3]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[3] = guiCreateButton(285,234,99,27,"Buy",false,GUIEditor_Tab[3]) GUIEditor_Label[1041] = guiCreateLabel(213,101,238,25,"Price: N/A",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[1041],255,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1041],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1041],"left",false) GUIEditor_Label[1042] = guiCreateLabel(212,128,269,60,"Description: Please select an item for more information. Buying maps is coming soon.",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[1042],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1042],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1042],"left",true) GUIEditor_Radio[1] = guiCreateRadioButton(366,40,96,20,"Shop Items",false,GUIEditor_Tab[3]) guiRadioButtonSetSelected(GUIEditor_Radio[1],true) GUIEditor_Label[1043] = guiCreateLabel(204,41,154,16,"Please choose a category:",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[1043],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1043],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1043],"left",false) guiSetFont(GUIEditor_Label[1043],"default-bold-small") GUIEditor_Radio[2] = guiCreateRadioButton(366,63,96,20,"Maps",false,GUIEditor_Tab[3]) GUIEditor_Label[1044] = guiCreateLabel(213,191,238,25,"Previous Owner: N/A",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[1044],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1044],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1044],"left",false) local ShopColumn = guiGridListAddColumn( GUIEditor_Grid[911], "Items", 0.85 ) if ( ShopColumn ) then for k, v in ipairs(ShopItems) do ShopRow = guiGridListAddRow ( GUIEditor_Grid[911] ) guiGridListSetItemText ( GUIEditor_Grid[911], ShopRow, ShopColumn, v, false, false ) end end -- Money Transfer Tab GUIEditor_Tab[5] = guiCreateTab("Money Transfer",GUIEditor_TabPanel[1]) GUIEditor_Grid[2] = guiCreateGridList(16,21,166,238,false,GUIEditor_Tab[5]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) Edited January 21, 2011 by Guest Link to comment
Buffalo Posted January 15, 2011 Share Posted January 15, 2011 You need to provide code which was edited. Link to comment
Azten Posted January 16, 2011 Author Share Posted January 16, 2011 (edited) after i repaired i just disabled the vote for ghostmode Edited January 16, 2011 by Guest Link to comment
Azten Posted January 21, 2011 Author Share Posted January 21, 2011 please !!! help the userpanel dosnt work i press f7 and i get stuck so i reconnect and when i changed it to f1 still does the same 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