CallRemoteFunction
#1

I can't load a function in a filterscript (loaded) from my GAMEMODE ?

Example:

in my gamemode:
pawn Code:
forward YouCalledMe(const string[],number);
public YouCalledMe(const string[],number)
{
      printf("String: %s | Number: %d",string,number);
      return true;
}
in my filterscript:
pawn Code:
public OnFilterScriptInit()
{
      CallRemoteFunction("YouCalledMe","sd","Hello, i got number ",55);
  return true;
}
Reply
#2

bump?
Reply
#3

Have you checked if the filterscript is loaded correctly?
Reply
#4

Quote:
Originally Posted by Angel φ
I can't load a function in a filterscript (loaded) from my GAMEMODE ?
if you want to call a public function that exists in a filterscript from your gamemode,
then you should place the codes the other way round.
Reply
#5

This function will not be called when you load the FS same time with your GM. If you do loadfs in RCON it will work.
Reply
#6

Yes MadeMan , you right. Thanks ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)