On public called
#1

Hello,

I'm building something and i want to do something like this:
On any public called -> call X_X stock.

Is it posible?
Reply
#2

I think I get what you're saying - you want your stock, let's call it X, to be called under a callback?
You would simply just do stockname(parameters); or stockname(); if there aren't any.
Reply
#3

I don't think he means that, I think he means he want call a stock in every callback that is called without having to put it in every callback.
But I don't know if that is possible.
Reply
#4

Quote:
Originally Posted by Jack.7331
Посмотреть сообщение
I think I get what you're saying - you want your stock, let's call it X, to be called under a callback?
You would simply just do stockname(parameters); or stockname(); if there aren't any.
Quote:
Originally Posted by Roel
Посмотреть сообщение
I don't think he means that, I think he means he want call a stock in every callback that is called without having to put it in every callback.
But I don't know if that is possible.
^ He got it, but how o do it?
Reply
#5

Inside what ever callback you put your method inside it.

IE

Код:
public OnPlayerSpawn(playerid)
{
      MyMethod();
      return 1;
}
Reply
#6

No, i want every callback will call stock, without adding any code into callback..
Reply
#7

Quote:
Originally Posted by Swimor
Посмотреть сообщение
No, i want every callback will call stock, without adding any code into callback..
I don't think so.. Unless you made an include or something that hooked to every callback.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)