View Single Post
Old 26/05/2020, 10:22 AM   #4
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,863
Reputation: 1693
Default Re: can i do this? (||)

Nope.
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;
}

EDIT: Can't use switches either; they require constant values.

I think the best solution for you is to use macro's.
__________________
When the opportunity presents itself to flip-a da table, uh, you flip-a da table.

Discord: Kwarde#8009
Kwarde is offline   Reply With Quote