Jump to content

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


Recommended Posts

C:\Users\Darius\Desktop\lucruri\Chars Gamemode\gamemodes\Chars.pwn(14) : fatal error 100: cannot read from file: "AutoAFK"

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


1 Error.
[Finished in 1.1s]

am eroarea aceasta oare de la ce sa fie?

Link to comment
Share on other sites

10 hours ago, ImDariusHere said:

C:\Users\Darius\Desktop\lucruri\Chars Gamemode\gamemodes\Chars.pwn(14) : fatal error 100: cannot read from file: "AutoAFK"

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


1 Error.
[Finished in 1.1s]

am eroarea aceasta oare de la ce sa fie?

nu ti gaseste include-ul, verifica in `pawno\include` sa vezi daca il ai, in caz de il ai inseamna ca nu ti ai configurat compiler-ul corect, adica nu compilezi cu include-urile din folder-ul ala.

Link to comment
Share on other sites

Degeaba am pus pawno ul din gamemode dar imi apare si mai multe erori

C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(2863) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(9406) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(9407) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(11236) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(11836) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(11839) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20846) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20847) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20848) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20849) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20850) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20851) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20852) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20853) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20854) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20855) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20856) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20857) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20858) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20859) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20860) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20861) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20862) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20863) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20864) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20865) : error 001: expected token: "-string end-", but found "-identifier-"

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


