SA-MP Forums Archive
Binary logic - first time command usage <SQLite> - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Binary logic - first time command usage <SQLite> (/showthread.php?tid=665176)



Binary logic - first time command usage <SQLite> - Mobtiesgangsa - 24.03.2019

is there a way for some commands in my script for newly players when they type a command for the first time (either they responded with 1/0) it registers into SQLite query that player `player` has allready typed that command like the /shop command and it appear a thanks message for using this command for first time, then the shop menu opened and player can buy what ever hi/she wants.

on the SQL if its one no need for the message to appear onther time since he allready did.


thanks in advice and help best regards,
ill give even more details if nescessary,

sorry for bad grammar


Re: Binary logic - first time command usage <SQLite> - Mobtiesgangsa - 26.03.2019

https://i.imgur.com/4rha08W.jpg

Y_Less Will this schema be any of a good use?

Example the one column from the second table example: `cmdusage` will update with 1 if cmdone has been used
as for the other table `players` it will specify that column a text or either a integer/numeric adrress.