SA-MP Forums Archive
confused - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: confused (/showthread.php?tid=140606)



confused - 02manchestera - 09.04.2010

Код:
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.


Re: confused - pmk1 - 09.04.2010

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




Re: confused - 02manchestera - 09.04.2010

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;
}



Re: confused - pmk1 - 09.04.2010

shouldn't it be : new classid; ?

Edit: nothing xd, waffless was faster xd


Re: confused - wafffllesss - 09.04.2010

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;
}



Re: confused - 02manchestera - 09.04.2010

yer XD thanks for ur help