SA-MP Forums Archive
[Question]CallRemoteFunction - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Question]CallRemoteFunction (/showthread.php?tid=329912)



[Question]CallRemoteFunction - [MG]Dimi - 30.03.2012

One simple question. Can forwarding empty string in CallRemoteFunction crash server/client?


Re: [Question]CallRemoteFunction - Twisted_Insane - 30.03.2012

I don't think so, at least I don't see anything about it in the wiki:

https://sampwiki.blast.hk/wiki/CallRemoteFunction

For what would you need it?


Re: [Question]CallRemoteFunction - ikey07 - 30.03.2012

you can use just CallRemoteFunction(" ","i",-1); and it should work without worry


Re: [Question]CallRemoteFunction - T0pAz - 30.03.2012

It would work perfectly.


Re: [Question]CallRemoteFunction - MP2 - 30.03.2012

Empty string as in

pawn Код:
CallRemoteFunction("blah", "s", "");
or

pawn Код:
CallRemoteFunction("", "whatever", vars);
?

Not sure why you'd want to do the second one so I guess you mean the first.


Re: [Question]CallRemoteFunction - [MG]Dimi - 30.03.2012

@MP2 Yeah like the first one.

Well I have to forward one string one script1 to script2. But something is crashing server. Is There limit of number of params in CallRemoteFunction?


AW: [Question]CallRemoteFunction - Nero_3D - 30.03.2012

Its known since ages that CallRemoteFunction and CallLocalFunction crashes the server if you pass en empty string

Check zcmd or ycmd for the most suitable solution


Re: [Question]CallRemoteFunction - [MG]Dimi - 31.03.2012

Thanks Nero_3D and Thanks all.