Gravestone Posted December 28, 2015 Share Posted December 28, 2015 (edited) I had made a staff panel. When I player changes nick, it doesn't update over there. Edited February 27, 2016 by Guest Link to comment
Army@1 Posted December 28, 2015 Share Posted December 28, 2015 you can try setting a timer using setTimer Link to comment
Gravestone Posted December 28, 2015 Author Share Posted December 28, 2015 (edited) I don't think that a timer can perform the task. Edited February 27, 2016 by Guest Link to comment
Callum Posted December 28, 2015 Share Posted December 28, 2015 A timer is useless in this case, as you can use onClientPlayerChangeNick instead. Link to comment
Noki Posted December 28, 2015 Share Posted December 28, 2015 You don't need to make 999 rows. Just loop through players and create a row for each one and set their name accordingly. You also have a syntax error on line 28. Remove the two periods before getPlayerName. Link to comment
Gravestone Posted December 29, 2015 Author Share Posted December 29, 2015 A timer is useless in this case, as you can use onClientPlayerChangeNick instead. Do I need to provide the username of a staff member in the script? Link to comment
Gravestone Posted December 30, 2015 Author Share Posted December 30, 2015 Anyone help??? Link to comment
Revolt Posted December 30, 2015 Share Posted December 30, 2015 function updatePlayerList(oldNick, newNick) for i = 0, (guiGridListGetRowCount(GUIEditor.gridlist[1]) - 1) do if (guiGridListGetItemText(GUIEditor.gridlist[1], i, 1) == oldNick) then guiGridListSetItemText(GUIEditor.gridlist[1], i, 1, newNick, false, false) end end end addEventHandler("onClientPlayerChangeNick", root, updatePlayerList) 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