manve1 Posted September 16, 2012 Posted September 16, 2012 Im trying to make moderator panel and all it does is F*ck up. The problem is, i used wiki to get on my grid list player names, and the gridList isn't showing so ain't the names function playerList() local Grid = guiCreateGridList( 0.05, 0.1, 0.25, 0.8, true, Wnd ) local Column = guiGridListAddColumn( Grid, "Player", 0.85 ) if ( Column ) then for id, player in ipairs(getElementsByType("player")) do local Row = guiGridListAddRow ( Grid ) guiGridListSetItemText ( Grid, Row, Column, getPlayerName ( player ), false, false ) end end end Looking for tutorials or information? check out: www.simpleask.co.uk
manve1 Posted September 16, 2012 Author Posted September 16, 2012 i got the Wnd as window .. then yes it is .. Looking for tutorials or information? check out: www.simpleask.co.uk
TAPL Posted September 16, 2012 Posted September 16, 2012 No event? then how function playerList is executed?
manve1 Posted September 16, 2012 Author Posted September 16, 2012 https://wiki.multitheftauto.com/wiki/GuiCreateGridList example one doesn't have event, so that's why i don't Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted September 16, 2012 Posted September 16, 2012 How do you expect it to add the players if you never execute the function? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manve1 Posted September 16, 2012 Author Posted September 16, 2012 fixed I forgot to change "onResourceStart" to "onClientResourceStart", that was my mistake, sorry. Looking for tutorials or information? check out: www.simpleask.co.uk
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