DELETE-ME-NOW- Posted September 4, 2010 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
furn355 Posted September 4, 2010 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
DELETE-ME-NOW- Posted September 4, 2010 Author 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
Equinox Posted September 4, 2010 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
Djkanna Posted September 4, 2010 Posted September 4, 2010 Close the current echo/print before opening the if statement. Quote
corruptcity || skalman Posted September 4, 2010 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
DELETE-ME-NOW- Posted September 4, 2010 Author Posted September 4, 2010 That sounds about right skalman Ill try it and post here :) Quote
corruptcity || skalman Posted September 4, 2010 Posted September 4, 2010 kk if not you can add me on msn if you want and ill see what i can do Quote
DELETE-ME-NOW- Posted September 4, 2010 Author Posted September 4, 2010 Ok. I done what you sayed, now im getting unexpected t_lumber or something :( Quote
corruptcity || skalman Posted September 4, 2010 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
DELETE-ME-NOW- Posted September 4, 2010 Author Posted September 4, 2010 Thanks. Got it fixed thanks to skalman. Thanks bud Quote
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.