if(PlayerInfo[playerid][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0)
{
format(string, sizeof(string), "*** %s from your faction has logged in.", GetPlayerNameEx(playerid));
SendClientMessageEx(playerid, COLOR_JUNIORADMIN, string);
}
if(PlayerInfo[playerid][pGang] == PlayerInfo[playerid][pGang] && PlayerInfo[i][pGang] != 255)
{
format(string, sizeof(string), "*** %s from your gang has logged in.", GetPlayerNameEx(playerid));
SendClientMessageEx(playerid, COLOR_JUNIORADMIN, string);
}
if(PlayerInfo[playerid][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0)
{
|
Код:
if(PlayerInfo[playerid][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0)
{
|
if(PlayerInfo[playerid][pFaction] == PlayerInfo[playerid][pFaction]
if(PlayerInfo[playerid][pFaction] == //Here the appropriate number of faction)
|
You are not in the faction, but the others are? yes I am!!!. Even without being in any faction you get the message of faction joining. That's your problem. It is because this sentence
Код:
if(PlayerInfo[playerid][pFaction] == PlayerInfo[playerid][pFaction] Код:
if(PlayerInfo[playerid][pFaction] == //Here the appropriate number of faction) |
public OnPlayerConnect(playerid)
{
new string[128];
if(PlayerInfo[playerid][pFaction] != 0)
{
format(string, sizeof(string), "*** %s from your faction has logged in.", GetPlayerNameEx(playerid));
for(new i;i<MAX_PLAYER;i++)
{
if(i == playerid) continue;
if(PlayerInfo[playerid][pFaction] == PlayerInfo[i][pFaction])
{
SendClientMessage(i,-1,string);
}
}
}
return 1;
}
|
PlayerInfo[playerid][pGang] == PlayerInfo[playerid][pGang]
i realy cant understand this part ? why u are using this ? they are always same like using 1=1 |
|
PHP код:
|