How to call this function -
mikiii18 - 06.09.2011
Hello, can you help me??
I want to call that function:
Код:
public SetGangHouseToPlayer(playerid, ganghouseid)
And I want to call it with CallRemoteFunction..
How can I do it?? I donґt understand the way that CallRemoteFunction works..
Thanks.
Re: How to call this function -
Ammo - 06.09.2011
lol 1st of all ur english is bad and m not able to understand anything!
Re: How to call this function -
Vince - 06.09.2011
CallRemoteFunction works nearly the same way as SetTimerEx. If you're familiar with that, CallRemoteFunction (and CallLocalFunction, for that matter) shouldn't be a problem. In your case:
pawn Код:
CallRemoteFunction("SetGangHouseToPlayer", "dd", playerid, ganghouseid);
Re: How to call this function -
Infinity - 06.09.2011
Quote:
Originally Posted by TheRockstar
lol 1st of all ur english is bad and m not able to understand anything!
|
Actually, his English is miles ahead of whatever you are speaking.
Anyways, let's get busy.
You can use CallRemoteFunction in any part of any script you are currently running on your server.
The way it works is easy:
- You create a function:
Let's just follow (read: copy) the wiki.
pawn Код:
forward callMe(const string[]);
public callMe(const string[])
{
printf("callMe> %s", string);
return 1;
}
After that, you put the CallRemoteFunction-function in any part of any script. Let's say, at "OnPlayerDeath" in a random filterscript.
Here's an example of what it could look like.
pawn Код:
OnPlayerDeath(playerid, killerid);
{
CallRemoteFunction("callMe", "s", "SOMEONE GOT KILLED!");
return 1;
}
Everytime someone gets killed, it will send a string to "CallMe", saying "SOMEONE GOT KILLED!"
For more info, please resort to the
Wiki and Gamemode/Tutorial sections.
Re: How to call this function -
Ammo - 06.09.2011
infinity i dont wanna fight ! and dont kiss your *** here! as its a public area lol
Respuesta: How to call this function -
mikiii18 - 06.09.2011
I apologize for my bad English, but I'm not English. I am Portuguese.
I don't use the category of Portugal because it is overrun by Brazilians who only know how to do is spam and annoy others.
Thank you very much, Vince. I gave you 1 reputation