Update new.pwn
#9

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
OnDialogResponse you are returning 1, while callback expects return 0 in order to call same callback in FilterScripts.

These is one of the reasons why i suggested these file to be updated (Officially).
Thanks for noting, fixed.

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Lets take for sake of the argument only one callback. I dont see OnPlayerTakeDamage...how can i know that it exists at all? How can i know what parameters it has and what value it must return to work properly?

new.pwn was populated with all callbacks for a good reason, you dont need some of them? Feel free to delete them (Its way easier than to add them).

By the way here is example of OnPlayerEditAttachedObject parameters:
pawn Код:
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
    //These callback does not handle returns
}
That is some callback...let me guess...you know how to write that heading function along with all parameters and if you dont you will visit wiki... Oh wait! What if someone doesn't even know that such callback exists?! Oh right...its their fault they didnt read whole wiki...
According to this post, you could create fake natives of callback names to include their parameter and so they'll highlight them.
Reply


Messages In This Thread
Update new.pwn - by DRIFT_HUNTER - 27.01.2015, 00:48
Re: Update new.pwn - by ikey07 - 27.01.2015, 00:59
Re: Update new.pwn - by Abagail - 27.01.2015, 02:00
Re: Update new.pwn - by DRIFT_HUNTER - 27.01.2015, 02:22
Re: Update new.pwn - by BeckzyBoi - 27.01.2015, 02:38
Re: Update new.pwn - by Patrik356b - 27.01.2015, 02:41
Re: Update new.pwn - by Lordzy - 27.01.2015, 03:57
Re: Update new.pwn - by DRIFT_HUNTER - 27.01.2015, 04:31
Re: Update new.pwn - by Lordzy - 27.01.2015, 04:34

Forum Jump:


Users browsing this thread: 2 Guest(s)