How to call this function
#1

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

lol 1st of all ur english is bad and m not able to understand anything!
Reply
#3

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);
Reply
#4

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

infinity i dont wanna fight ! and dont kiss your *** here! as its a public area lol
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)