[Sample] Sample SqMod Script

Anish87

  • Newbie
  • Posts: 16
[Sample] Sample SqMod Script
«  »
I had been learning SqMod lately, so I thought why not create a sample script to make it easier for those who wanna start using SqMod but don't know where to start. So, I created this...

About
Database: MySQL
Scripter: Anish
Thanks to: SLC, Xmair, Dizzaster, Spiller and Luckshya
The scripts don't contain much features basic features and most events, necessary ones, related to player, vehicle entities. Commands like register, login, autologin and stats. I added the commands just to give an idea of creating commands in the native squirrel plugin style.

Here's the link to the repository: SqDM


Rupinder

  • Newbie
  • Posts: 20
Vice City Servers
https://bit.ly/2Uw2usM

DizzasTeR

  • VC:MP Beta Tester
  • Infinite loops defy infinity by overflowing memory
  • Posts: 1,167
[Sample] Re: Sample SqMod Script
« Reply #2,  »
Why is everything set to Execute in the ini file, just use Compile if you don't need a script to add new fields to entity classes.

Anish87

  • Newbie
  • Posts: 16
[Sample] Re: Sample SqMod Script
« Reply #3,  »
Quote from Rupinder on November 18th, 02:12 PM
You need to have necessary dependencies to run the plugin... Download all vcredist versions and try. You will need the MySQL libraries as well.
[Sample] Re: Sample SqMod Script
« Reply #4,  »
Quote from DizzasTeR on November 18th, 03:46 PM
Why is everything set to Execute in the ini file, just use Compile if you don't need a script to add new fields to entity classes.
Um yeah, I just used Execute because I executed one event at first and later I copied it to load other scripts as well...

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,807
[Sample] Re: Sample SqMod Script
« Reply #5,  »
Quote from Anish87 on November 19th, 03:01 AM
Quote from Rupinder on November 18th, 02:12 PM
You need to have necessary dependencies to run the plugin... Download all vcredist versions and try. You will need the MySQL libraries as well.
AFAIK MySQL is embedded in the plugin (on Windows). So it is either compiled with the plugin or non existent at all. You don't need something else other than the DLL itself. On Linux it is another story as you just need to install MySQL from your package manager. Assuming it matches the one from the plugin.

As for runtime dependencies. People should learn that they need Visual C++ Redistributable Runtimes All-in-One for any kind of program. Not just this.
.

Anish87

  • Newbie
  • Posts: 16