Jump to content
  • 0

help sql V4P


NakedWolf

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

am using this script 

http://pastebin.com/raw.php?i=jwvq247A

by @Emistry

but after i receive the vote points from npc in-game am able to re vote again but i had set the vote timing is ones in 12 hours
and even the accumulated vote point on the webside docent becomes 0 after receiving the point in-game
 
this pic is after voting

5918516b8cb5c_aftervoting.jpg.3216c95dd72af6eb51f25d0786725dff.jpg

after i redeem points in-game

afterreedmed.jpg.93b05953c4743f37be446a4a1ea60be2.jpg

its like this.

after i redeem the points in- game am able to vote again with out waiting 12 hours on the website if i dint redeem the points in -game i am not able to vote

 

hope some one can help me 

Edited by NakedWolf
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

query_sql( "UPDATE `cp_votes` SET `credits` = 0 WHERE `account_id`='"+getcharid(3)+"'" );

 

Edited by Emistry
  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

@Emistry i changed it as you said after that. Am able to redeem the points again and again uisng the npc it docent becomes zero

and also on my console i get a Warning : incorrect use of "close: command!

 

this fixed my problem

 

query_sql( "UPDATE `cp_votes` SET `credits` = 0 WHERE `account_id`='"+getcharid(3)+"'" );

 thank you so much @Emistry

Edited by NakedWolf
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

Some please help

Bump

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

2 hours ago, NakedWolf said:

and also on my console i get a Warning : incorrect use of "close: command!

This shows up when you did not do any prior "mes" commands before closing it.

What I would suggest is to put something like 

mes "You have successfully retrieved your Vote points!";

before "close"

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

1 hour ago, Ninja said:

This shows up when you did not do any prior "mes" commands before closing it.

What I would suggest is to put something like 


mes "You have successfully retrieved your Vote points!";

before "close"

that fixed the problem thank you @Ninja

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

You are welcome. Cheers.

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