Jump to content

Ajutor Va rog: fatal error 100: cannot read from file: "AutoAFK"


WeKy

Recommended Posts

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.

  • Similar Content

    • By Rby Robert
      Am un gamemode de la un prieten la care a lucrat el acum mi la dat mie sa lucrez eu pe el am facut ceea ce am stiu am dar ma bate ceva cand dau in /v nu imi apare despawn car ma poate ajuta cineva aici aveti comanda 
      CMD:v(playerid, params[])
      {
          if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
          if(VehiclesCount(playerid) == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu ai vehicule personale.");
          new str2[1500],str[200],id[50],vip[30],title[35],rainbow[30],premium[30], stage[30];
          strcat(str2, "Model\tStatus\tUpgrades\tID\n");
          for(new x = 0; x < PlayerInfo[playerid][pSlots]; x++) {
              if(PlayerInfo[playerid][pCarKey][x] != 0) {
                  new ide = veh_ArrayID(PlayerInfo[playerid][pCarKey][x]);
                  if((playerCarsSpawned[playerid][x]) == true ) format(id,50,"%d",CarInfo[ide][cInGameID]); else format(id,50,"{ffffff}not spawned");
                  if(CarInfo[ide][cVip] == true) format(vip, 30, "{FFE802}[VIP] "); else format(vip,3,"");
                  if(CarInfo[ide][cHaveRainBow] == true) format(rainbow, 30, "{791DD5}[R] "); else format(rainbow,3,"");
                  if(CarInfo[ide][cPremium] == 1) format(premium, 30, "{F28644}[P] "); else format(premium,3,"");
                  if(CarInfo[ide][cStage] > 0) format(stage, sizeof(stage), "{509AE4}[S: %d/3]", CarInfo[ide][cStage]); else format(stage,3,"");
                  format(str, 200, "%s\t%s\t%s%s%s%s \t%s\n",aVehicleNames[playerCarsModel[playerid][x] - 400],(playerCarsSpawned[playerid][x]) ? ("{33AA33}[spawned]") : ("{9D0000}[despawned]"),vip,rainbow,premium,stage,id);
                  strcat(str2,str);
              }
              else strcat(str2,"\n[ empty ]\n");
          }
          format(title,sizeof title,"Your vehicles [%d/%d]",VehiclesCount(playerid),PlayerInfo[playerid][pSlots]);
          ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_TABLIST_HEADERS, title, str2, "Select","Exit");
          return 1;
      }
    • By MihaiMrn43
      Salut, am incercat de cateva ore sa rezolv aceasta problema, dar nu reusesc, cineva care ma poate ajuta?
      eroare: C:\Users\model\Desktop\BloodYDark\gamemodes\include\YSI\y_debug.inc(143) : fatal error 111: user error: Could not find y_debug
    • By razvi
      Ma poate ajuta cineva cu aceasta eroare?B-HOOD.pwn(9) : fatal error 100: cannot read from file: "a_samp"
    • By hunt3r
      De o vreme buna incoace,la orice gm compilez primesc eroarea: Run time error 19: "File or function is not found". O rezolvare va rog?
    • By AlexandruBHD
      Asta e eroarea:
      C:\Users\Acer\Desktop\tuts\gamemodes\tuts.pwn(197) : error 035: argument type mismatch (argument 2)
      Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

      1 Error.
      Asta e gm..
      //Includes
      #include         < a_samp >
      #include         < a_mysql >
      #include         < YSI\y_master >
      #include         < YSI\y_timers >
      #include         < YSI\y_commands >
      #include         < YSI\y_va >
      #include         < YSI\y_iterate >
      #include         < YSI\y_hooks >
      #include         < YSI\y_bit > 
      //defines
      #define SERVER_VERSION "v0.0.1[BETA]"
      main() { printf("Gamemode-ul este in curs de procesare... [BY ANTIF1X]"); }
      #define function%0(%1) forward %0(%1); public %0(%1)
      #define SCM SendClientMessage
      enum {
          //Register
          DIALOG_REGISTER,
          DIALOG_EMAIL,
          DIALOG_GENDER,
          //Login
          DIALOG_LOGIN
      }
      //news
      new 
          SQL = -1, gQuery[256], gString[256], IncercariParola[MAX_PLAYERS];
      //Database Connect Info
      enum pInfo {
          pSQLID,
          pName[MAX_PLAYER_NAME],
          pPassword[32],
          pEmail[32],
          pGender
      }
      new PlayerInfo[MAX_PLAYERS][pInfo];
      //stocks
      stock GetName(playerid) {
          new playerName[MAX_PLAYER_NAME];
          GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
          return playerName;
      }
      public OnGameModeInit()
      {
          //mysql connect
          SQL = mysql_connect("localhost", "root", "tutsdbm", "");
          SetGameModeText("RO:RPG "SERVER_VERSION"");
          AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
          return 1;
      }
      public OnGameModeExit()
      {
          return 1;
      }
      public OnPlayerRequestClass(playerid, classid)
      {
          TogglePlayerSpectating(playerid, false);
          SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
          SetPlayerCameraPos(playerid, 1015.9453,-1316.2374,182.0590);
          SetPlayerCameraLookAt(playerid, 1015.9453,-1316.2374,182.0590);
          return 1;
      }
      public OnPlayerConnect(playerid) {
          gQuery[0] = EOS;
          mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `Name`='%s' LIMIT 1", GetName(playerid));
          mysql_tquery(SQL, gQuery, "checkAccount", "i", playerid);
          return 1;
      }
      public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
          switch(dialogid) {
              case DIALOG_REGISTER: {
                  if(!response) 
                      return Kick(playerid);
                  if(strlen(inputtext) < 6 || strlen(inputtext) > 32) 
                      return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register {F5BC11}(RPG.TUTS.RO){FFFFFF}", "Nu ai un cont inregistrat pe server!\n\nScrie o parola in casuta de mai jos. {F5BC11}(6-32 caractere){FFFFFF}", "Register", "Cancel");
                  gQuery[0] = EOS;
                  mysql_format(SQL, gQuery, sizeof(gQuery), "INSERT INTO `users` (`Name`, `Password`) VALUES ('%s', '%s')", GetName(playerid), inputtext);
                  mysql_tquery(SQL, gQuery, "insertAccount", "i", playerid);
                  gString[0] = EOS;
                  format(gString, sizeof(gString), "{F5BC11}Register:{FFFFFF} Parola ta contine %d caractere.", strlen(inputtext));
                  SCM(playerid, -1, gString);
                  format(PlayerInfo[playerid][pPassword], 32, inputtext);
                  ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email {F5BC11}(RPG.TUTS.RO){FFFFFF}", "Scrie un email in casuta de mai jos.\n\nExemplu: {F5BC11}[email protected]{FFFFFF}", "Seteaza", "Cancel");
              }
              case DIALOG_EMAIL: {
                  if(!response) 
                      return Kick(playerid);
                  if(strlen(inputtext) < 6 || strlen(inputtext) > 32) 
                      return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email {F5BC11}(RPG.LUCRAM.RO){FFFFFF}", "Scrie un email in casuta de mai jos.\n\nExemplu: {F5BC11}[email protected]{FFFFFF}", "Seteaza", "Cancel");
                  gQuery[0] = EOS;
                  mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'", inputtext, PlayerInfo[playerid][pSQLID]);
                  mysql_tquery(SQL, gQuery, "", "");
                  gString[0] = EOS;
                  format(gString, sizeof(gString), "{F5BC11}Register:{FFFFFF} Email setat: %s", inputtext);
                  SCM(playerid, -1, gString);
                  format(PlayerInfo[playerid][pEmail], 32, inputtext);
                  ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Gender {F5BC11}(RPG.TUTS.RO){FFFFFF}", "Seteaza-ti sex-ul:", "Masculin", "Feminin");
              }
              case DIALOG_GENDER: {
                  switch(response) {
                      case 0: {
                          PlayerInfo[playerid][pGender] = 1;
                          SCM(playerid, -1, "{F5BC11}Register:{FFFFFF} Sex setat: Feminin");
                      }
                      case 1: {
                          PlayerInfo[playerid][pGender] = 2;
                          SCM(playerid, -1, "{F5BC11}Register:{FFFFFF} Sex setat: Masculin");
                      }
                  }
                  gQuery[0] = EOS;
                  mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Gender`='%d' WHERE `ID`='%d'", PlayerInfo[playerid][pGender], PlayerInfo[playerid][pSQLID]);
                  mysql_tquery(SQL, gQuery, "", "");
                  SpawnPlayer(playerid);
              }
              case DIALOG_LOGIN: {
                  if(!response) 
                      return Kick(playerid);
                  gQuery[0] = EOS;
                  mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `Name`='%s' AND `Password`='%s' LIMIT 1", GetName(playerid), inputtext);
                  mysql_tquery(SQL, gQuery, "onLogin", "i", playerid);
              }
          }
          return 1;
      }
      //functions
      function onLogin(playerid) {
          switch(cache_num_rows()) {
              case 0: {
                  IncercariParola[playerid] ++;
                  gString[0] = EOS;
                  format(gString, sizeof(gString), "{F5BC11}Login Error:{FFFFFF} Parola incorecta, (%d/3) incercari ramase!", IncercariParola[playerid]);
                  SCM(playerid, -1, gString);
                  if(IncercariParola[playerid] == 3) Kick(playerid);
                  else ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login {F5BC11}(RPG.TUTS.RO){FFFFFF}", "Acest nume este deja inregistrat\n\nScrie parola in casuta de mai jos.", "Login", "Cancel");
              }
              case 1: {
                  new result[64];
                  PlayerInfo[playerid][pSQLID] = cache_get_field_content_int(0, "ID");
                  PlayerInfo[playerid][pGender] = cache_get_field_content_int(0, "Gender");
                  cache_get_field_content(0, "Name", result);            format(PlayerInfo[playerid][pName], MAX_PLAYER_NAME, result);
                  cache_get_field_content(0, "Email", result);        format(PlayerInfo[playerid][pEmail], 32, result);
                  cache_get_field_content(0, "Password", result);        format(PlayerInfo[playerid][pPassword], 32, result);
                  SpawnPlayer(playerid);
                  for(new i = 0; i < 25; i++) SCM(playerid, -1, " ");
                  new string[130];
                  format(string, sizeof(string), "{F5BC11}(SERVER){FFFFFF} Salut %s bine ai revenit pe server!", GetName(playerid));
                  SCM(playerid, -1, string);
                  printf("%s (user %d) s-a logat. [Sex: %d, Name: %s, Password: %s, Email: %s]", GetName(playerid), PlayerInfo[playerid][pSQLID], PlayerInfo[playerid][pGender], PlayerInfo[playerid][pName], PlayerInfo[playerid][pPassword], PlayerInfo[playerid][pEmail]);
              }
          }
          return 1;
      }
      function insertAccount(playerid) {
          PlayerInfo[playerid][pSQLID] = cache_insert_id();
          printf("%s s-a inregistrat cu SQLID-ul #%d", GetName(playerid), PlayerInfo[playerid][pSQLID]);
          return 1;
      }
      function checkAccount(playerid) {
          switch(cache_num_rows()) {
              case 0: ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register {F5BC11}(RPG.LUCRAM.RO){FFFFFF}", "Nu ai un cont inregistrat pe server!\n\nScrie o parola in casuta de mai jos. {F5BC11}(6-32 caractere){FFFFFF}", "Register", "Cancel");
              case 1:    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login {F5BC11}(RPG.LUCRAM.RO){FFFFFF}", "Acest nume este deja inregistrat\n\nScrie parola in casuta de mai jos.", "Login", "Cancel");
          }
          return 1;
      }
      CMD:getgift(playerid, params[]) {
          if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1956.1467,1264.5828,10.8203)) return SendClientMessage(playerid, 0x919191FF, "Eroare: Nu esti in locatia potrivita!");
          new string[128], rand = random(3);
          switch(rand) {
              case 1: {
                  new money = 10000 + random(500000);
                  format(string, sizeof(string), "Felicitari %s! Ai castigat $%d.", GetName(playerid), money);
                  GivePlayerMoney(playerid, money);
              }
              case 2: {
                  new level = random(5);
                  format(string, sizeof(string), "Felicitari %s! Ai castigat %dX level up.", GetName(playerid), level);
                  SetPlayerScore(playerid, GetPlayerScore(playerid)+level);
              }
          }
          SendClientMessage(playerid, 0x4AAB1DFF, string);
          return 1;
      }
      CMD:stats(playerid) {
          new string[256], name[MAX_PLAYER_NAME];
          GetPlayerName(playerid, name, sizeof(name));
          format(string, sizeof(string), "Nume: %s (%d) | Level: %d | Ping: %d | Money: %d", name, playerid, GetPlayerScore(playerid), GetPlayerPing(playerid), GetPlayerMoney(playerid));
          SendClientMessage(playerid, -1, string);
          return 1;
      }
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.