[Tool/Web/Other] [WIP]SA-MP ALS Hooking Generator
#11

Quote:
Originally Posted by Jonny5
View Post
1.) did not even think about this, Great idea and will be added!
Do you think having having it load the custom Callbacks from files would be better?
I could load for each Lib, and have a file for new SAMP callbacks, that could be added to
until I make official update. This way I could write simple list file for each to support YSI, Streamer ect...
I think I may go that route.
Yeah, that might be a better route for multiple ones.

Quote:
Originally Posted by Jonny5
View Post
2.) this does no checks, it just creates a skeleton ALS function for you,
I assume the scripter will handle any checks, but If its something I can add
I defiantly will. If you can post an example of what you mean that would be great.
OnPlayerDialogResponse is the main culprit for this:

pawn Code:
return CallLocalFunction("Prefix_OnDialogResponse", "iiiis",playerid, dialogid, response, listitem, inputtext);
If they didn't type anything in (say on a message box), this will actually crash. Instead you need:

pawn Code:
return CallLocalFunction("Prefix_OnDialogResponse", "iiiis",playerid, dialogid, response, listitem, inputtext[0] ? inputtext : "\1\0");
Where "\1\0" is the standard "almost" empty string used when an empty string can't, but should, be used. I'm not sure if it's possible to call the other string callbacks with an empty string, but I always do the checks incase some hack tool manages to send an empty chat message or something similar.

Quote:
Originally Posted by Jonny5
View Post
3.) I thought doing it this way would return the next callbacks return, I will go back and re-read!
EDIT: I see the only advantage is OnGameModeInit() I will fix this.

4.)Yes you are correct! I will make that change,

Nice ideas!! and thanks for the tips, I will implement them ASAP.
Cool, no problem.
Reply


Messages In This Thread
[WIP]SA-MP ALS Hooking Generator 0.3a - by Jonny5 - 06.05.2012, 04:58
Re: [WIP]SA-MP ALS Hooking Generator - by Crazymax - 06.05.2012, 07:30
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 06.05.2012, 14:12
Re: [WIP]SA-MP ALS Hooking Generator - by Crazymax - 07.05.2012, 01:57
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 07.05.2012, 12:11
Re: [WIP]SA-MP ALS Hooking Generator - by Andrejs - 14.05.2012, 19:31
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 15.05.2012, 13:01
Re: [WIP]SA-MP ALS Hooking Generator - by Niko_boy - 15.05.2012, 14:04
AW: [WIP]SA-MP ALS Hooking Generator - by Johann95 - 15.05.2012, 14:04
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 15.05.2012, 20:05
Re: [WIP]SA-MP ALS Hooking Generator - by Y_Less - 15.05.2012, 20:44
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 15.05.2012, 22:28
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 16.05.2012, 17:21
Re: [WIP]SA-MP ALS Hooking Generator - by Y_Less - 16.05.2012, 20:47
Re: [WIP]SA-MP ALS Hooking Generator - by Jonny5 - 16.05.2012, 22:36
Respuesta: [WIP]SA-MP ALS Hooking Generator - by Gryphus One - 03.07.2012, 02:54
Respuesta: [WIP]SA-MP ALS Hooking Generator - by Gryphus One - 03.07.2012, 03:51

Forum Jump:


Users browsing this thread: 1 Guest(s)