21.10.2018, 16:56
Код:
#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; }
Код:
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.