iPrestege Posted January 30, 2013 Share Posted January 30, 2013 (edited) Hello , i have a problem here in my top "Drift" SetItemText it,s not working just the window -_-" here you are the client side : GUIEditor = { gridlist = {}, label = {}, } function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end TopDriftWnd = guiCreateWindow(0, 0, 0, 0, "==[ Top 25 Drift ]==", false) centerWindow(TopDriftWnd) guiWindowSetMovable(TopDriftWnd, false) guiWindowSetSizable(TopDriftWnd, false) guiSetAlpha(TopDriftWnd, 1.00) guiSetProperty(TopDriftWnd, "CaptionColour", "FFFFFC00") GUIEditor.gridlist[1] = guiCreateGridList(9, 26, 351, 288, false, TopDriftWnd) guiGridListAddColumn(GUIEditor.gridlist[1], "Rank", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "PlayerName", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "BestDrift", 0.3) function open() guiSetVisible(TopDriftWnd,not guiGetVisible(TopDriftWnd)) showCursor(guiGetVisible(TopDriftWnd)) guiSetInputEnabled(guiGetVisible(TopDriftWnd)) getTopDrift() end bindKey("F6","down",open) function getTopDrift() triggerServerEvent("onGetDrift",localPlayer) end addEvent("onSetOnGrid",true) addEventHandler("onSetOnGrid",root, function (drift) guiGridListClear(GUIEditor.gridlist[1]) for i,top in ipairs(drift) do local num = guiGridListGetRowCount(GUIEditor.gridlist[1]) if ( num <= 26 ) then local row = guiGridListAddRow(GUIEditor.gridlist[1]) local num = guiGridListGetRowCount(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,num,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,top.name,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,3,top.dir,false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,0,255,0) guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,255,255,0) end end end ) Some help ^^ if you need the server side i will send it "PM" thanks ! . Edited January 30, 2013 by Guest Link to comment
iPrestege Posted January 30, 2013 Author Share Posted January 30, 2013 What is the problem? the gridlist is not working -_-" ? i can,t see any thing WTP ? Pic : http://store2.up-00.com/Nov12/h6H19991.png @ SolidSnake if you need the server side i will send it "PM" ^^ . Link to comment
Castillo Posted January 30, 2013 Share Posted January 30, 2013 Do you get errors on the debugscript? Link to comment
iPrestege Posted January 30, 2013 Author Share Posted January 30, 2013 Do you get errors on the debugscript? I forgot that I transfer file format that works, but there is an error I can not see the player name What is the problem?Just i can see the drift data ! if you need the server side i will send it "Pm" . http://store2.up-00.com/Nov12/81N20750.png Link to comment
Castillo Posted January 30, 2013 Share Posted January 30, 2013 Yes, PM me the server side, problem is there. Link to comment
iPrestege Posted January 30, 2013 Author Share Posted January 30, 2013 Yes, PM me the server side, problem is there. Check the message i've sent to you . Update : Problem Sloved ^ Thanks By SolidSnake! . 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