Color marker
#1

i have made a small thing which is if you are in a faction and another one in the same faction you see a blue marker on him,but it doesnt work...
here is the code:
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
    if(pInfo[playerid][Faction] == pInfo[forplayerid][Faction]) SetPlayerMarkerForPlayer(playerid, forplayerid, COLOR_BLUE);
    return 1;
}
and i got in the script
pawn Код:
ShowPlayerMarkers(1);
why doesnt it work?
Reply
#2

pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
    if(pInfo[playerid][Faction] == pInfo[forplayerid][Faction]) //Maybe this would work? I guess maybe i am missing bracket but don't know where.
    SetPlayerMarkerForPlayer(playerid, forplayerid, COLOR_BLUE);
    return 1;
}
Try now.
Reply
#3

Anyone?
Reply
#4

Did you try switching up the params?

(playerid, forplayerid) to (forplayerid, playerid)? It could be that. Also, try defining "pInfo[forplayerid][Faction]" to something. Like this:

pawn Код:
new forpid = pInfo[forplayerid][Faction];

if(pInfo[playerid][Faction] == forpid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)