[BUG]CallRemoteFunction ends up the server
#1

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:
Код:
#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;
}
The script to call the remote function:
Код:
#define FILTERSCRIPT

#include <a_samp>

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	CallRemoteFunction("test","ds",0,"");
	return 1;
}
I don't know if it's my mistake or a bug.
Please help.
Reply


Messages In This Thread
[SOLVED]CallRemoteFunction ends up the server - by leong124 - 20.12.2010, 04:59
Re: [BUG]CallRemoteFunction ends up the server - by mick88 - 20.12.2010, 05:55
Re: [BUG]CallRemoteFunction ends up the server - by leong124 - 20.12.2010, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)