Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for align_(pri|alt) OPcodes #44

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ShadowsAdi
Copy link

Test plugin:

/* Sublime AMXX Editor v4.2 */

#include <amxmodx>
#include <amxmisc>

#pragma compress 1

#define PLUGIN  "Plugin"
#define VERSION "1.0"
#define AUTHOR  "Shadows Adi"

public plugin_init()
{
	#emit ALIGN.pri 28876 

	register_plugin(PLUGIN, VERSION, AUTHOR)
	new iDate
	date(iDate)
}

Output before:

/* ERROR PREPROCESSING! Unrecognized opcode: align_pri */
 function "plugin_init" (number 0)
new MaxClients;
new String:NULL_STRING[4];
new Float:NULL_VECTOR[3];

/* ERROR! Unrecognized opcode: align_pri */
 function "plugin_init" (number 0)

Output after:

 new MaxClients;
new String:NULL_STRING[4];
new Float:NULL_VECTOR[3];
public plugin_init()
{
	register_plugin("Plugin", "1.0", "Shadows Adi");
	new iDate;
	date(iDate, 0, 0);
	return 0;
}

@deprale
Copy link

deprale commented Mar 15, 2024

Based!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants