Jump to content
  • 0
IsabelaFernandez

error getvariableofnpc cant find

Question

1 answer to this question

Recommended Posts

  • 0
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` = "[email protected]+"",@GDTID;
    if( [email protected] )
//ERROR        query_sql "INSERT `GD_PK_TITLE` VALUES("[email protected]+",1)";
            query_sql "INSERT INTO `GD_PK_TITLE` FIELDS (`char_id,`var`) VALUES("[email protected]+",1)";
    else
        query_sql "UPDATE `GD_PK_TITLE` SET `var` = `var`+1 WHERE `char_id` = "[email protected]+"";

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.