pawn Код:
public NPCPOS()
{
for(new p=0; p<MAX_PLAYERS; p++)
{
new names[26];
GetPlayerName(p,names,sizeof(names));
if(!strcmp(names,"NPC_Racer"))
{
if(PlayerToPoint(6,p,-1735.4344,-580.2195,16.0630) ||
PlayerToPoint(6,p,-1747.3632,312.3948,6.7599) ||
PlayerToPoint(6,p,-2809.6226,294.4769,6.7585) ||
PlayerToPoint(6,p,-2720.9036,708.1148,40.8252) ||
PlayerToPoint(6,p,-2673.7502,1374.8865,55.1533))
{
IsNPCWinner=true;
Kick(p);
ConnectNPC("NPC_Racer","steady");
KillTimer(Timer_RacePos);
IsNPCInRace=false; // this line
}
}
}
}
there is also and other lines with 'IsNPCInRace' @ false or true but only this line get warning. Why?
Somewhere .... IsNPCInRace = false;
Maybe under OnGameModeInit. Rest, you leave the same.