28.09.2012, 05:46
Because you should be searching for stocks, not defines. I'm off to bed here in a few, so I can't provide the best of an explanation, but you can shoot me a PM and I'll get back to you in the morning.
I took the joy of having a quick snoop through the script you're editing, and wildly enough found these:
To cut to the chase, you should replicate these and adjust the ID to fit your needs. For example:
(it is safe to use these, simply edit the names to your new faction names and place this anywhere in your script)
I took the joy of having a quick snoop through the script you're editing, and wildly enough found these:
pawn Код:
stock IsAReporter(playerid)
{
if(PlayerInfo[playerid][pFac] == 4) return 1;
return 0;
}
stock IsACop(playerid)
{
if(PlayerInfo[playerid][pFac] == 1) return 1;
return 0;
}
stock IsAGov(playerid)
{
if(PlayerInfo[playerid][pFac] == 2) return 1;
return 0;
}
stock IsAHitman(playerid)
{
if(PlayerInfo[playerid][pFac] == 3) return 1;
return 0;
}
(it is safe to use these, simply edit the names to your new faction names and place this anywhere in your script)
pawn Код:
stock IsANG(playerid)
{
if(PlayerInfo[playerid][pFac] == 5) return 1;
return 0;
}
stock IsAFireFighter(playerid)
{
if(PlayerInfo[playerid][pFac] == 6) return 1;
return 0;
}
stock IsAMercenary(playerid)
{
if(PlayerInfo[playerid][pFac] == 7) return 1;
return 0;
}