Open Y-Less opened 2 years ago
MCVE:
#pragma rational Float
/**
* <remarks>This function doesn't return a pickup ID that you can use in, for example, <a href="#OnPlayerPickUpPickup">OnPlayerPickUpPickup</a>. Use <a href="#CreatePickup">CreatePickup</a> if you'd like to assign IDs.</remarks>
*/
native AddStaticPickup(model, type, Float:x, Float:y, Float:z, virtualWorld = 0);
main()
{
AddStaticPickup(0, 0, 0.0, 0.0, 0.0, 0);
}
Fix:
#pragma rational Float
/**
* <remarks>This function doesn't return a pickup ID that you can use in, for example,
* <a href="#OnPlayerPickUpPickup">OnPlayerPickUpPickup</a>. Use
* <a href="#CreatePickup">CreatePickup</a> if you'd like to assign IDs.</remarks>
*/
native AddStaticPickup(model, type, Float:x, Float:y, Float:z, virtualWorld = 0);
main()
{
AddStaticPickup(0, 0, 0.0, 0.0, 0.0, 0);
}
So clearly the problem is line lengths, though the new compiler had them increased to 512.
Issue description:
I've not yet worked out exactly why this happens. I've briefly looked at the compiler source but haven't managed to analyse it enough yet. I've done loads of work with pawndoc comments and this is the first time I've seen this issue. For some reason this:
Gives the following XML output:
It's not very clear from all that, but the message gets cut off:
Becomes:
86 characters are missing. Why 86? I don't know.
Workspace Information: