Ir para conteúdo
  • 0

Alguem ajuda Syntax Error


demilson

Pergunta

ola estou tento problemas para colocar o site online eu coloco a pasta htdocs la no xampp, vo no config adiciono o caminho da pasta do server quando vo abri o site da o seguinte erro.

 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\config\config.php on line 4

 

no config esta assim

$config['site']['useServerConfigCache'] = false; ja troquei para true porem nada muda e nao consigo estala o site

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

sim eh a linha 4

 

<?PHP
# Account Maker Config
$config['site']['serverPath'] = "C:\Users\xDezenhox.xDezenho\Downloads\Tibia\10.82\server\";
$config['site']['useServerConfigCache'] = false;
$towns_list = array(1 => 'Venore', 2 => 'Thais', 3 => 'Kazordoon', 4 => 'Carlin', 5 => 'Ab Dendriel', 6 => 'Rookgaard', 7 => 'Liberty Bay', 8 => 'Port Hope', 9 => 'Ankrahmun', 10 => 'Darashia', 11 => 'Edron', 12 => 'Svargrond', 13 => 'Yalahar', 14 => 'Farmine', 15 => 'Gray Beach', 16 => 'Roshamuul');
$config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php';
$config['site']['item_images_url'] = '/images/items/';
$config['site']['item_images_extension'] = '.gif';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.png';
# Create Account Options
$config['site']['one_email'] = true;
$config['site']['create_account_verify_mail'] = false;
$config['site']['verify_code'] = true;
$config['site']['email_days_to_change'] = 3;
$config['site']['newaccount_premdays'] = 365;
$config['site']['send_register_email'] = false;
# Create Character Options
$config['site']['newchar_vocations'] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'] = array(6);
$config['site']['max_players_per_account'] = 4;
# Emails Config
$config['site']['lost_acc'] = true; # LOST ACC? SIM (TRUE) OU NÃO (FALSE)
$config['site']['send_emails'] = false; # ENVIAR EMAILS? SIM (TRUE) OU NÃO (FALSE)
$config['site']['mail_address'] = "no-reply@.org"; # SEU EMAIL (TEM QUE SER GMAIL)
$config['site']['smtp_enabled'] = true; # NÃO MUDAR
$config['site']['smtp_host'] = "mail.tibiaold.org"; # COLOCAR 'smtp.gmail.com'
$config['site']['smtp_port'] = 25; # tenta a 25 mesmo, se não der tenta 465
$config['site']['smtp_auth'] = true; # não mudar
$config['site']['smtp_user'] = "no-reply@.org"; # SEU EMAIL (TEM QUE SER GMAIL)
$config['site']['smtp_pass'] = "@ZP?+PF]L@*="; # sua senha
# PAGE: whoisonline.php
$config['site']['private-servlist.com_server_id'] = 1;
/*
Server id on 'private-servlist.com' to show Players Online Chart (whoisonline.php page), set 0 to disable Chart feature.
To use this feature you must register on 'private-servlist.com' and add your server.
Format: number, 0 [disable] or higher
*/
# PAGE: characters.php
$config['site']['quests'] = array();
$config['site']['show_skills_info'] = true;
$config['site']['show_vip_storage'] = 0;
# PAGE: accountmanagement.php
$config['site']['send_mail_when_change_password'] = true;
$config['site']['send_mail_when_generate_reckey'] = true;
$config['site']['generate_new_reckey'] = false;
$config['site']['generate_new_reckey_price'] = 500;
# PAGE: guilds.php
$config['site']['guild_need_level'] = 100;
$config['site']['guild_need_pacc'] = false;
$config['site']['guild_image_size_kb'] = 50;
$config['site']['guild_description_chars_limit'] = 2000;
$config['site']['guild_description_lines_limit'] = 6;
$config['site']['guild_motd_chars_limit'] = 250;
# PAGE: adminpanel.php
$config['site']['access_admin_panel'] = 9999;
# PAGE: latestnews.php
$config['site']['news_limit'] = 6;
# PAGE: killstatistics.php
$config['site']['last_deaths_limit'] = 40;
# PAGE: team.php
$config['site']['groups_support'] = array(2, 3, 4, 5, 6);
# PAGE: highscores.php
$config['site']['groups_hidden'] = array(2, 3, 4);
$config['site']['accounts_hidden'] = array(1);
# PAGE: shopsystem.php
$config['site']['shop_system'] = true;
# PAGE: lostaccount.php
$config['site']['email_lai_sec_interval'] = 180;
# Layout Config
$config['site']['layout'] = 'tibiacom';
$config['site']['vdarkborder'] = '#505050';
$config['site']['darkborder'] = '#D4C0A1';
$config['site']['lightborder'] = '#F1E0C6';
$config['site']['download_page'] = false;
$config['site']['serverinfo_page'] = true;
Link para o comentário
Compartilhar em outros sites

  • 0

