Errors
#1

I can't get this to work. I set it up so none of the classes would work when they try to spawn but i get a lot of errors not even close to this.

Код:
(439) : error 029: invalid expression, assumed zero
(439) : error 004: function "OnPlayerSpawn" is not implemented
(667) : warning 225: unreachable code
(667) : error 029: invalid expression, assumed zero
(667) : error 004: function "OnPlayerDeath" is not implemented
(669) : error 017: undefined symbol "killerid"
(669) : error 017: undefined symbol "reason"
(669) : error 017: undefined symbol "killerid"
(669) : fatal error 107: too many error messages on one line
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    switch(pClass[playerid])
    {
      case 1: return 0;
      case 2: return 0;
      case 3: return 0;
      case 4: return 0;
      case 5: return 0;
      case 6: return 0;
      case 7: return 0;
      case 8: return 0;
      case 9: return 0;
      case 10: return 0;
      case 11: return 0;
      case 12: return 0;
      case 13: return 0;
      case 14: return 0;
      case 15: return 0;
      case 16: return 0;
      case 17: return 0;
      case 18: return 0;
      case 19: return 0;
      case 20: return 0;
      case 21: return 0;
      case 22: return 0;
      case 23: return 0;
      case 24: return 0;
      case 25: return 0;
      case 26: return 0;
      case 27: return 0;
      case 28: return 0;
      case 29: return 0;
      case 30: return 0;
      case 31: return 0;
    }
    return 1;
}
Reply
#2

Many errors that you posted doesn't match with the code that you posted.
The errors match to an other section in your script.

Quote:
Originally Posted by ScottCFR
Код:
(439) : error 029: invalid expression, assumed zero
(439) : error 004: function "OnPlayerSpawn" is not implemented
(667) : warning 225: unreachable code
(667) : error 029: invalid expression, assumed zero
(667) : error 004: function "OnPlayerDeath" is not implemented
(669) : error 017: undefined symbol "killerid"
(669) : error 017: undefined symbol "reason"
(669) : error 017: undefined symbol "killerid"
(669) : fatal error 107: too many error messages on one line
The number in brackets shows the line where the error is, so can you please post these lines?
I am sorry that I couldn't help more =/

You can look if your
pawn Код:
public OnPlayerDeath
isn't modified to this one:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
Reply
#3

Quote:
Originally Posted by Last_Stand_Guardian
Many errors that you posted doesn't match with the code that you posted.
The errors match to an other section in your script.

Quote:
Originally Posted by ScottCFR
Код:
(439) : error 029: invalid expression, assumed zero
(439) : error 004: function "OnPlayerSpawn" is not implemented
(667) : warning 225: unreachable code
(667) : error 029: invalid expression, assumed zero
(667) : error 004: function "OnPlayerDeath" is not implemented
(669) : error 017: undefined symbol "killerid"
(669) : error 017: undefined symbol "reason"
(669) : error 017: undefined symbol "killerid"
(669) : fatal error 107: too many error messages on one line
The number in brackets shows the line where the error is, so can you please post these lines?
I am sorry that I couldn't help more =/

You can look if your
pawn Код:
public OnPlayerDeath
isn't modified to this one:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
Paste the relevant errors and assign them to the code.

BTW.
bad topic title
Reply
#4

I was showing the errors i got, Nothing else was giving me a bad command until i added that.

Reply
#5

I normally get a bunch of errors like that when I'm missing a bracket.
Reply
#6

Ok, Well i'm kinda truing to set it up like this, but i keep getting:
Код:
(93) : error 017: undefined symbol "classid"
(94) : error 017: undefined symbol "classid"
(95) : error 017: undefined symbol "classid"
(96) : error 017: undefined symbol "classid"
(97) : error 017: undefined symbol "classid"
(98) : error 017: undefined symbol "classid"
(99) : error 017: undefined symbol "classid"
(100) : error 017: undefined symbol "classid"
(101) : error 017: undefined symbol "classid"
(102) : error 017: undefined symbol "classid"
(103) : error 017: undefined symbol "classid"
(104) : error 017: undefined symbol "classid"
(105) : error 017: undefined symbol "classid"
(106) : error 017: undefined symbol "classid"
(107) : error 017: undefined symbol "classid"
(108) : error 017: undefined symbol "classid"
(109) : error 017: undefined symbol "classid"
(110) : error 017: undefined symbol "classid"
(111) : error 017: undefined symbol "classid"
(112) : error 017: undefined symbol "classid"
(113) : error 017: undefined symbol "classid"
(114) : error 017: undefined symbol "classid"
(115) : error 017: undefined symbol "classid"
(115) : error 017: undefined symbol "classid"
(116) : error 017: undefined symbol "classid"
Here are those lines xD

pawn Код:
if(classid == 0) return 0;
    if(classid == 1) return 0;
    if(classid == 2) return 0;
    if(classid == 3) return 0;
    if(classid == 4) return 0;
    if(classid == 5) return 0;
    if(classid == 6) return 0;
    if(classid == 7) return 0;
    if(classid == 8) return 0;
    if(classid == 9) return 0;
    if(classid == 10) return 0;
    if(classid == 11) return 0;
    if(classid == 12) return 0;
    if(classid == 13) return 0;
    if(classid == 14) return 0;
    if(classid == 15) return 0;
    if(classid == 16) return 0;
    if(classid == 17) return 0;
    if(classid == 18) return 0;
  if(classid == 19) return 0;
    if(classid == 20) return 0;
    if(classid == 21) return 0;
    if(classid == 22) return 0;
    if(classid == 23) return 0;
    if(classid == 24) return 0;
    if(classid == 25) return 0;
    if(classid == 26) return 0;
    if(classid == 27) return 0;
    if(classid == 28) return 0;
    if(classid == 29) return 0;
    if(classid == 30) return 0;
  if(classid == 31) return 0;
Reply
#7

where u have those lines , like under which callback??
Reply
#8

OnPlayerRequestSpawn.
Reply
#9

Put that in OnPlayerRequestClass
Reply
#10

That's where i have this:

pawn Код:
if(classid == 31) {gTeam[playerid] = TEAM_LORD; GameTextForPlayer(playerid,"~W~Drug Lord",5000,5);}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)