SA-MP Forums Archive
some error problems - 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: some error problems (/showthread.php?tid=139973)



some error problems - 02manchestera - 07.04.2010

ive been tring to fix this for last 30 mins but cant get it rite i just got from this to the 26 errors lol XD


Код:
public OnPlayerSpawn(playerid)
{
if( gTeam[playerid] == TEAM_USA )
}
      if( CapturedBy18 == 1 ){ SetPlayerArmour(playerid, 100);
      }
      if( CapturedBy19 == 1 ){ GivePlayerWeapon(playerid, 35, 20);
    }

Код:
C:\Users\alex\Desktop\codmw2\gamemodes\COD5.pwn(2504) : error 029: invalid expression, assumed zero
C:\Users\alex\Desktop\codmw2\gamemodes\COD5.pwn(2504 -- 2505) : warning 215: expression has no effect
C:\Users\alex\Desktop\codmw2\gamemodes\COD5.pwn(2505) : error 001: expected token: ";", but found "if"
C:\Users\alex\Desktop\codmw2\gamemodes\COD5.pwn(2505) : warning 217: loose indentation
C:\Users\alex\Desktop\codmw2\gamemodes\COD5.pwn(2509) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: some error problems - DarrenReeder - 07.04.2010

TEll us which lines is which and please post ALL of the onplayerspawn callback