Tente mudar as barras

$config['site']['serverPath'] = "C:/Users/xDezenhox.xDezenho/Downloads/Tibia/10.82/server/";
$config['site']['useServerConfigCache'] = false;

Poê o servidor numa pasta local que seja facil acesso por exemplo

C:\Server

Link para o comentário
Compartilhar em outros sites

  • 0

Tente mudar as barras

$config['site']['serverPath'] = "C:/Users/xDezenhox.xDezenho/Downloads/Tibia/10.82/server/";
$config['site']['useServerConfigCache'] = false;
Poê o servidor numa pasta local que seja facil acesso por exemplo

C:\Server

 

 

Ja fiz isso e nada ta osso... pior que coloquei um gesior on so q da versao 8.6 agora os novos nao vai todos dao esse erro

Link para o comentário
Compartilhar em outros sites

  • 0

Posta seu config.lua.

-- Combat settings

-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"

worldType = "pvp"

hotkeyAimbotEnabled = true

protectionLevel = 1

killsToRedSkull = 3

killsToBlackSkull = 6

pzLocked = 60000

removeChargesFromRunes = true

timeToDecreaseFrags = 24 * 60 * 60 * 1000

whiteSkullTime = 15 * 60 * 1000

stairJumpExhaustion = 2000

experienceByKillingPlayers = false

expFromPlayersLevelRange = 75

 

-- Connection Config

-- NOTE: maxPlayers set to 0 means no limit

ip = "10.0.0.110"

bindOnlyGlobalAddress = false

loginProtocolPort = 7171

gameProtocolPort = 7172

statusProtocolPort = 7171

maxPlayers = 0

motd = "Welcome to The Monte Old Tibia!"

onePlayerOnlinePerAccount = true

allowClones = false

serverName = "Monte Old Tibia"

statusTimeout = 5000

replaceKickOnLogin = true

maxPacketsPerSecond = 25

 

-- Deaths

-- NOTE: Leave deathLosePercent as -1 if you want to use the default

-- death penalty formula. For the old formula, set it to 10. For

-- no skill/experience loss, set it to 0.

deathLosePercent = -1

 

-- Houses

-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality

housePriceEachSQM = 1000

houseRentPeriod = "never"

 

-- Item Usage

timeBetweenActions = 200

timeBetweenExActions = 1000

 

-- Map

-- NOTE: set mapName WITHOUT .otbm at the end

mapName = "map"

mapAuthor = "Orts"

 

-- Market

marketOfferDuration = 30 * 24 * 60 * 60

premiumToCreateMarketOffer = true

checkExpiredMarketOffersEachMinutes = 60

maxMarketOffersAtATimePerPlayer = 100

 

-- MySQL

mysqlHost = "localhost"

mysqlUser = "root"

mysqlPass = "so tirei a senha xD"

mysqlDatabase = "vanaheim"

mysqlPort = 3306

mysqlSock = ""

 

-- Misc.

allowChangeOutfit = true

freePremium = false

kickIdlePlayerAfterMinutes = 15

maxMessageBuffer = 4

emoteSpells = false

classicEquipmentSlots = false

 

-- Rates

-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml

rateExp = 5

rateSkill = 3

rateLoot = 2

rateMagic = 3

rateSpawn = 1

 

-- Monsters

deSpawnRange = 2

deSpawnRadius = 50

 

-- Stamina

staminaSystem = true

 

-- Scripts

warnUnsafeScripts = true

convertUnsafeScripts = true

 

-- Startup

-- NOTE: defaultPriority only works on Windows and sets process

-- priority, valid values are: "normal", "above-normal", "high"

defaultPriority = "high"

startupDatabaseOptimization = false

 

-- Status server information

ownerName = "Monte Old Tibia"

ownerEmail = ""

url = "https://xtibia.com/"

location = "Brazil"

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...