undefined symbol and symbol is assigned a value that is never used
#1

Hello and thanks for reading my help topic! i need help with this:

pawn Code:
forward FinishGame();
public FinishGame()
{
   if(teamTickets[0] > teamTickets[1])
   {
       winnerState = 1;
   }
   else if(teamTickets[0] < teamTickets[1])
   {
      winnerState = 2;
   }
   else winnerState = 0;
   new winning_Team = (( (winningState == 2) &&(winningState != 0)) ? 3 : 2);
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
       if(IsPlayerConnected(i))
       {
           if(winnerState) {
           //Show a textdraw that winning_Team has won!
           }
           else {
           //Show a textdraw that it's a tie
           }
       }
   }
}
These are the errors i get:

C:\Users\Henk\Desktop\Battlefield\gamemodes\battle field.pwn(6965) : error 017: undefined symbol "winningState"
C:\Users\Henk\Desktop\Battlefield\gamemodes\battle field.pwn(6965) : warning 204: symbol is assigned a value that is never used: "winning_Team"
Reply


Messages In This Thread
undefined symbol and symbol is assigned a value that is never used - by Proph3t - 11.04.2013, 14:15
Re: undefined symbol and symbol is assigned a value that is never used - by RenovanZ - 11.04.2013, 14:52
Re: undefined symbol and symbol is assigned a value that is never used - by Proph3t - 11.04.2013, 14:54

Forum Jump:


Users browsing this thread: 3 Guest(s)