26.05.2020, 10:22
Nope.
Tip: Create a filterscript and create a similar code to test it if you wanna know something like this. Example:
EDIT: Can't use switches either; they require constant values.
I think the best solution for you is to use macro's.
Tip: Create a filterscript and create a similar code to test it if you wanna know something like this. Example:
pawn Code:
#include <a_samp>
enum
{
Role1 = 1,
Role2,
Role3,
Role4,
Role5
};
public OnFilterScriptInit()
{
new role = Role4;
if (role == (Role1 || Role4))
print("Role is Role1 or Role4!");
return 1;
}
I think the best solution for you is to use macro's.