Help with callbacks
#1

Guys, help me how to create new callback. Like this WhenPlayerEnterJail(playerid) ... How i should give 1 and ...
Reply
#2

Forward it then you need to make the callback and add functions
Reply
#3

Example;

pawn Код:
forward OnPlayerLogin(playerid)
public OnPlayerLogin(playerid)
{
     // function here
     return 1;
}
I think that's about right
Reply
#4

A callback is only a callback if it called by the server, a timer or a plugin function. Otherwise it's just a normal function and you should treat it as such.
Reply
#5

A callback is simply a public function that get's called by the server at specific moments, or timers i think.
However i found this tutorial when i ******d a bit: https://sampforum.blast.hk/showthread.php?tid=261570
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)