[HELP] Warnings in my script.
#8

Your SetPlayerTeamFromClass conditional is messed up, it is probably better to use a switch for this

pawn Code:
SetPlayerTeamFromClass(playerid, classid)
{
  switch(classid)
  {
    case 0..4:gTeam[playerid] = TEAM_HOOKER;
    case 5..8:gTeam[playerid] = TEAM_BUM;
  }
}
Reply


Messages In This Thread
[HELP] Warnings in my script. - by waza75 - 08.01.2010, 16:05
Re: Skins for teams [HELP] - by Lajko1 - 08.01.2010, 16:08
Re: Skins for teams [HELP] - by lameguy - 08.01.2010, 16:17
Re: Skins for teams [HELP] - by Lajko1 - 08.01.2010, 16:19
Re: Skins for teams [HELP] - by waza75 - 08.01.2010, 16:36
Re: Skins for teams [HELP] - by waza75 - 08.01.2010, 16:51
Re: [HELP] Warnings in my script. - by waza75 - 08.01.2010, 17:37
Re: [HELP] Warnings in my script. - by Joe Staff - 08.01.2010, 17:45
Re: [HELP] Warnings in my script. - by waza75 - 08.01.2010, 17:48
Re: [HELP] Warnings in my script. - by waza75 - 08.01.2010, 17:51

Forum Jump:


Users browsing this thread: 2 Guest(s)