20.12.2010, 04:59
(
Последний раз редактировалось leong124; 20.12.2010 в 06:12.
Причина: SOLVED
)
SOLVED
I'm using 0.3c RC6 and I added some new functions for my server today.
I found that when CallRemoteFunction transfers strings,
the server will terminate.
Here's the test script and it crashes the server:
The script with the remote function to be called:
The script to call the remote function:
I don't know if it's my mistake or a bug.
Please help.
I'm using 0.3c RC6 and I added some new functions for my server today.
I found that when CallRemoteFunction transfers strings,
the server will terminate.
Here's the test script and it crashes the server:
The script with the remote function to be called:
Код:
#define FILTERSCRIPT #include <a_samp> new name[MAX_PLAYERS][128]; forward test(playerid,const string[]); public test(playerid,const string[]) { name[playerid] = ""; strcat(name[playerid],string); return 1; }
Код:
#define FILTERSCRIPT #include <a_samp> public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); CallRemoteFunction("test","ds",0,""); return 1; }
Please help.