4 wired errors:/
#1

pawn Код:
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(1871) : error 017: undefined symbol "Team"
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(1871) : warning 215: expression has no effect
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(1871) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(1871) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(1871) : fatal error 107: too many error messages on one line
4 errors why?

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(ONWG[playerid]==1)
    {
      if(Team[killerid] == army)     // 1871
      {
        if(Team[playerid] == terr)  
        {
                yellowscore++;
                SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
            }
            else if(Team[playerid] == army)
            {
                GameTextForPlayer(killerid, "Friendly Fire Will Not Be Tolerated", 3000, 4);
                GivePlayerMoney(killerid, -5000);
                SetPlayerHealth(killerid, 0.0);
                SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
            }
      }
      if(Team[killerid] == terr)
      {
        if(Team[playerid] == army)
        {
                bluescore++;
                SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
            }
            else if(Team[playerid] == terr)
            {
                GameTextForPlayer(killerid, "Friendly Fire Will Not Be Tolerated", 3000, 4);
                GivePlayerMoney(killerid, -100);
                SetPlayerHealth(killerid, 0.0);
                SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
            }
      }
    }
...
Reply
#2

Tell us what line is 1871..


EDIT: nvm...lol
Reply
#3

Код:
	  if(Team[killerid] == army)     // 1871
Reply
#4

Have you defined the Team variable as this?
pawn Код:
new Team[MAX_PLAYERS];
Reply
#5

now i get this

pawn Код:
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(988) : error 006: must be assigned to an array
this is the line:

pawn Код:
Team[playerid] = police;
Reply
#6

Quote:
Originally Posted by pawelf94
now i get this

pawn Код:
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.pwn(988) : error 006: must be assigned to an array
this is the line:

pawn Код:
Team[playerid] = police;
new Team[MAX_PLAYERS];
Reply
#7

i have this:

pawn Код:
new Team[MAX_PLAYERS];
new hick[MAX_PLAYERS];
new police[MAX_PLAYERS];

new hickscore;
new policescore;

new Text:Score;
Reply
#8

If 'hick' and 'police' are teams, I suggest defining them to values (from 0 >)
Example:
pawn Код:
#define police      (0)
#define hick        (1)

new Team[ MAX_PLAYERS ];
Then in checks do:
pawn Код:
if( Team[ playerid ] == police ) //if team is equal to police (0)
{
    //do something
}
else if( Team[ playerid ] == hick ) //if team is equal to hick (1)
{
    //do something else
}
Reply
#9

I ONLY GET ERROR ON THIS LINE NOW

pawn Код:
KillTimer(playerid, ScoreUpdate);
[PAWN]C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm2.p wn(1895) : error 076: syntax error in the expression, or invalid function call[PAWN]
Reply
#10

Do you even know what KillTimer does?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)