Jump to content
  • 0

error getvariableofnpc cant find


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.06
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

I'm trying to use this script but it keeps giving this error, I would like to make it work like it used to. already installed the SQL files

 

 

erro pk title.png

gd_pk_title.sql GD_PK_TITLE_2.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/18/20
  • Last Seen:  

On 4/18/2022 at 6:11 PM, IsabelaFernandez said:

I'm trying to use this script but it keeps giving this error, I would like to make it work like it used to. already installed the SQL files

 

 

erro pk title.png

gd_pk_title.sql 156 B · 1 download GD_PK_TITLE_2.txt 2.84 kB · 6 downloads

error is in insert

table:

CREATE TABLE IF NOT EXISTS `gd_pk_title` (
  `char_id` int(11) unsigned NOT NULL,
  `var` int(11) unsigned NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

no default value for fields, so you need to inform all fields in an
*insert*, as they are defined as *NOT NULL*, in table.

query_sql "SELECT `char_id` FROM `GD_PK_TITLE` WHERE `char_id` = "+@GDCID+"",@GDTID;
    if( !@GDTID )
//ERROR        query_sql "INSERT `GD_PK_TITLE` VALUES("+@GDCID+",1)";
            query_sql "INSERT INTO `GD_PK_TITLE` FIELDS (`char_id,`var`) VALUES("+@GDCID+",1)";
    else
        query_sql "UPDATE `GD_PK_TITLE` SET `var` = `var`+1 WHERE `char_id` = "+@GDCID+"";

Edited by millu
Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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.

×
×
  • Create New...