CallRemoteFunction
#5

Quote:
Originally Posted by AIped
Посмотреть сообщение
you have this;
pawn Код:
CallRemoteFunction("AccendereAuto", "i", 69);
try this;
pawn Код:
CallRemoteFunction("AccendereAuto", "s", "accenderauto called");
this would only fuck up things as his "function" expects an integer, no string


Quote:
Originally Posted by alanhutch
Посмотреть сообщение
Hi all..
I have a Vehicle System FS and a Gamemode...
I have created a function in the Gamemode, and I have decided to use it in the FS.
Why this CallRemoteFunction don't work?
pawn Код:
CallRemoteFunction("AccendereAuto", "i", 69);
The function:
pawn Код:
forward AccendereAuto(playerid);
public AccendereAuto(playerid)
{
gNonPuoi[playerid] = 1;
return 1;
}
If I call that function in the GM works.
Thanks for the help
youset it up correctly, the only thing is that youre passing '69' as playerid to the function, so you couldn't "see" any changes... i belife you jsut copy&pasted that from the wiki and tought that '69' is something which has to be there ^^

do it like this:
pawn Код:
CallRemoteFunction("AccendereAuto", "i", playerid);
and you'll notice it worked
(it worked before too but you just didn't notice cuz 69 wasn't your playerid)
Reply


Messages In This Thread
CallRemoteFunction - by alanhutch - 13.08.2014, 10:36
Re: CallRemoteFunction - by Blademaster680 - 13.08.2014, 11:02
Re: CallRemoteFunction - by GGW - 13.08.2014, 11:02
Re: CallRemoteFunction - by AIped - 13.08.2014, 11:09
Re: CallRemoteFunction - by CutX - 13.08.2014, 11:11
Re: CallRemoteFunction - by AIped - 13.08.2014, 11:28

Forum Jump:


Users browsing this thread: 2 Guest(s)