[HELP]Why Code Not Compiled
#1

Код:
#include <a_samp>
#include "a_players"
#include "a_objects"

#if defined filterscripts

public OnFilterScriptInit()
{
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("bombaci\n");
}

#endif

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys == KEY_NO)
	{
	  switch(Vehicle[vehicleid])
	    {
		   case 1: 460;
	    }
	  new Float:VehicleRotX, Float:VehicleRotY, Float:VehicleRotZ;
	  GetPlayerPos(playerid, x, y, z);
	  if(VehicleRotX == VehicleRotY)
	  new torpedo = CreateObject(3790, x, y, z, rX, rY, rZ, DrawDistance)
	  {
		MoveObject(torpedo, x + 15, y + 15, z, 250.0, RotX, RotY, RotZ);
		DestroyObject(torpedo);
      }
      else
      if(VehicleRotX = 5.0 && VehicleRotY = 0.0)
      {
        MoveObject(torpedo, x + 15, y, z, 250.0, RotX, RotY, RotZ);
		DestroyObject(torpedo);
      }
      else
      if(VehicleRotX = 0.0 && VehicleRotY = 5.0)
      {
        MoveObject(torpedo, x + 15, y, z, 250.0, RotX, RotY, RotZ);
		DestroyObject(torpedo);
      }
      if(DestroyObject(torpedo))
      {
		CreateExplosion(x, y, z, 7, 15);
	}
	return 1;
}
Why?

Код:
C:\SAMP\filterscripts\torpedo.pwn(34) : error 017: undefined symbol "Vehicle"
C:\SAMP\filterscripts\torpedo.pwn(34) : error 029: invalid expression, assumed zero
C:\SAMP\filterscripts\torpedo.pwn(34) : error 029: invalid expression, assumed zero
C:\SAMP\filterscripts\torpedo.pwn(34) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
[HELP]Why Code Not Compiled - by Bombaci - 21.10.2018, 16:56
Re: [HELP]Why Code Not Compiled - by Chyakka - 21.10.2018, 18:10
Re: [HELP]Why Code Not Compiled - by ReD_HunTeR - 21.10.2018, 18:12
Re: [HELP]Why Code Not Compiled - by GangstaSunny. - 21.10.2018, 18:15
Re: [HELP]Why Code Not Compiled - by ReD_HunTeR - 21.10.2018, 18:29
Re: [HELP]Why Code Not Compiled - by Bombaci - 21.10.2018, 19:12
Re: [HELP]Why Code Not Compiled - by Bombaci - 21.10.2018, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)