[Question]CallRemoteFunction
#1

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

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?
Reply
#3

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

It would work perfectly.
Reply
#5

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.
Reply
#6

@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?
Reply
#7

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
Reply
#8

Thanks Nero_3D and Thanks all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)