• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

(Znote AAC) character profile error

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
272
Solutions
4
Reaction score
66
I have been having this error everytime i search for a player.

cprofile.JPG

I got to the header and this is what that area looks like.hhh.JPG

Why it says is cannot re-declare. Please don't just give me the answer let me know what the system is asking for i want to learn also :/
 
Solution
Somewhere the function "user_count_characters" has been created already and its saying you are trying to make it again.
Do a search in your whole www folder for "user_count_characters".

You should put your functions in a "library", I haven't had a full search of znote but i did find this which has random functions in it.

Then you call your functions depending on what you need.
Somewhere the function "user_count_characters" has been created already and its saying you are trying to make it again.
Do a search in your whole www folder for "user_count_characters".

You should put your functions in a "library", I haven't had a full search of znote but i did find this which has random functions in it.

Then you call your functions depending on what you need.
 
Solution
Thanks you very man i fixed the problem, and alearned something new :p. Yes it was running Twice. The Webpage I'm setting up is running the characterprofile.php thru a "Sub" folder in the layout folder. The website was also reading the characterprofile.php in my "htdocs" folder. in oder to cancel the layout to read the "characterprofile.php" from the sub folder, i had to go to the "sub.php" and put it as a "false" now the website only reads the one in the htdocs folder.

Sub.php
hh.JPG
Thanks man!
 
Back
Top