I've tried doing a script on my own on getting information from the SQL DB, but I can't seem to make it work. I don't know how the problem is and I've read almost every tutorial and examples available, I think I have trouble comprehending these simple 'query_sql' codes.
prontera,158,177,4 script v4p 123,{
function getPoints;
set .@points,getPoints(getcharid(3));
mes ""+.@points+"";
close;
end;
function getPoints {
set .@account_id,getarg(0);
query_sql ("SELECT `credits` FROM `cp_votes` WHERE account_id="+.@account_id+" LIMIT 1",.@points);
}
}
I don't what's the problem with this but it won't get the info from my SQL DB.
Here's a screenshot of my cp_vote on my SQL DB.
Please help. If you can make me a script that can check/delete points, I will be much indebted.
Question
noheaven
I've tried doing a script on my own on getting information from the SQL DB, but I can't seem to make it work. I don't know how the problem is and I've read almost every tutorial and examples available, I think I have trouble comprehending these simple 'query_sql' codes.
I don't what's the problem with this but it won't get the info from my SQL DB.
Here's a screenshot of my cp_vote on my SQL DB.
Please help. If you can make me a script that can check/delete points, I will be much indebted.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.