26 Errors.
[Finished in 57.0s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\Darius\\Desktop\\Chars Gamemode\\gamemodes\\Chars.pwn', '-;+']]
[dir: C:\Users\Darius\Desktop\Chars Gamemode\gamemodes]
[path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Users\Darius\AppData\Local\Microsoft\WindowsApps;]

Link to comment
Share on other sites

1 minute ago, ImDariusHere said:

adica?

 

 

adica fix ce am zis mai sus, arata o linie de cod la care ai eroare, sau incearca si ia compiler-ul dat de cine a pus gamemode-ul si compileaza cu el.

Edited by Sancky
Link to comment
Share on other sites

/*______________________________________________________________________________


                        Auto AFK detector!
                            By Lordz.
                             2013!
______________________________________________________________________________*/

#if defined _included_autoafk
 #endinput
#endif

#define _included_autoafk

#tryinclude <a_samp>

/*
native bool:IsPlayerPaused(playerid);
*/

new L_pTicks[MAX_PLAYERS],
    L_pAFK[MAX_PLAYERS],
    L_pisSpawned[MAX_PLAYERS];


stock ExecuteLAFK()
{
 SetTimer("L_AFKDETECT", 500, true);
 return 1;
}
forward L_AFKDETECT();

#if defined FILTERSCRIPT
public OnFilterScriptInit() { ExecuteLAFK(); CallLocalFunction("L_AFK_OnFS", ""); return 1; }
forward L_AFK_OnFS();
 #if defined _ALS_OnFilterScriptInit
  #undef OnFilterScriptInit
 #else
  #define _ALS_OnFilterScriptInit
 #endif

#define OnFilterScriptInit L_AFK_OnFS

#else
public OnGameModeInit() { ExecuteLAFK(); CallLocalFunction("L_AFK_OnGM", ""); return 1; }
forward L_AFK_OnGM();
 #if defined _ALS_OnGameModeInit
  #undef OnGameModeInit
 #else
  #define _ALS_OnGameModeInit
 #endif

#define OnGameModeInit L_AFK_OnGM
#endif

public OnPlayerUpdate(playerid)
{
 L_pTicks[playerid] = GetTickCount();
 if(L_pAFK[playerid] == 1)
 {
  L_pAFK[playerid] = 0;
  CallLocalFunction("OnPlayerResume", "i", playerid);
 }
 CallLocalFunction("L_AFK_OPU", "i", playerid);
 return 1;
}

forward L_AFK_OPU(playerid);

#if defined _ALS_OnPlayerUpdate
 #undef OnPlayerUpdate
#else
 #define _ALS_OnPlayerUpdate
#endif

#define OnPlayerUpdate L_AFK_OPU

public OnPlayerConnect(playerid)
{
 L_pAFK[playerid] = 0;
 L_pTicks[playerid] = 0;
 L_pisSpawned[playerid] = 0;
 CallLocalFunction("L_AFK_OPC", "i", playerid);
 return 1;
}

forward L_AFK_OPC(playerid);

#if defined _ALS_OnPlayerConnect
 #undef OnPlayerConnect
#else
 #define _ALS_OnPlayerConnect
#endif

#define OnPlayerConnect L_AFK_OPC

public OnPlayerSpawn(playerid)
{
 L_pisSpawned[playerid] = 1;
 CallLocalFunction("L_AFK_OPS", "i", playerid);
 return 1;
}

forward L_AFK_OPS(playerid);

#if defined _ALS_OnPlayerSpawn
 #undef OnPlayerSpawn
#else
 #define _ALS_OnPlayerSpawn
#endif

#define OnPlayerSpawn L_AFK_OPS

public OnPlayerDeath(playerid, killerid, reason)
{
 L_pisSpawned[playerid] = 0;
 CallLocalFunction("L_AFK_OPD", "iii", playerid, killerid, reason);
 return 1;
}

forward L_AFK_OPD(playerid, killerid, reason);

#if defined _ALS_OnPlayerDeath
 #undef OnPlayerDeath
#else
 #define _ALS_OnPlayerDeath
#endif

#define OnPlayerDeath L_AFK_OPD

public L_AFKDETECT()
{
 new tick = GetTickCount();
 for(new i; i< GetMaxPlayers(); i++)
 {
  if(!IsPlayerConnected(i)) continue;
  if(L_pAFK[i] != 0) continue;
  if(L_pisSpawned[i] != 1) continue;
  if((tick - L_pTicks[i]) >= 4500)
  {
   if(GetPlayerState(i) >= 1 && GetPlayerState(i) <= 3)
   {
    L_pAFK[i] = 1;
    CallLocalFunction("OnPlayerPause", "i", i);
   }
  }
 }
 return 1;
}

forward OnPlayerPause(playerid);
forward OnPlayerResume(playerid);

stock bool:IsPlayerPaused(playerid)
{
 if(L_pAFK[playerid] == 1) return true;
 else return false;
}

 

Link to comment
Share on other sites

44 minutes ago, ImDariusHere said:

Degeaba am pus pawno ul din gamemode dar imi apare si mai multe erori

C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(2863) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(9406) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(9407) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(11236) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(11836) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(11839) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20846) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20847) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20848) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20849) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20850) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20851) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20852) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20853) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20854) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20855) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20856) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20857) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20858) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20859) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20860) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20861) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20862) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20863) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20864) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Darius\Desktop\Chars Gamemode\gamemodes\Chars.pwn(20865) : error 001: expected token: "-string end-", but found "-identifier-"

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


