Hola, he creado una gridlist de logros o algo por el estilo, la cosa es que hice que cada vez que alguien tenga su nombre ahi, le aparezca en verde.. y funciona..
La cosa es que cuando tiene un nombre con carácteres mágicos: ()%[] por ejemplo, [Clan]NombreDelJugador
No encuentra el nombre, es decir, no se pone en verde.
¿Hay alguna forma de solucionarlo?, me leí toda la seccion de strings en lua.org y no encuentro nada, o no sé si no entiendo pero no se me ocurre nada para solucionarlo D: ayuda pls
--------------------------------------------------------------------------------------
local rowtop = guiGridListAddRow(logrosgrid)
guiGridListSetItemText(logrosgrid, rowtop, 1, "Jugadores Online con Logros", true, false)
--
for i, v in ipairs(logrostab) do
local row = guiGridListAddRow(logrosgrid)
guiGridListSetItemText(logrosgrid, row, 1, v[1], false, false)
guiGridListSetItemText(logrosgrid, row, 2, v[2], false, false)
guiGridListSetItemText(logrosgrid, row, 3, tostring(convert(v[3])), false, true)
-- Si te encuentras
local tunombre = getPlayerName(localPlayer)
if string.find (v[2], tunombre) then
guiGridListSetItemColor ( logrosgrid, row, 1, 0, 255, 0 )
guiGridListSetItemColor ( logrosgrid, row, 2, 0, 255, 0 )
guiGridListSetItemColor ( logrosgrid, row, 3, 0, 255, 0 )
end
end
--