Same faction as me

How can i do the check as if the other player is in the same faction as me?
Right now i have this thing, but i doesnt work.

pawn Код:
if(PlayerInfo[id][pFraks] == PlayerInfo[playerid][pFraks]) return SendClientMessage(playerid, -1, "See mдngija ei ole sinu fraktsioonist");

Did you define ID? It looks like it would work.

pawn Код:
new id,string[186];
    if(sscanf(params,"ui",id)) return SendClientMessage(playerid,0x00FF00FF,"Kasutus: /vallanda <mдngijaid>");
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,0x00FF00FF,"Selline mдngija puudub.");
    if(PlayerInfo[playerid][pLiider] > 1) return SendClientMessage(playerid, -1, "Sa ei ole liider");
    if(PlayerInfo[playerid][pLiider] == PlayerInfo[id][pFraks]) return SendClientMessage(playerid, -1, "See kasutaja ei ole sinu fraktsioonist");
This ise the whole code, what should i change?

Forum Jump:

Users browsing this thread: 1 Guest(s)