Hello, i made a translate system for my skript, and i want to send a function in a message :
the function :
I have this (its work !)
This line work, and return the good translate for name of gui !
But when i want some variables in the text (so add %%) it doesnt work :
exemple :
the function :
code_language.skript:
function Translate(p: player, msg-fr: text, msg-en: text) :: text:
return "%colored {_msg-%{language.%{_p}%}%}%"
I have this (its work !)
code_language.skript:
open virtual chest inventory with size 4 named "%Translate({_p}, ""{@gui_prefix} &7» &fBuches pleines"", ""{@gui_prefix} &7» &fLogs"")%" to {_p}
But when i want some variables in the text (so add %%) it doesnt work :
exemple :
code_language.skript:
set slot 27 of current inventory of {_p} to sign named "&6&lINFORMATIONS" with lore "%Translate({_p}, ""||&7Couche selectionée &8&l» &f&o%{btl.snow-layer.status.%{_p}%}%"", ""&7Selected Layer &8&l» &f&o%{btl.snow-layer.status.%{_p}%}%"")%"