Jump to content
  • 0

pomoc Chýba Pawno


lopi

Dotaz

Dobrý večer, nie som nijaký kóder nič také ale chcem si pridať do módu objekty ale vyhadzuje mi pri kompilácií chybu a netuším ako ju odstraniť :

   fatal error 100: cannot read from file: "sscanf2"

 

a ešte chyba v konzole :

 Run time error 19: "File or function is not found"

 

Dúfam že mi poradíte, ďakujem

 

 

Link to comment
Share on other sites

17 odpovědí na tuto otázku

Recommended Posts

  • 0

a teraz chyba : fatal error 100: cannot read from file: "zcmd"

 

mám aj zaincludované

//includes
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <mselection>
#include <GetVehicleColor>
#include <gettime>
#include <YSI\y_iterate> 
#include <YSI\y_areas>
#include <Samp_Fixer/fix_attachments>

Opraveno, ale stále mi tam hádže chyby

Edited by lopi
Link to comment
Share on other sites

  • 0

mSelection - http://www.solidfiles.com/d/5bb63cf747/

GetVehicleColorhttp://www.solidfiles.com/d/2dccdafe0b/

ktore mam uĺozene[YSI+SampFixer+zcmd atd] http://www.img.tpx.cz/uploads/include.zip

ale gettime.inc nemam sorry

Link to comment
Share on other sites

  • 0

Sice máš "zaincludované", ale právě že ty includy které tam napíšeš musíš mít ve složce "include", jinak ti to nepojete... :p

Link to comment
Share on other sites

  • 0

Jdi např na uloz to a stahny si inclu stačí když tam zadas  sscanf2.inc stahneš a vložíš do složky s pawne a tam do include 

fatal error 100: cannot read from file: "sscanf2"

ehm 

 tu máš include

 

http://pawno.cz/files/file/4-sscanf/

 

:facepalm: oh ... Až na to, že jsou 2 varianty sscanf2u. Zastaralá fce, kterou si pro zpřehlednění můžeš uložit jako include a načítat a nebo plugin. Sscanf2.inc ti nestačí. Ten ti načte proměnné a pár fci ale to podstatné je v tom pluginu samotném.

 

ale gettime.inc nemam sorry

ehm: http://wiki.sa-mp.com/wiki/Gettime

Link to comment
Share on other sites

  • 0

Mám to už, ale to nieje možné vyriešil som include a teraz hneď ďalšie chyby

C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1667) : error 025: function heading differs from prototype
C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1746) : error 017: undefined symbol "Player"
C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1746) : error 017: undefined symbol "Player"
C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1746) : warning 215: expression has no effect
C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1746) : error 001: expected token: ";", but found "]"
C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1746) : fatal error 107: too many error messages on one line

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


5 Errors.

Nechce mi to scompilovať

Link to comment
Share on other sites

  • 0

Chyba : C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1747) : error 017: undefined symbol "Player"
             C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1747) : error 017: undefined symbol "Player"

Kód:

//Custom settings 
//--------------------------------------------------------------------------------------------------
#define MAX_GANGS           50					//Maximmum Gangs in server
#define MAX_GZONES          50					//Maximum Gang Zone in server
#define ZONE_COLOR          0xF3F0E596          //Default Zone colour
#define ZONE_LOCK_TIME      120                //NOTE:The time should be given in seconds
#define ZONE_CAPTURE_TIME   30                //Same as above note
#define MAX_GANG_SCORE       0              //Maximum score to create a gang
#define MAX_ATTACH_SLOTS     11
              
#undef MAX_PLAYERS
#define MAX_PLAYERS 50

3 chyby ukayujú na riadok 1747 ak to myslím správne:

error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line
warning 215: expression has no effect

Kód:

			foreach( new i : Player )
Edited by lopi
Link to comment
Share on other sites

  • 0

Nějak mi není jasný, který řádek je řádek 1747. Nemáš to očíslované. Každopádně nevím jestli to nevadí, ale každopádně se mi nějak nezdá, že nejdřív oddefinováváš MAX_PLAYERS a pak ho znovu definuješ.

Edited by Meric
Link to comment
Share on other sites

  • 0
  • Hlavní moderátor

Nějak mi není jasný, který řádek je řádek 1747. Nemáš to očíslované. Každopádně nevím jestli to nevadí, ale každopádně se mi nějak nezdá, že nejdřív oddefinováváš MAX_PLAYERS a pak ho znovu definuješ.

To je v pořádku. Pomocí #undef se původního makra MAX_PLAYERS zbavil a pak jej pomocí #define znovu vytvořil, akorát se svou hodnotou (50).

Link to comment
Share on other sites

  • 0

Chyba : C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1747) : error 017: undefined symbol "Player"

C:\Users\karolinka\Downloads\Best-Freeroam-Ever-GM-2.0\Best-Freeroam-Ever-GM-2.0\gamemodes\BFE.pwn(1747) : error 017: undefined symbol "Player"

Dostals jsi blbý odkaz na stažení YSI, origo editované je lepší z githubu: https://github.com/Misiur/YSI-Includes. Buď po stažení načítej rovnou z absolutní cesty:

 

#include <YSI_Data\y_iterate>
A nebo použi starší variantu foreachu:

 

foreach(Player, i) {
Můžeš klidně i obojí.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...