- 0
Sign in to follow this
Followers
0
How to check permanent account variable using query_sql?
Asked by
Lord Ganja
-
Recently Browsing 0 members
No registered users viewing this page.

How to check permanent account variable using query?
I wanted to check how much #PK_Points does a player have using bindatcmd but i don't know how to use query_sql
command: @checkpkpoints <player name> // Tried to create this script but I got errors xD
if ( set( .@nb, query_sql("SELECT account_id, value FROM acc_reg_num_db WHERE account_id="+getcharid(3,.@atcmd_parameters$[0])+" AND key='#PK_Points', .@aid, .@points) ) ) { if( !.@nb ) { message strcharinfo(0),"This only works on players who have PK Points"; end; } dispbottom .@points; }Is it also possible to check if the attached <player name> is online/offline?
Like if the player is offline it will say
Help me please. Thanks in advance!
Share this post
Link to post
Share on other sites