View Single Post
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-24-2015 , 03:56   Re: Compiling AMXX Module
Reply With Quote #21

I'm encountering an issue where variables from a separate plugin seems to infecting another. In the attached screenshot, I have one forward which prints the parameters, and in another I am operating on those forwards (not changing, as they are consts). It seems that some of the values overwrite those which are printed within the other.

Under what conditions can something like this occur?

Note: When the plugin on the right is disabled, this does not occur (expected).

My forward is declared as
Code:
LoggerCreatedForward = registerForward("OnLoggerCreated", ET_IGNORE,
    FP_CELL, FP_CELL, FP_STRING, FP_STRING, FP_STRING, FP_STRING, FP_STRING, FP_STRING, FP_STRING, FP_DONE);
My forward is executed as
Code:
executeForwards(LoggerCreatedForward,
    loggerHandle, <- this is of type cell
    static_cast<cell>(verbosity),
    pluginFile2,
    nameFormat,
    msgFormat,
    dateFormat,
    timeFormat,
    pathFormat,
    traceFormat);
And my forward decl is
Code:
forward OnLoggerCreated(
    const Logger: logger,
    const Severity: verbosity,
    const name[],
    const nameFormat[],
    const msgFormat[],
    const dateFormat[],
    const timeFormat[],
    const pathFormat[],
    const traceFormat[]);
Attached Files
File Type: zip screenshot.zip (947.9 KB, 54 views)
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline