How to create callback that handle returns?
#8

Quote:
Originally Posted by gnoomen2
Посмотреть сообщение
Maybe this:

pawn Код:
forward ResetMoney(); // you may want to put "playerid" inside here.
public ResetMoney() // and here.
{
    // The code that you want to start - here.
}
COMMAND:resetmoney(playerid, params[])
{
    SetTimer("ResetMoney",2000,0); // Starts public ResetMoney after 2 seconds ( 2000 milliseconds) ,0 = not doing it again and again (,1 = repeat)
    return 1; // don't know if it is ResetMoney or ResetMoney(playerid) we should put in the timer.
}
NO!I know how to call function.Please READ my queston before answering.
For example again: If you don't return value on that created callback,then warning shows:
"MyCallback should return value"
I need ansfwer how to create callback like that.Where value must be returned.
Is there anyone who can UNDERSTAND my question!?
Reply


Messages In This Thread
How to create callback that handle returns? - by Plovix - 24.01.2013, 16:55
Re: How to create callback that handle returns? - by FUNExtreme - 24.01.2013, 17:06
Re: How to create callback that handle returns? - by Patrick - 24.01.2013, 17:08
Re: How to create callback that handle returns? - by Plovix - 24.01.2013, 17:11
Re: How to create callback that handle returns? - by Patrick - 24.01.2013, 17:28
Re: How to create callback that handle returns? - by Plovix - 24.01.2013, 19:27
Re: How to create callback that handle returns? - by gnoomen2 - 24.01.2013, 21:03
Re: How to create callback that handle returns? - by Plovix - 24.01.2013, 22:09
Re: How to create callback that handle returns? - by FUNExtreme - 24.01.2013, 22:30
Re: How to create callback that handle returns? - by Sime30 - 24.01.2013, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)