bukandewa Posted January 22, 2019 Posted January 22, 2019 about = gg.getTargetInfo() gg.alert(os.date('About Info :'..'\n\nPackage Name : '..about.processName..'\nOBB Version : '..about.versionCode..'\nGame Version : '..about.versionName..'\nGame uid : '..about.uid..'\nGameGuardian Version : '..gg.VERSION..'\n\n%A, %d %B %X' You can read more detail in https://gameguardian.net/help/classgg.html#a312c7d90473026e38c67ffd24fd970d7
Administrators Enyby Posted January 22, 2019 Administrators Posted January 22, 2019 No good idea pass random string to os.date. If in app name present '%' it can produce odd results or error. Need use os.date for string with pattern only, and concatenate with other text.
JustAman Posted January 22, 2019 Author Posted January 22, 2019 2 hours ago, bukandewa said: about = gg.getTargetInfo() gg.alert(os.date('About Info :'..'\n\nPackage Name : '..about.processName..'\nOBB Version : '..about.versionCode..'\nGame Version : '..about.versionName..'\nGame uid : '..about.uid..'\nGameGuardian Version : '..gg.VERSION..'\n\n%A, %d %B %X' You can read more detail in https://gameguardian.net/help/classgg.html#a312c7d90473026e38c67ffd24fd970d7 error
JustAman Posted January 22, 2019 Author Posted January 22, 2019 2 hours ago, bukandewa said: about = gg.getTargetInfo() gg.alert(os.date('About Info :'..'\n\nPackage Name : '..about.processName..'\nOBB Version : '..about.versionCode..'\nGame Version : '..about.versionName..'\nGame uid : '..about.uid..'\nGameGuardian Version : '..gg.VERSION..'\n\n%A, %d %B %X' You can read more detail in https://gameguardian.net/help/classgg.html#a312c7d90473026e38c67ffd24fd970d7 work :3 thankyou... how to target one obb, so that our script runs with one obb?
bukandewa Posted January 23, 2019 Posted January 23, 2019 6 hours ago, JustAman said: work :3 thankyou... how to target one obb, so that our script runs with one obb? Check your obb versions number, for example obb versions of pubg mobile. You can use code below. if about.versionCode ~= '10121' then gg.alert(' Please open the game first') os.exit() end
TisNquyen Posted January 23, 2019 Posted January 23, 2019 This will be more detailed about = gg.getTargetInfo() local x = "" for i, v in pairs(about) do if type(v) ~= 'table' then x = x..'\t'..i..' : '..tostring(v)..'\n' end end gg.alert(x, nil, os.date('%A, %d %B %X'), 'About Info')
Administrators Enyby Posted January 23, 2019 Administrators Posted January 23, 2019 Or just print(gg.getTargetInfo()) or gg.alert(tostring(gg.getTargetInfo())) Dirty and easy for see all data.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.