confused
#1

Код:
C:\Users\alex\Desktop\Streets of los santos\gamemode\Untitled.pwn(80) : error 017: undefined symbol "classid"
C:\Users\alex\Desktop\Streets of los santos\gamemode\Untitled.pwn(291) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Im getting a warning and i dont even have line 291 and that undefined error i do #define classid but it doesnt go away just bring different erros.
Reply
#2

the warning is because you have SetPlayerTeamFromClass somewhere at top, but is never used in ur script; just erase it then it will be fix. and the define i think you must do a new where is your script lines for classid

hope i helped

Reply
#3

i get this now

Код:
C:\Users\alex\Desktop\Streets of los santos\gamemode\Untitled.pwn(80) : error 001: expected token: ";", but found "-identifier-"
C:\Users\alex\Desktop\Streets of los santos\gamemode\Untitled.pwn(80) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
public OnPlayerSpawn(playerid)
{
new classid
  SetPlayerToTeamColor(playerid);
  if (classid == 0) {
    gTeam[playerid] = TEAM_GROVE;
  }
  else {
    gTeam[playerid] = TEAM_BALLA;
  }
  if (gTeam[playerid] == TEAM_GROVE) {
    SetPlayerColor(playerid, TEAM_GROVE_COLOR);
  }
  else if (gTeam[playerid] == TEAM_BALLA) {
    SetPlayerColor(playerid, TEAM_BALLA_COLOR);
  }
  return 1;
}
Reply
#4

shouldn't it be : new classid; ?

Edit: nothing xd, waffless was faster xd
Reply
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
  new classid;
  SetPlayerToTeamColor(playerid);
  if (classid == 0) {
    gTeam[playerid] = TEAM_GROVE;
  }
  else {
    gTeam[playerid] = TEAM_BALLA;
  }
  if (gTeam[playerid] == TEAM_GROVE) {
    SetPlayerColor(playerid, TEAM_GROVE_COLOR);
  }
  else if (gTeam[playerid] == TEAM_BALLA) {
    SetPlayerColor(playerid, TEAM_BALLA_COLOR);
  }
  return 1;
}
Reply
#6

yer XD thanks for ur help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)