[GameMode] Base MySQL GM R39 caching
#1

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.
Reply
#2

nice
Reply
#3

This is nice and simple.
Reply
#4

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
Reply
#5

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.
Reply
#6

Nice Script.
Reply
#7

Can upload version without encryption passwords?
Reply
#8

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!?
Reply
#9

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.
Reply
#10

mod does not work, does not show
dialogs when connecting. but the
code would be more like these.
Reply
#11

Nice script for a Gamemode Base, 10/10
Reply
#12

Quote:
Originally Posted by friezakinght
View Post
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.
Reply
#13

how to fix? Novels I have to connect does not show ....
Reply
#14

very simple but nice!
Reply
#15

Quote:
Originally Posted by MadMast
View Post
did you get it working? I for some reason does not display dialogs plugins are all connected to all of MySQL also connected.
Same...
Reply
#16

found a solution that would make things work, you need to replace it

PHP Code:
if(resultid != THREAD_NO_RESULT) return cache_get_data(RowsFields); 
it

PHP Code:
if(resultid != THREAD_NO_RESULT)
       {
            
cache_get_data(RowsFields);
       } 
Reply
#17

Quote:
Originally Posted by MadMast
View Post
found a solution that would make things work, you need to replace it

PHP Code:
if(resultid != THREAD_NO_RESULT) return cache_get_data(RowsFields); 
it

PHP Code:
if(resultid != THREAD_NO_RESULT)
       {
            
cache_get_data(RowsFields);
       } 
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?
Reply
#18

are u sure you create folders in scriptfiles
Reply
#19

It's MySQL it all should be saved there?
Reply
#20

Quote:
Originally Posted by Thomixio
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)