Jump to content

Recommended Posts

  • 1 month later...
Posted

UPDATE 1.4.1

Changelogs:

- Added Answer feature for GMs

- Added "My Requests" for player

__________________________________________________________________________

can you make 1 but txt i not using sql pls make 1 for txt ty

Sry I won't support a txt version for this script.

  • 1 month later...
  • 1 month later...
Posted (edited)
 DB Error - Field 'answer' doens't have a default value? i'm using 3CeaM/eathena any help ?s
Edited by vBrenth
Posted

 DB Error - Field 'answer' doens't have a default value? i'm using 3CeaM/eathena any help ?s
[/quote]
try change
[code]
`answer` TINYTEXT NOT NULL
[/code]

into this

[code]
`answer` TINYTEXT NOT NULL DEFAULT ''
[/code]

Posted

previous versions working fine, but got prob with this 1.4.1

 DB Error - Field 'answer' doens't have a default value?

same, but using rAthena ofc.

read emistry answer

read the post after emistry's answer. xD

Emistry it gives me new error..

saying 'answer' cannot have default value.

Posted (edited)

vBrenth stated it sir..

 DB Error - Field 'answer' doens't have a default value? i'm using 3CeaM/eathena any help ? 

but mine, ofc, is rAthena..

Emistry it gives me new error..

saying 'answer' cannot have default value.

Edited by Sperm
Posted

To fix your 'answer' problem,

Replace

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"')";

With

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`,`answer`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"', 'Not Yet Answered')";

The problem is when the INSERT query is called, the `answer` field is not being filled in. (It is Null)

I suggest in the future revisions, `answer` should be able to be left null.

  • Upvote 1
Posted

To fix your 'answer' problem,

Replace

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"')";

With

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`,`answer`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"', 'Not Yet Answered')";

The problem is when the INSERT query is called, the `answer` field is not being filled in. (It is Null)

I suggest in the future revisions, `answer` should be able to be left null.

good idea, I think I will add this.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...