19.01.2018, 08:40
Quote:
|
If i want to check possible matches.. more than one.
if(!strcmp(GetPlayerClanRank(playerid), "Owner","Leader", true)) is it correct ? |
And by the way this is bad coding practice, You should avoid comparing strings whenever possible for more optimization.
So, Instead of comparing the ranks names, Assign an integer to each rank (Use #define) to define the integer name.
Example:
PHP Code:
//OnTop
#define CLAN_OWNER 6
#define CLAN_LEADER 5
//Now when comparing/assigning the rank you simply use the define name
//Such as
Rank[playerid] = CLAN_OWNER; //Assigning (Could be different variable but just for clarifying)
if(Rank[playerid] == CLAN_OWNER) //Comparing
{
//Do something
}


