Callback - 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: Callback (
/showthread.php?tid=514063)
Callback -
Le3aT - 19.05.2014
What is the meaning and definition of callback ? Please explain it as i am in second primary. I'm newbie though ;p
Re: Callback -
JFF - 19.05.2014
https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks
Re: Callback -
NaClchemistryK - 19.05.2014
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" .