YSI Documentation - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YSI Documentation (
/showthread.php?tid=636706)
YSI Documentation -
nG Inverse - 02.07.2017
Hello,
Is there any near-complete documentation of the most current YSI? It seems everything on this forum is outdaded and all the GitHub profiles don't have any punlished with the source.
Thanks!
Re: YSI Documentation -
Eoussama - 02.07.2017
Maybe you can find this useful
http://ysi.wikia.com/wiki/YSI_Wiki
Re: YSI Documentation -
nG Inverse - 03.07.2017
Quote:
Originally Posted by Eoussama
|
Thanks for the reply. I found that, and despite having some content, it's missing a lot. I was hoping there was something more complete (and up to date).
Re: YSI Documentation -
Meller - 03.07.2017
I believe if you go to each file and look at the comments you might find something there?
Re: YSI Documentation -
nG Inverse - 03.07.2017
Thanks. Seems I left out a lot of information in my first post.
The documentation in the code files is out-of-date, posts on these forums are out-of-date or deleted, and documentation I've found connected with the source (from GitHub) is incomplete. I'm looking for YSI 4.0's updated documentation. Any ideas?
Re: YSI Documentation -
Dayrion - 03.07.2017
What part of YSI 4.0's documentation are you looking for?
Re: YSI Documentation -
Kaperstone - 03.07.2017
Look at your own files.
****** left every function he made fairly documented.
It is relevant to each copy and every version he released.
Re: YSI Documentation -
Meller - 03.07.2017
Quote:
Originally Posted by ******
|
You're no dick. :((((((
Re: YSI Documentation -
nG Inverse - 03.07.2017
Thanks for the responses. I'll take a look through those links and try and piece together what I need.
This is a current issue I've run into. It seems y_hooks doesn't support hooked functions of different states. For example:
pawn Код:
hook OnGameModeInit()
{
g_ActiveTeams[ATTACK] = Group_Create("Attack");
g_ActiveTeams[DEFEND] = Group_Create("Defend");
return 1;
}
hook OnGameModeInit() <currentMode:mode1>
{
g_ActiveClasses[...] = Class_AddWithGroupSet(Group: DEFEND, 287, ...);
// ...
return 1;
}
hook OnGameModeInit() <currentMode:mode2>
{
// stop compiler warning
return 1;
}
Throws the following error:
Код:
classes.pwn(53) : error 021: symbol already defined: "@yH_OnGameModeInit@006"
classes.pwn(71) : error 021: symbol already defined: "@yH_OnGameModeInit@006"
Any ideas on getting around this without editing y_hooks itself? I would guess this could be avoided by putting the definitions in different files. Though that would be my last resort due to the script layout.
Re: YSI Documentation -
Meller - 03.07.2017
y_hooks wasn't created to work within 1 file I don't believe? Might be wrong but..