MySQL example script
#1

I was messing around with MySQL for a bit, and I realized there was no basic login/registration scripts (correct me if I'm wrong), so I decided to release this script - I was going to work on it and make a whole new GM, however I changed my mind, so I'm going to release it here. It may not exactly be great code, but hey, it's still code.

http://files.uploadffs.com/d/6/0d566b94/MySQL.pwn
http://pastebin.com/8J46Xiy4 (pastebin PWN)

It has a locations system included, as an example of how to load things etc. It's not exactly finished, but it's a good base IMO.

MYSQL DUMP (ignore the useless tables or delete them):

http://pastebin.com/fnNGeFqQ

There's an incomplete tutorial provided as well.

THIS USES STRICKENKID'S MYSQL PLUGIN! http://forum.sa-mp.com/index.php?topic=148182.0

I highly advise against using this - use another script, this uses inefficient methods that I learned when I first picked up MySQL in PAWN.
Reply
#2

not bad good job
Reply
#3

Quote:
Originally Posted by Kinto
not bad good job
Thanks sir.
Reply
#4

I know that i will use it! But i don\'t know when and why..
Thanks!
Reply
#5

Quote:
Originally Posted by armyoftwo
\'
Why are you escaping a string? D:
Reply
#6

Very nice work, might use this as a base.
Reply
#7

Quote:
Originally Posted by FreddoX [BINMAN
]
Quote:
Originally Posted by armyoftwo
\\\'
Why are you escaping a string? D:
I have some laptop prob\'s.. you know.
Reply
#8

Quote:
Originally Posted by Norn [BINMAN
]
Very nice work, might use this as a base.
Awesome + Thanks.

Quote:
Originally Posted by armyoftwo
Quote:
Originally Posted by FreddoX [BINMAN
]
Quote:
Originally Posted by armyoftwo
\\\'
Why are you escaping a string? D:
I have some laptop prob\'s.. you know.
I see, I intended it as a nerdy joke...
Reply
#9

I don't have that much MySQL knowledge, so this should boost my MySQL knowledge. Good Stuff.
Reply
#10

Nice work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)