18.08.2011, 11:04
Hi i don't get why i get this warning
it is global:
there is also and other lines with 'IsNPCInRace' @ false or true but only this line get warning. Why?
pawn Код:
C:\Users\Marius\Documents\samp\lfree roam\gamemodes\freeroam.pwn(5171) : warning 204: symbol is assigned a value that is never used: "IsNPCInRace"
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
}
}
}
}
pawn Код:
bool:IsNPCInRace=false;