SA-MP Forums Archive
Mysql Help! - 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: Mysql Help! (/showthread.php?tid=648448)



Mysql Help! - RODELA - 22.01.2018

Can Anyone Help With MySql How I will Save Player Information,pname,isplayeradmin,Score,Money on mysql?i have mysql server.But i dont no where to put.

i know this codes

#define MySQL_HOST "localhost" //This will connect you to your local host
#define MySQL_USER "root" //default phpMyAdmin username
#define MySQL_PASS " " //default phpMyAdmin password is nothing, until you change it!
// -------> IMPORTANT LINE < -----------//
#define MySQL_DB "sa-mp" //Now here you have to put your database's name.

but how will i save accounts? pass,username,score,money?



Re: Mysql Help! - XavierJ - 22.01.2018

You look like starting to script, i don't suggest you to use MySQL...
Dini for a starter, and that is the one i use too, cuz MySQL is kinda confusing in SA:MP.


Re: Mysql Help! - Mobtiesgangsa - 22.01.2018

if you want to make your script easier please follow this link:

https://sampforum.blast.hk/showthread.php?tid=606930

it also has a example script `gamemode`

and install XAMPP

i hope it helped you for easy way how to script in mysql