SA-MP Forums Archive
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: CallRemoteFunction (/showthread.php?tid=604387)



CallRemoteFunction - Harty - 04.04.2016

How to callback the function OnPlayerKeyStateChange for 'playerid' ?

Thanks.


Re: CallRemoteFunction error 017: undefined symbol "newkeys" - Harty - 04.04.2016

error 017: undefined symbol "newkeys"

Код:
forward ewsnow(playerid);
public ewsnow(playerid){
CallRemoteFunction("OnPlayerKeyStateChange", "ifff", playerid, newkeys, oldkeys);
return 1;
}



Re: CallRemoteFunction - introzen - 04.04.2016

The keys pressed is introduced to the server by the client, hence this would mean that you set the active key for the client which I believe is impossible.

I'm not sure though.