Just read i cant explain.......
#1

Ok soooo i'll try to explain............ I want when someone join systme to play with only one skin (ill put only one character...) but when i put to someone skin when he leave the server and join again i want to skin save and this player play again with latest used skin..... sorry for my bad english i hope you understand what i want.... THx in advance...
Reply
#2

This isn't script requests, but this is doable.


You just need an account system that includes a load function, that covers the skins.
Reply
#3

Read this: https://sampforum.blast.hk/showthread.php?tid=574725

You save the player's skin upon disconnection, and you load it upon connection and you set it upon spawning. Saving methods range from files to databases:

Y_INI: https://sampforum.blast.hk/showthread.php?tid=570957 and https://sampforum.blast.hk/showthread.php?tid=570912
SQLite: https://sampforum.blast.hk/showthread.php?tid=449536
MySQL: https://sampforum.blast.hk/showthread.php?tid=56564

Don't expect SQL to be a plug-and-play thing though. It's a language on its own and requires you to learn its syntax, conventions and errors/warnings.
Reply
#4

you can use y ini or sqllite or mysql i prefer mysql 'cause its easy and faster
Reply
#5

ok i install mysql but still same.... when server connect they send me in player choose menu......... ?
Reply
#6

You can't just install mysql , you'll have to create a saving system USING mysql and a database.
I prefer you go with y_ini since mysql is really advanced stuff for beginners.
Reply
#7

I'll quote myself:
Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Don't expect SQL to be a plug-and-play thing though. It's a language on its own and requires you to learn its syntax, conventions and errors/warnings.
I was typing a too long of a post to only realize that it's better to just give you a bunch of tutorials and informative pages instead.

Here are a few tutorials which you SHOULD read if you're going to stick with SQL:
https://sampforum.blast.hk/showthread.php?pid=3463865#pid3463865
https://sampforum.blast.hk/showthread.php?tid=129183
https://sampforum.blast.hk/showthread.php?tid=391920
https://sampforum.blast.hk/showthread.php?tid=290257
https://sampforum.blast.hk/showthread.php?tid=159785

Many of these have outdated syntax, so I recommend using the first link for syntax reference and of course the wiki page: https://sampwiki.blast.hk/wiki/MySQL/R33

If you don't want to depend on a server for MySQL, then read a tutorial about SQLite:
https://sampforum.blast.hk/showthread.php?tid=449536
The wiki page: https://sampwiki.blast.hk/wiki/SQLite

For general SQL support, read the documentation:
https://dev.mysql.com/doc/
https://www.sqlite.org/docs.html
Reply
#8

i dont understand nothing of these and my english is bad so that im here and search someone to help me ..... im a noob and i just start learn create this things.... :/ even tutorial is hard for me because i dont know what to do .....
Reply
#9

If you just started to learn scripting, MySQL is not recommended for newbies.
The Scripting Help section is made for when you need help or have errors/warning in your code.
Post here instead: https://sampforum.blast.hk/showthread.php?tid=447813
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)