Couple Errors
#1

hi im making some dm zones and in OnPlayerSpawn i made this code
Код:
public OnPlayerSpawn(playerid)
{
	if(minigun[playerid] == 1)
	{
	GivePlayerWeapon(playerid, 38, 9999);
	new iRandom = random(sizeof(MiniRandSpawn));
	SetPlayerPos(playerid, MiniRandSpawn[iRandom][0], MiniRandSpawn[iRandom][1],MiniRandSpawn[iRandom][2]);
	SetPlayerFacingAngle(playerid, MiniRandSpawn[iRandom][3]);
	}
	else if(cagedm[playerid] == 1)
	GivePlayerWeapon(playerid, 24, 9999);
	GivePlayerWeapon(playerid, 27, 9999);
	GivePlayerWeapon(playerid, 29, 9999);
	GivePlayerWeapon(playerid, 31, 9999);
	new iRandom = random(sizeof(CageRandSpawn));
	SetPlayerPos(playerid, CageRandSpawn[iRandom][0], CageRandSpawn[iRandom][1],CageRandSpawn[iRandom][2]);
	SetPlayerFacingAngle(playerid, CageRandSpawn[iRandom][3]);
	}
133	else if(area51[playerid] == 1);
	{
	GivePlayerWeapon(playerid, 24, 9999);
	GivePlayerWeapon(playerid, 27, 9999);
	GivePlayerWeapon(playerid, 29, 9999);
	GivePlayerWeapon(playerid, 31, 9999);
	GivePlayerWeapon(playerid, 16, 9999);
	SetPlayerPos(playerid, AreaRandSpawn[iRandom][0], AreaRandSpawn[iRandom][1],AreaRandSpawn[iRandom][2]);
	SetPlayerFacingAngle(playerid, AreaRandSpawn[iRandom][3]);
142  return 1;
}
and get these errors
Код:
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(133) : error 010: invalid function or declaration
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(142) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
anyone know anything?
Reply


Messages In This Thread
Couple Errors - by [WF]Demon - 05.03.2010, 01:29
Re: Couple Errors - by s0nic - 05.03.2010, 01:32
Re: Couple Errors - by [WF]Demon - 05.03.2010, 01:34
Re: Couple Errors - by [WF]Demon - 05.03.2010, 01:58
Re: Couple Errors - by Miguel - 05.03.2010, 02:41
Re: Couple Errors - by [WF]Demon - 05.03.2010, 03:01

Forum Jump:


Users browsing this thread: 3 Guest(s)