Aboodealtikrity Posted October 1, 2016 Posted October 1, 2016 (edited) Hello Guys look to this ? ~~server~~ function getinfo() local result = mysql_query(handler, "SELECT * FROM account WHERE mtaserial='"..getPlayerSerial(source).."'") numRows = mysql_num_rows ( result ) if numRows == 1 then if (result) then while true do local data = mysql_fetch_assoc(result) if (not data) then break end name= tostring(data["accountname"]) triggerClientEvent(source, "selectt", getRootElement(), name) end mysql_free_result(result) else end end end ~~client~~ function show (name) if ( ( source == playerstable ) ) then if ( guiGridListGetSelectedItem( playerstable ) ~= -1 ) then guiSetText ( accountnamelabel, "AccountName : "..name.."" ) end end end addEvent("selectt",true) addEventHandler("selectt",getRootElement(),show) The problem is When im pressing on Playername instead of accountname its showing Word "left" this Screenshot Can someone Solve this ?? Edited October 1, 2016 by Aboodealtikrity I Would like To learn the Scripting But? no one Helping in this world
koragg Posted October 1, 2016 Posted October 1, 2016 No need to create the same topic over and over again. If somebody knows a solution, they'll try to help you. 2 I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux I also love cars PS I'm friendly
Aboodealtikrity Posted October 2, 2016 Author Posted October 2, 2016 6 hours ago, koragg said: No need to create the same topic over and over again. If somebody knows a solution, they'll try to help you. Ok im sorry Mr but the problem is small and should i wait for a weeks this forum for support i think .. But no problem this is second topic in english section and i asked in my main languages maybe no one understood me in english section i said i know its my mistake but not a big problem I Would like To learn the Scripting But? no one Helping in this world
Dealman Posted October 2, 2016 Posted October 2, 2016 You have to keep in mind providing help on these forums is something we do on our spare time - for free. You make the thread and patiently wait like everyone else, you're not entitled to us helping you. Either way, the problem is with name= tostring(data["accountname"]) as it is returning "left". Since we can't see how you're populating it, we can't really help you. Also, the MySQL module is obsolete. MTA now has native support for MySQL, you might want to use those functions instead. 1 If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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