JustAman Posted January 22, 2019 Share Posted January 22, 2019 how can I use my script like this? Link to comment Share on other sites More sharing options...
bukandewa Posted January 22, 2019 Share 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 Link to comment Share on other sites More sharing options...
Administrators Enyby Posted January 22, 2019 Administrators Share 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. Link to comment Share on other sites More sharing options...
JustAman Posted January 22, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
JustAman Posted January 22, 2019 Author Share 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? Link to comment Share on other sites More sharing options...
bukandewa Posted January 23, 2019 Share 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 Link to comment Share on other sites More sharing options...
TisNquyen Posted January 23, 2019 Share 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') Link to comment Share on other sites More sharing options...
Administrators Enyby Posted January 23, 2019 Administrators Share Posted January 23, 2019 Or just print(gg.getTargetInfo()) or gg.alert(tostring(gg.getTargetInfo())) Dirty and easy for see all data. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.