View Single Post
  #1  
Old 17-08-2022, 01:34
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
Lord.Freddy is on a distinguished road
Isskin INI code

Hi Cesar82, Thank you for the script you made, but i have a problem when adding the skin(cjstyles) with INI code, the skin is not added, So i made some changes:

Code:
#if !defined(StyleFile)
  #define StyleFile "NULL"
#else
  #define StyleParam ""
  #if Pos("|", StyleFile) > 0
    #define StyleParam Trim(Copy(StyleFile, Pos("|",  StyleFile + "|") + 1, Len(StyleFile)))
      #expr StyleParam = StyleParam + ".ini"
    #if (StyleParam != "") && (LowerCase(ExtractFileExt(StyleFile)) == "cjstyles")
      #expr StyleParam = StyleParam + ".ini"
    #endif
    #define StyleFile Trim(Copy(StyleFile, 0, Pos("|",  StyleFile) - 1))
  #endif
  #if (LowerCase(ExtractFileExt(StyleFile)) != "vsf") && (LowerCase(ExtractFileExt(StyleFile)) != "cjstyles") && (LowerCase(ExtractFileExt(StyleFile)) != "she")
    #define StyleFile "NULL"
  #endif
#endif
if you like, add these changes to your Script

Last edited by Lord.Freddy; 17-08-2022 at 01:40.
Reply With Quote
The Following User Says Thank You to Lord.Freddy For This Useful Post:
Cesar82 (06-09-2022)
Sponsored Links