[pomoc] 1 error

Započeo Bood Blos, Decembar 24, 2010, 12:05:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Preveo sam komandu /engine nema puno za pprevadjanje i preveo sam i dodje mi ovo!!




C:\Documents and Settings\Administrator\Desktop\server\filterscripts\engine.pwn(6) : fatal error 100: cannot read from file: "a_samp"

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.





Sta da uradim ?


Evo cjela skripta pa kazite di sam krivo preveo zasto mi je error


// [FS] Engine System v3
// Made by Joe Torran C
// Credits to JeNkStA for helping me fix some stuff
// DO NOT REMOVE THESE CREDITS

#include <a_samp>
#include <zcmd>

#define colorRed        0xFF0000FF
#define colorYellow    0xFFFF00FF

forward StartEngine(playerid);
forward DamagedEngine(playerid);

new vehEngine[MAX_VEHICLES];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new vehicleid = GetPlayerVehicleID(playerid);
   
   if(newstate == PLAYER_STATE_DRIVER)
   {
       if(vehEngine[vehicleid] == 0)
       {
           TogglePlayerControllable(playerid, 0);
           SendClientMessage(playerid, colorYellow, "Motor vozila nije upaljen");
           SendClientMessage(playerid, colorYellow, "Za pokretanje motora pritisnite\"Shift\" ili napisite \"/engine\"");
      }
      else if(vehEngine[vehicleid] == 1)
      {
          TogglePlayerControllable(playerid, 1);
          SendClientMessage(playerid, colorYellow, "Motor vozila je upaljen");
      }
   }
   return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new vehicleid = GetPlayerVehicleID(playerid);
   
   if(IsPlayerInAnyVehicle(playerid))
   {
       if(vehEngine[vehicleid] == 0)
       {
           if(newkeys == KEY_JUMP)
           {
            vehEngine[vehicleid] = 2;
            SetTimerEx("Motor upaljen", 3000, 0, "i", playerid);
            SendClientMessage(playerid, colorYellow, "Pokretanje motora");
         }
      }
      if(newkeys == KEY_SECONDARY_ATTACK)
      {
          RemovePlayerFromVehicle(playerid);
          TogglePlayerControllable(playerid, 1);
      }
   }
   return 1;
}

public StartEngine(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new Float:health;
    new rand = random(2);
   
    GetVehicleHealth(vehicleid, health);
   
   if(IsPlayerInAnyVehicle(playerid))
   {
       if(vehEngine[vehicleid] == 2)
       {
           if(health > 300)
         {
             if(rand == 0)
             {
               vehEngine[vehicleid] = 1;
                 TogglePlayerControllable(playerid, 1);
                 SetTimerEx("Motor ostecen", 1000, 1, "i", playerid);
                 SendClientMessage(playerid, colorYellow, "Pokretanje motora");
            }
            if(rand == 1)
            {
                vehEngine[vehicleid] = 0;
                TogglePlayerControllable(playerid, 0);
                SendClientMessage(playerid, colorYellow, "Motor vozila se nije upalio");
            }
         }
         else
         {
             vehEngine[vehicleid] = 0;
             TogglePlayerControllable(playerid, 0);
             SendClientMessage(playerid, colorYellow, "Motor vozila je ostecen nemoze da upali");
         }
      }
   }
   return 1;
}

public DamagedEngine(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new Float:health;
   
    GetVehicleHealth(vehicleid, health);

   if(IsPlayerInAnyVehicle(playerid))
   {
       if(vehEngine[vehicleid] == 1)
       {
           if(health < 300)
         {
             vehEngine[vehicleid] = 0;
            TogglePlayerControllable(playerid, 0);
             SendClientMessage(playerid, colorYellow, "Motor vozila je stao zbog ostecenja");
         }
      }
   }
   return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
   TogglePlayerControllable(playerid, 1);
   return 1;
}
            
CMD:engine(playerid, params[])
{
   new vehicleid = GetPlayerVehicleID(playerid);

   if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, colorRed, "Morate biti u vozilu kako bi koristili ovu komandu");
   
   if(vehEngine[vehicleid] == 0)
   {
       vehEngine[vehicleid] = 2;
      SetTimerEx("Motor vozila upaljen", 3000, 0, "i", playerid);
      SendClientMessage(playerid, colorYellow, "Motor vozila se pokrece");
   }
   else if(vehEngine[vehicleid] == 1)
   {
       vehEngine[vehicleid] = 0;
      TogglePlayerControllable(playerid, 0);
      SendClientMessage(playerid, colorYellow, "Motor vozila je prestao raditi");
      SendClientMessage(playerid, colorYellow, "Za ponovno pokretanje motora pritisnite \"Shift\" ili napisite \"/engine\"");
   }
   return 1;
}

public OnFilterScriptInit()
{
   print("\n  [FS] Engine System v3 by Joe Torran C \n");
   return 1;
}
Poslednja Izmena: Decembar 24, 2010, 12:09:59 POSLE PODNE od Dnaijel

-------------------------------------------------------------------------------
Forum Name:Bood Blos
Age:19
Zanimanje:Mapper
Rank:Transformer

-------------------------------------------------------------------------------
Tražite Mappera,Primam Narudžbe u PM(Privat Messages)!
Trebate Forum,neznate ga sastavit,tu sam slažem php,smf,mybb!!
-------------------------------------------------------------------------------------
Neznate,ubaciti GameMod,u svoj server,kontaktirajte me  na PM!!

Skini ovo:http://rapidshare.com/files/439021386/a_samp.inc i ubaci u pawno/include i onda opet udji u pawno i radice ti ;)
Citat: Marley poslato Jun 16, 2012, 17:11:23 POSLE PODNE
Kurcina  :P

Citat: Dude poslato Jun 16, 2012, 17:14:21 POSLE PODNE
čobane šta je ovo?

Respect for David (Sabljak) A.k.A SABO(T)

black_dota

treba ti najnoviji include a_samp

ili si obrisao #include <a_samp> iz includesa

Resio sam ok je sad .

-------------------------------------------------------------------------------
Forum Name:Bood Blos
Age:19
Zanimanje:Mapper
Rank:Transformer

-------------------------------------------------------------------------------
Tražite Mappera,Primam Narudžbe u PM(Privat Messages)!
Trebate Forum,neznate ga sastavit,tu sam slažem php,smf,mybb!!
-------------------------------------------------------------------------------------
Neznate,ubaciti GameMod,u svoj server,kontaktirajte me  na PM!!