Weird errors generated by stocking with some capital letters?
#1

pawn Код:
stock Test(a) return a;    // No error
stock Test(A) return A;    // No error
stock Test(b) return b;    // No error
stock Test(B) return b;    // Error: 010: Invalid function or declaration.
stock Test(B) return B;    // Crashes the compiler.
Same thing happens with letters: B, G, O, R, W, Y.
So, is it happening only to me, or anyting related to inner design of PAWN?
Reply
#2

Variables in PAWN are case sensitive.
Reply
#3

Try putting the return in proper braces. Id guess the abnormaility is rather caused by this, as a result of a previous error.
Reply
#4

case sensitive i agree with emmet
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)