Stanley1212 Posted August 31, 2014 Share Posted August 31, 2014 (edited) Config file -> http://pastebin.com/aFVPZtQR <--- The one i have the Syntax errors from Index -> http://pastebin.com/nYpfb2zW <--- So far no errors I have no clue at all, any help? This is not my code, i just edit it. Im not really good at PHP you can say... :3 Edited August 31, 2014 by Stanley1212 Quote Link to comment Share on other sites More sharing options...
lawless Posted August 31, 2014 Share Posted August 31, 2014 (edited) You do the admin arrays very well, then on the rules arrays you switch to another "technique" which probably does give you the error. Assign the values the way you did before and all should run fine. $rules_column1 = [ "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ]; // What shall work $rules_column1 = array( "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ); Edit: Too many quotes have been used Edited August 31, 2014 by lawless Quote Link to comment Share on other sites More sharing options...
Stanley1212 Posted August 31, 2014 Author Share Posted August 31, 2014 You do the admin arrays very well, then on the rules arrays you switch to another "technique" which probably does give you the error. Assign the values the way you did before and all should run fine. $rules_column1 = [ "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ]; // What shall work $rules_column1 = array( "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ); Well, I did that $rules_column1 = array(" "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises"); $rules_column2 = array(" "Do not blow up other players props on purpose", "Respect all players, not only admins", "No asking for ranks, we will give ranks when we feel like it"); $rules_column3 = array(" "Do not kill people who are building on purpose", "Do not kill in God or in Noclip", "Do not Spawnkill, it is annoying and people will have temper issues", "Have a flawless experience"); ?> But now I get an diffrent syntax error "syntax error unexpected 'No' (T_STRING)expecting')' on ---> "No prop pushing, or prop killing", Quote Link to comment Share on other sites More sharing options...
Stanley1212 Posted August 31, 2014 Author Share Posted August 31, 2014 You do the admin arrays very well, then on the rules arrays you switch to another "technique" which probably does give you the error. Assign the values the way you did before and all should run fine. $rules_column1 = [ "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ]; // What shall work $rules_column1 = array( "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ); Well, I did that $rules_column1 = array(" "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises"); $rules_column2 = array(" "Do not blow up other players props on purpose", "Respect all players, not only admins", "No asking for ranks, we will give ranks when we feel like it"); $rules_column3 = array(" "Do not kill people who are building on purpose", "Do not kill in God or in Noclip", "Do not Spawnkill, it is annoying and people will have temper issues", "Have a flawless experience"); ?> But now I get an diffrent syntax error "syntax error unexpected 'No' (T_STRING)expecting')' " on ---> "No prop pushing, or prop killing", Quote Link to comment Share on other sites More sharing options...
Solution Digitizer Posted August 31, 2014 Solution Share Posted August 31, 2014 (edited) I didnt get this error, I tried this on my page and it works without errors $rules_column1 = array( "No prop pushing, or prop killing", "No building in the Skybox", "No prop spamming", "No thruster or turret noises" ); foreach($rules_column1 as $rule){ echo $rule . "<br>"; } /* The Result was No prop pushing, or prop killing No building in the Skybox No prop spamming No thruster or turret noises */ It should have told you which line of code is generating error, note if it is the same line where "No Pro..." exists or is it where you are getting values with a loop? Edited August 31, 2014 by Digitizer Quote Link to comment Share on other sites More sharing options...
ginerjm Posted August 31, 2014 Share Posted August 31, 2014 Read your code very carefully and you will see the problem is two double quotes in succession. 1 Quote Link to comment Share on other sites More sharing options...
Stanley1212 Posted August 31, 2014 Author Share Posted August 31, 2014 (edited) Thanks guys! It works, but theres something weird going up in the upper left corner at the start? http://encoregaming.t15.org/ edit - - - nvm Edited August 31, 2014 by Stanley1212 Quote Link to comment Share on other sites More sharing options...
Digitizer Posted August 31, 2014 Share Posted August 31, 2014 (edited) I am glad it worked mate any that fading out seems to be a JS problem, e.preventDefault() maybe? P.S: you got nice music on Edited August 31, 2014 by Digitizer Quote Link to comment Share on other sites More sharing options...
Stanley1212 Posted August 31, 2014 Author Share Posted August 31, 2014 Ah thanks, haha yeah pretty cool music xD Quote Link to comment Share on other sites More sharing options...
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.