Problem with compiler - 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: Problem with compiler (
/showthread.php?tid=563337)
Problem with compiler -
sw3das - 15.02.2015
Hey guys!
I have a little problem:
Код:
#define STRING_LOGS "RÄ…stai"
CreateItem( 14872, pPos[0], pPos[1], pPos[2], 0.0, 0.0, 0.0, 1, STRING_LOGS );
This crashes the compiler. But when I change it to:
Код:
#define STRING_LOGS "Rastai" // CHANGED 'Ä…' TO 'a'
CreateItem( 14872, pPos[0], pPos[1], pPos[2], 0.0, 0.0, 0.0, 1, STRING_LOGS );
it compiles just fine. Any ideas why
Re: Problem with compiler -
GGRoleplay - 15.02.2015
Most likely due to the compiler using the 'normal' alphabet, the ones they use in like English.
Re: Problem with compiler -
sw3das - 15.02.2015
Ok, I've just found that if I write the same code into my gamemode, it compiles just fine.
That function, however, is as include in .pwn file. Does this change anything ? :O
Re: Problem with compiler -
sw3das - 15.02.2015
EUREKA!
It appears the problem is that I have included <zcmd> but I haven't included <sscanf2>. After including <sscanf2> the problem disappeared.