Base MySQL GM R39 caching -
Chillstep - 19.06.2014
Hello. Dear reader, I made this GameMode in 5 minutes, the reason for creating this GameMode is because some people do not know how to do simple stuff like logging / registering dialogs.
Features:
Has four dialogs at the moment which are:
1 - Logging
2 - Registering
3 - Gender Dialog
4 - Age.
Custom callbacks: LoadPlayer and SavePlayer.
LoadPlayer: It pulls the player's skin, health, armour and last known position from the MySQL Database and sets it ingame.
SavePlayer: When a player disconnects, their skin, health, armour and last known position gets stored in the MySQL Database.
So if you want to make a GameMode with MySQL and don't know how to do simple stuff, then this is the GameMode for you to start with.
Re: Base MySQL GM R39 caching -
YoungKris - 19.06.2014
nice
Re: Base MySQL GM R39 caching -
Mckarlis - 19.06.2014
This is nice and simple.
Re: Base MySQL GM R39 caching -
daniel radcliff - 19.06.2014
hi how to add tutorial lines in script actully I have to script one is with tutorial but this one is bug and second one is working but have no tutorial I wanna add tutorial to working one help me guys my Skype is : yoyoparam1
Re: Base MySQL GM R39 caching -
Chillstep - 19.06.2014
Quote:
Originally Posted by daniel radcliff
hi how to add tutorial lines in script actully I have to script one is with tutorial but this one is bug and second one is working but have no tutorial I wanna add tutorial to working one help me guys my Skype is : yoyoparam1
|
I'd suggest you to look at my tutorial
here.
Re: Base MySQL GM R39 caching -
zEd69 - 21.06.2014
Nice Script.
Re: Base MySQL GM R39 caching -
MadMast - 26.06.2014
Can upload version without encryption passwords?
Re: Base MySQL GM R39 caching -
Infinity - 26.06.2014
Quote:
Originally Posted by MadMast
Can upload version without encryption passwords?
|
Why!? Why would you want to do that!? Do you WANT to put your players at risk!?
Re: Base MySQL GM R39 caching -
MadMast - 26.06.2014
Quote:
Originally Posted by Infinity
Why!? Why would you want to do that!? Do you WANT to put your players at risk!?
|
no other method will be implemented encryption.
Re: Base MySQL GM R39 caching -
MadMast - 26.06.2014
mod does not work, does not show
dialogs when connecting. but the
code would be more like these.
Re: Base MySQL GM R39 caching -
friezakinght - 26.06.2014
Nice script for a Gamemode Base, 10/10
Re: Base MySQL GM R39 caching -
MadMast - 26.06.2014
Quote:
Originally Posted by friezakinght
Nice script for a Gamemode Base, 10/10
|
did you get it working? I for some reason does not display dialogs plugins are all connected to all of MySQL also connected.
Re: Base MySQL GM R39 caching -
MadMast - 27.06.2014
how to fix? Novels I have to connect does not show ....
Re: Base MySQL GM R39 caching -
Barnwell - 27.06.2014
very simple but nice!
Re: Base MySQL GM R39 caching -
Oksenchuk - 13.07.2014
Quote:
Originally Posted by MadMast
did you get it working? I for some reason does not display dialogs plugins are all connected to all of MySQL also connected.
|
Same...
Re: Base MySQL GM R39 caching -
MadMast - 20.07.2014
found a solution that would make things work, you need to replace it
PHP Code:
if(resultid != THREAD_NO_RESULT) return cache_get_data(Rows, Fields);
it
PHP Code:
if(resultid != THREAD_NO_RESULT)
{
cache_get_data(Rows, Fields);
}
Re: Base MySQL GM R39 caching -
Thomixio - 20.07.2014
Quote:
Originally Posted by MadMast
found a solution that would make things work, you need to replace it
PHP Code:
if(resultid != THREAD_NO_RESULT) return cache_get_data(Rows, Fields);
it
PHP Code:
if(resultid != THREAD_NO_RESULT)
{
cache_get_data(Rows, Fields);
}
|
Thanks, that worked. However, nothing is getting saved except your level. I have added Age to the database manually as it wasn't included, but nothing is getting saved except the password, the name and the level. Do we really have to add e.g SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); etc? What shall we do with the gender, no matter if I choose male or female it will stay at 0 which is 0 as far as I know. There gotta be somethin' wrong? Am I the only one who got this problem?
Re: Base MySQL GM R39 caching -
KayJ - 20.07.2014
are u sure you create folders in scriptfiles
Re: Base MySQL GM R39 caching -
Thomixio - 20.07.2014
It's MySQL it all should be saved there?
Re: Base MySQL GM R39 caching -
MadMast - 20.07.2014
Quote:
Originally Posted by Thomixio
Thanks, that worked. However, nothing is getting saved except your level. I have added Age to the database manually as it wasn't included, but nothing is getting saved except the password, the name and the level. Do we really have to add e.g SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); etc? What shall we do with the gender, no matter if I choose male or female it will stay at 0 which is 0 as far as I know. There gotta be somethin' wrong? Am I the only one who got this problem?
|
in this basis, there is no system sohoaneniya accounts, you have to write it yourself.