I have a doubt about how to use the command 'query_sql' to check if the entered name of the supposed character exists, but I don't know how to even make that query :C
Please help.
I have this at the moment:
if(query_sql("SELECT `name` FROM `char` WHERE `name` = '"+escape_sql(.@Winner_Name$)+"'",.@Acc_ID)){ mes .npc$;
mes "Awesome, now put the ^aa0000Item ID^000000 of the item you want to be the prize for the player.";
But when I don't put any correct name on the input, it still let me continue with the script :C
Please help! What is the correct query_sql to ask for player name D:!
Question
Echoes
Hello,
I have a doubt about how to use the command 'query_sql' to check if the entered name of the supposed character exists, but I don't know how to even make that query :C
Please help.
I have this at the moment:
But when I don't put any correct name on the input, it still let me continue with the script :C
Please help! What is the correct query_sql to ask for player name D:!
Edited by Echoes6 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.