The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error trying to add info into data base
Author Message
carcara
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #1
Error trying to add info into data base
hi there. long time since i was on a sphere server forum.

Well im trying to insert info into the database table and im getting this error.

07:26:ERROR:(custom items 1.scp,6)Can't resolve <ACCOUNT>
07:26:ERROR:(custom items 1.scp,6)Can't resolve <MEMORYFINDTYPE.memory_guild.LINK.NAME>
07:26:ERROR:(custom items 1.scp,6)Can't resolve <KILLS>
07:26:ERROR:(custom items 1.scp,6)Can't resolve <FAME>
07:26:ERROR:(custom items 1.scp,6)Can't resolve <KARMA>

i try <serv.account> ,<server.account><src.account> and even <char.account> and same error.

(edited: ok i fix most of the error using <account.name> and on sql only shows the server name. how can it be done to add my players accounts to the sql? )

If someone can plz tell me how to fix it, ill apreciated, thanks in advance!
(This post was last modified: 04-16-2015 09:55 PM by carcara.)
04-16-2015 08:41 PM
Find all posts by this user Like Post Quote this message in a reply
Sharlenwar
Journeyman
*

Posts: 55
Likes Given: 0
Likes Received: 3 in 3 posts
Joined: May 2012
Reputation: 0



Post: #2
RE: Error trying to add info into data base
I suggest taking a look at this: http://wiki.sphere.torfo.org/index.php/Using_MySQL

It might help you.

-= Meh =-
04-17-2015 12:06 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Error trying to add info into data base
You should post your SQL query by the way
04-17-2015 01:15 AM
Find all posts by this user Like Post Quote this message in a reply
Sharlenwar
Journeyman
*

Posts: 55
Likes Given: 0
Likes Received: 3 in 3 posts
Joined: May 2012
Reputation: 0



Post: #4
RE: Error trying to add info into data base
True, post your code so we can have a look at how you are running your query.

-= Meh =-
04-17-2015 01:24 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: Error trying to add info into data base
It looks like this is called on an item, which doesn't have kills,karma, etc definitions... hence the error.
04-17-2015 06:10 AM
Find all posts by this user Like Post Quote this message in a reply
carcara
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #6
RE: Error trying to add info into data base
i was following exaclty the spherewiki instalation and just control copy and paste and didnt get nothing on the db. i also try searching for some documentation on the forum to help instalation and info how to get account from external db and save to sphere accounts but couldnt find nothing on it.
04-17-2015 10:57 AM
Find all posts by this user Like Post Quote this message in a reply
carcara
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #7
RE: Error trying to add info into data base
Ok, what i really want is to know how to connect to my sphere account and add the info from my database there. like i query info from my database and insert into sphere account. get it the text from db than insert int sphere. i search the forum and sphere wiki and nothing, i even google for it. Maybe some of you pass by this info and know the topic name or the keywords for the topic for search.the part of getting info and inserting on my database i know how to do. just dont know how to insert in sphere acc. if someone can plz show me the way ill apreciate again.
(This post was last modified: 04-18-2015 08:01 PM by carcara.)
04-18-2015 07:51 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #8
RE: Error trying to add info into data base
There is not a way to do a 'make sphere change this' with SQL (you can do it using sockets, telnet), however there is another way that may satisfy you:

When I had my shard running what I did was to make sphere check a database each minute to seek new account and add them, to do this I had a table only for account's that had to be created (and another one with the already created)... you can create on the first table and move it to the second when Sphere create it ... or you can also (as another example) have all accounts in the same table but adding a new field, something like 'Created' 1/0. I can give you more ideas but these are the most simple I can think of now.
04-18-2015 10:39 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)