Closed
Description
Sample code:
#include <a_samp>
new foo = 1;
public OnFilterScriptInit() {
test(foo);
}
test(var) {
printf("%i", var); // 37
}
If I print something before calling test function, character code is passed instead:
#include <a_samp>
new foo = 1;
public OnFilterScriptInit() {
printf("A");
test(foo);
}
test(var) {
printf("%i", var); // 65
}
and finally if I modify value of that global variable, everything works just fine:
#include <a_samp>
new foo = 1;
public OnFilterScriptInit() {
foo++;
test(foo);
}
test(var) {
printf("%i", var); // 2
}
Metadata
Metadata
Assignees
Labels
No labels