can i do this? (||)
#4

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.
Reply


Messages In This Thread
can i do this? (||) - by Filbert - 26.05.2020, 09:30
Re: can i do this? (||) - by SharpenBlade - 26.05.2020, 09:48
Re: can i do this? (||) - by Filbert - 26.05.2020, 10:11
Re: can i do this? (||) - by Kwarde - 26.05.2020, 10:22
Re: can i do this? (||) - by Filbert - 26.05.2020, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)