01.01.2011, 03:13
Hey there.
I'm having a strange problem with my gamemode.
When I call a function within a function, the function where the function got called just stops at the call.
This only happens with some functions.
I just tested it with a simple test function which does nothing.
The result using that script and using the command /test was that he just left out everything after test();
Another strange thing happened: After adding the test() function, the function where the problem was before worked perfectly.
But well, since the test() function has no content in it and thus actually can't be crashing anything, I guess the problem is hidden somewhere in the gamemode.
Maybe someone had the same problem and knows why it occurs?
Thanks, Blay09.
I'm having a strange problem with my gamemode.
When I call a function within a function, the function where the function got called just stops at the call.
This only happens with some functions.
I just tested it with a simple test function which does nothing.
The result using that script and using the command /test was that he just left out everything after test();
Код:
forward test(); public test() { } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmd, "/test", true) == 0) { SendClientMessage(playerid, COLOR_RED, "calling function"); test(); SendClientMessage(playerid, COLOR_RED, "after function call"); return 1; } return 0; }
But well, since the test() function has no content in it and thus actually can't be crashing anything, I guess the problem is hidden somewhere in the gamemode.
Maybe someone had the same problem and knows why it occurs?
Thanks, Blay09.