Stranger Posted July 19, 2014 Share Posted July 19, 2014 (edited) hi, i have a little problem, i have make it a grid list and make it save the text on it so, it's work fine but i want to make it save the player name too, but no it's only save the text but the name shows like this 'userdata: 0x1119b' i don't know what is the problem. Server side: -- export function function addLog (plrName, text) setSQL_Data (plrName, text) for k,v in ipairs (getElementsByType ("player")) do triggerClientEvent (v, "addServerLog", v, plrName, text) end end Client side: addEvent ( "addTheLog", true ) addEventHandler ( "addTheLog", root,function ( onClientSqlList ) guiGridListClear ( grid ) for _, v in ipairs ( onClientSqlList ) do row = guiGridListAddRow ( grid ) guiGridListSetItemText (grid, row, 1, "" .. tostring(v.plr) .. " " .. tostring ( v.log ), false, false ) guiGridListSetItemColor (grid, row, 1, 0, 255, 0) end end ) so help please. Edited July 19, 2014 by Guest Link to comment
Et-win Posted July 19, 2014 Share Posted July 19, 2014 You are receiving the players their data, so you have to add codes like getPlayerName. (For the ones who wanted to know the solution since he solved it) Link to comment
Stranger Posted July 19, 2014 Author Share Posted July 19, 2014 yea that's what i did 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