error -.-
#1

ammm i wanna do something like this : when someone join to COP , SHERIFF OR FBI TEAM and they spawn there should something happen

here is the code:

Код:
public OnPlayerSpawn(playerid)
{
  if(gTeam[playerid] == TEAM_FBI || (gTeam[playerid] == TEAM_SHERIFF || (gTeam[playerid] == TEAM_COP))
  {       ----------------------------------------------> THE ERROR LINE
  SetPlayerInterior(playerid,0);
  SetPlayerCameraPos(playerid,2290.5300,2400.1262,18.4163);
  SetPlayerCameraLookAt(playerid, 2290.1648,2429.6484,10.8203);
  }
  return 1;
}
so when they spawn with these teams should happens this what is under playerspawn

but here is error:

Код:
C:\Documents and Settings\samp\Desktop\Server\gamemodes\WeedsCNR.pwn(289) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
hope you udnerstand me what i want
Reply


Messages In This Thread
error -.- - by Lajko1 - 12.10.2009, 15:01
Re: error -.- - by mamorunl - 12.10.2009, 15:23
Re: error -.- - by Lajko1 - 12.10.2009, 15:30
Re: error -.- - by ilikepie2221 - 12.10.2009, 15:35
Re: error -.- - by Lajko1 - 12.10.2009, 15:51
Re: error -.- - by mamorunl - 13.10.2009, 12:11
Re: error -.- - by Extremo - 13.10.2009, 12:25
Re: error -.- - by Lajko1 - 13.10.2009, 13:44
Re: error -.- - by mamorunl - 14.10.2009, 22:19

Forum Jump:


Users browsing this thread: 4 Guest(s)