Lenguage error when compiling - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lenguage error when compiling (
/showthread.php?tid=660872)
Lenguage error when compiling -
Right - 16.11.2018
hello, I have a problem when compiling; As you can see, my language is not English, I speak Spanish, so when I use accents, such as "ъ", my program is frozen.
I program in a modular way, use define in a different file than the functions, then, when using a define in a file, for example:
Код:
#define server_name "example with ъ"
and when using format in another file which uses the previous define, for example:
Код:
format (hostname, sizeof hostname, "hostname% s", server_name);
SendRconCommand (hostname);
the program is frozen, but when you remove the accents or signs like "Ў", which are not in the English language, everything works fine.
however, when configuring the program language in Spanish, and placing the define and the function in the same file, there is no problem. that is why I came to the conclusion that it is a problem of modular programming.
(before answer this, I have both files configured in Spanish, I do not know why this error is due)
Re: Lenguage error when compiling -
FedeA - 16.11.2018
There isn`t a fix for this. Also spanish, and using accents or с crashes the compiler.
More info of this
here