micheal1230 Posted June 11, 2012 Share Posted June 11, 2012 Well Im Trying To Set The Players Number As The Item Value Of The Phone But It Does'nt Work It Is In The Correct Column And It Fails To Give The Item elseif(shop_type == -- s8) --> then local phonenumber = getElementData(localPlayer, "cellnumber") item = { {"Ghettoblaster","A black ghettoblaster.", "250", 54, 1, 1, false,10}, {"Katana", "Your favourite Japanese sword.", "2500", 8, 1, 1,true,100}, {"Camera", "A small black analogue camera.", "75", 43, 25,1,true, 30}, {"Cellphone", "A stylish, slim cell phone.", "75", 2, phonenumber,1,false,50}, {"Radio", "A black radio.", "50", 6, 1,1,false,30}, {"Earpiece", "An earpiece that can be used with an radio.", "225", 88, 1,1,false,60}, {"Watch", "Telling the time was never so sexy!", "25", 17, 1, 1,false,10}, {"MP3 Player", "A white, sleek looking MP3 Player. The brand reads EyePod.", "120", 19, 1,1,false,7}, {"Chemistry Set", "A small chemistry set.", "2000", 44, 1,1,false,15}, {"Safe", "A Safe to store your items in.", "300", 60, 1,1,false,0}, {"Portable TV", "A portable TV to watch the TV.", "750", 104, 1, 1, false, 350}, {"Breathalizer","A small black breathalizer.", "350", 53, 1, 1, false,10}, {"Card Deck","A card deck to play some fun games.", "20", 77, 1, 1, false,10}, {"Glowstick","A green glowstick.", "70", 28, 1, 1, false,10}, {"PDA","A PDA you can use to browse the internet and check your emails.", "1000", 96, 1, 1, false,10}, {"Electric lock","An anti theft electric lock.", "5000", 119, 1, 1, false,2000}, {"GPS","Use it to help you get around.", "150", 67, 1, 1, false,10} } Link to comment
JR10 Posted June 11, 2012 Share Posted June 11, 2012 I didn't get a word of what you said. What are you trying to accomplish? Link to comment
Jaysds1 Posted June 11, 2012 Share Posted June 11, 2012 I think he's trying to set a players Phone Number to a number located in a table. @michael, We need more info/script. Link to comment
micheal1230 Posted June 12, 2012 Author Share Posted June 12, 2012 I think he's trying to set a players Phone Number to a number located in a table.@michael, We need more info/script. What do you mean more info? and yes im trying to do what you said Link to comment
Jaysds1 Posted June 12, 2012 Share Posted June 12, 2012 Ok, try using: math.random --for setting a random number Table = {} -- for adding numbers in 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