Stranger Posted July 19, 2014 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
Anubhav Posted July 19, 2014 Posted July 19, 2014 /debugscript 3 . See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Et-win Posted July 19, 2014 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) ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
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