[Help]CallLocal/RemoteFunction
#7

The only solution i can think of now, is to do something like that:

pawn Код:
#include <a_samp>
main(){}
public OnGameModeInit()
{
  print("test1");

  new bla[] = ""; // = "blabla";
 
  if (bla[0])
    CallRemoteFunction("test", "s", bla);
  else
    CallRemoteFunction("test", "s", "<NULL>");

  print ("test2");
  return true;
}

forward test(str[]);
public test(str[])
{
  if (!strcmp(str, "<NULL>"))
    print("null string");
  else
    print("not null string");
}
But i think you already knew that.
Reply


Messages In This Thread
[Help]CallLocal/RemoteFunction - by yezizhu - 07.06.2009, 11:23
Re: [Help]CallLocal/RemoteFunction - by yom - 07.06.2009, 12:04
Re: [Help]CallLocal/RemoteFunction - by [CK]Steel - 07.06.2009, 12:09
Re: [Help]CallLocal/RemoteFunction - by yezizhu - 07.06.2009, 12:24
Re: [Help]CallLocal/RemoteFunction - by lavamike - 07.06.2009, 12:43
Re: [Help]CallLocal/RemoteFunction - by yezizhu - 07.06.2009, 13:01
Re: [Help]CallLocal/RemoteFunction - by yom - 07.06.2009, 13:27
Re: [Help]CallLocal/RemoteFunction - by yezizhu - 07.06.2009, 13:35
Re: [Help]CallLocal/RemoteFunction - by yezizhu - 07.06.2009, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)