Callback
#1

What is the meaning and definition of callback ? Please explain it as i am in second primary. I'm newbie though ;p
Reply
#2

https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks
Reply
#3

It's rather simple.
Callbacks are some sort of functions that are called when something certain happens. For example, the callback "OnPlayerDeath" is called, when a player dies. And inside their braces, you write your script. When you have a certain script in those braces, it means you want exactly that to happen which is in those braces.
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
        SendClientMessage(playerid,-1,"You have been killed!");
        return 1;
}
when a player dies, show him the client message "You have been killed" .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)