DELETE-ME-NOW- Posted September 4, 2010 Share Posted September 4, 2010 While i was changing my game so that you can only view the EXP bar in a certain city, i encountered this problem...: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING The statement i was using is : if($ir['location']==9) { <img src=bar_left_purp.gif height=13><img src=barpurple.gif width=$brperc height=13><img src=barred.gif width=$bropp height=13><img src=bar_fil_end.gif height=13> [b]EXP:[/b] {$experc}% } Wheres the error there? Thanks for any help! Quote Link to comment Share on other sites More sharing options...
furn355 Posted September 4, 2010 Share Posted September 4, 2010 if($ir['location']==9) { echo' <img src=bar_left_purp.gif height=13><img src=barpurple.gif width=$brperc height=13><img src=barred.gif width=$bropp height=13><img src=bar_fil_end.gif height=13> EXP: {$experc}% '; } Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted September 4, 2010 Author Share Posted September 4, 2010 Exact same probme with that too :( Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Quote Link to comment Share on other sites More sharing options...
Equinox Posted September 4, 2010 Share Posted September 4, 2010 if($ir['location']==9) { echo' <img src=bar_left_purp.gif height=13><img src=barpurple.gif width='.$brperc.' height=13><img src=barred.gif width='.$bropp.' height=13><img src=bar_fil_end.gif height=13> [b]EXP:[/b] '.$experc.'% '; } Yes, I know there are other problems, etc..... I just fixed the problem at hand. Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted September 4, 2010 Author Share Posted September 4, 2010 same again :( Quote Link to comment Share on other sites More sharing options...
Djkanna Posted September 4, 2010 Share Posted September 4, 2010 Close the current echo/print before opening the if statement. Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted September 4, 2010 Share Posted September 4, 2010 if this is in the header what you need todo is in the userdata function look for the print<<< OUT that is under the $bgcolor and change that to echo" then look for the and under that there should be a OUT; and change that to "; i had todo the same when need to add if statements in there Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted September 4, 2010 Author Share Posted September 4, 2010 That sounds about right skalman Ill try it and post here :) Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted September 4, 2010 Share Posted September 4, 2010 kk if not you can add me on msn if you want and ill see what i can do Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted September 4, 2010 Author Share Posted September 4, 2010 Ok. I done what you sayed, now im getting unexpected t_lumber or something :( Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted September 4, 2010 Share Posted September 4, 2010 if you add me on msn ill help u out its [email protected] or if not post your code up here Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted September 4, 2010 Author Share Posted September 4, 2010 Thanks. Got it fixed thanks to skalman. Thanks bud 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.