Problem with compiler
#1

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
Reply
#2

Most likely due to the compiler using the 'normal' alphabet, the ones they use in like English.
Reply
#3

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
Reply
#4

EUREKA!
It appears the problem is that I have included <zcmd> but I haven't included <sscanf2>. After including <sscanf2> the problem disappeared.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)