CallRemoteFunction
#4

Quote:
Originally Posted by bennyisme
View Post
I edit the Servercfg and added the filterscript then after it loaded the textdraw it just closed in a second.
the number of arguments does not match definition.

reference:
pawn Code:
public Credit(playerid,const string[])
your usage:
pawn Code:
CallRemoteFunction("Credit", "iisi", playerid, -1, "Credits Go To XXX", 4000);
which means:
pawn Code:
Credit( playerid, -1, "Credits Go To XXX", 4000 );
you passed an integer to a string argument, the server is likely to crash in a time.
so here is my suggestion:
pawn Code:
new str[32];
format( str, sizeof(str), "Credits Go To %d", 4000 ); //4000 or anything you want to be separated by if ()
CallRemoteFunction( "Credit", "is", playerid, str ); //passes an integer, and then a string. it matches your definition.
in Addition, CallRemoteFunction() calls the function that doesn't exist in your script whereas CallLocalFunction() only finds the function in your script { like SetTimerEx() }
Reply


Messages In This Thread
CallRemoteFunction - by bennyisme - 24.08.2010, 00:52
Re: CallRemoteFunction - by willsuckformoney - 24.08.2010, 01:19
Re: CallRemoteFunction - by bennyisme - 24.08.2010, 01:28
Re: CallRemoteFunction - by dax123 - 24.08.2010, 03:35
Re: CallRemoteFunction - by bennyisme - 30.08.2010, 05:28

Forum Jump:


Users browsing this thread: 1 Guest(s)