26 Errors.
[Finished in 57.0s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\Darius\\Desktop\\Chars Gamemode\\gamemodes\\Chars.pwn', '-;+']]
[dir: C:\Users\Darius\Desktop\Chars Gamemode\gamemodes]
[path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Users\Darius\AppData\Local\Microsoft\WindowsApps;]

 

Link to comment
Share on other sites

13 minutes ago, ImDariusHere said:

/*______________________________________________________________________________


                        Auto AFK detector!
                            By Lordz.
                             2013!
______________________________________________________________________________*/

#if defined _included_autoafk
 #endinput
#endif

#define _included_autoafk

#tryinclude <a_samp>

/*
native bool:IsPlayerPaused(playerid);
*/

new L_pTicks[MAX_PLAYERS],
    L_pAFK[MAX_PLAYERS],
    L_pisSpawned[MAX_PLAYERS];


stock ExecuteLAFK()
{
 SetTimer("L_AFKDETECT", 500, true);
 return 1;
}
forward L_AFKDETECT();

#if defined FILTERSCRIPT
public OnFilterScriptInit() { ExecuteLAFK(); CallLocalFunction("L_AFK_OnFS", ""); return 1; }
forward L_AFK_OnFS();
 #if defined _ALS_OnFilterScriptInit
  #undef OnFilterScriptInit
 #else
  #define _ALS_OnFilterScriptInit
 #endif

#define OnFilterScriptInit L_AFK_OnFS

#else
public OnGameModeInit() { ExecuteLAFK(); CallLocalFunction("L_AFK_OnGM", ""); return 1; }
forward L_AFK_OnGM();
 #if defined _ALS_OnGameModeInit
  #undef OnGameModeInit
 #else
  #define _ALS_OnGameModeInit
 #endif

#define OnGameModeInit L_AFK_OnGM
#endif

public OnPlayerUpdate(playerid)
{
 L_pTicks[playerid] = GetTickCount();
 if(L_pAFK[playerid] == 1)
 {
  L_pAFK[playerid] = 0;
  CallLocalFunction("OnPlayerResume", "i", playerid);
 }
 CallLocalFunction("L_AFK_OPU", "i", playerid);
 return 1;
}

forward L_AFK_OPU(playerid);

#if defined _ALS_OnPlayerUpdate
 #undef OnPlayerUpdate
#else
 #define _ALS_OnPlayerUpdate
#endif

#define OnPlayerUpdate L_AFK_OPU

public OnPlayerConnect(playerid)
{
 L_pAFK[playerid] = 0;
 L_pTicks[playerid] = 0;
 L_pisSpawned[playerid] = 0;
 CallLocalFunction("L_AFK_OPC", "i", playerid);
 return 1;
}

forward L_AFK_OPC(playerid);

#if defined _ALS_OnPlayerConnect
 #undef OnPlayerConnect
#else
 #define _ALS_OnPlayerConnect
#endif

#define OnPlayerConnect L_AFK_OPC

public OnPlayerSpawn(playerid)
{
 L_pisSpawned[playerid] = 1;
 CallLocalFunction("L_AFK_OPS", "i", playerid);
 return 1;
}

forward L_AFK_OPS(playerid);

#if defined _ALS_OnPlayerSpawn
 #undef OnPlayerSpawn
#else
 #define _ALS_OnPlayerSpawn
#endif

#define OnPlayerSpawn L_AFK_OPS

public OnPlayerDeath(playerid, killerid, reason)
{
 L_pisSpawned[playerid] = 0;
 CallLocalFunction("L_AFK_OPD", "iii", playerid, killerid, reason);
 return 1;
}

forward L_AFK_OPD(playerid, killerid, reason);

#if defined _ALS_OnPlayerDeath
 #undef OnPlayerDeath
#else
 #define _ALS_OnPlayerDeath
#endif

#define OnPlayerDeath L_AFK_OPD

public L_AFKDETECT()
{
 new tick = GetTickCount();
 for(new i; i< GetMaxPlayers(); i++)
 {
  if(!IsPlayerConnected(i)) continue;
  if(L_pAFK[i] != 0) continue;
  if(L_pisSpawned[i] != 1) continue;
  if((tick - L_pTicks[i]) >= 4500)
  {
   if(GetPlayerState(i) >= 1 && GetPlayerState(i) <= 3)
   {
    L_pAFK[i] = 1;
    CallLocalFunction("OnPlayerPause", "i", i);
   }
  }
 }
 return 1;
}

forward OnPlayerPause(playerid);
forward OnPlayerResume(playerid);

stock bool:IsPlayerPaused(playerid)
{
 if(L_pAFK[playerid] == 1) return true;
 else return false;
}

 

ce legatura are include-ul asta cu ce ti am zis eu sa arati

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.