Posts: 55
Threads: 16
Joined: Mar 2009
Reputation:
0
Hi all,
I have edited GodFather and I want to edit it. It's using .ini's now. I want it to use mySQL database.
CW-RP or Moderntopia are working awesome, but here I have translated script.
Is it a hard way to edit it?
Can somebody show me how to do it?
Thanks in advance,
Kacper
Posts: 453
Threads: 30
Joined: Feb 2009
Reputation:
0
Its diffucult to make an non based mysql scipt to an based mysql script.
You could try to make an new base mysql scipt and then using ideas and parts of coding of the GF scipt to your
mysql scipt. Try to ask the maker of Modern Topia
Posts: 219
Threads: 9
Joined: Dec 2007
Reputation:
0
i am currently doing this right now for a ~35k long gm. What i am doing is getting all of the fields from the sql database and the storing them in Players[][pInfo]. pInfo has the same structure as the database. Then for /login i made a command called loadplayervariables which loads the info from the sql db and stores it. OnPlayerDisconnect i have 2 commands. SavePlayerVariables which i need to figure out how to make it better to autosave eveything, right now its just a string. Then i have a command called UnLoadPlayerVariables which sets all of the variables to 0 for the player so theyre reset for the next player. Itll definitely take a while, but i think its worth it
Posts: 453
Threads: 30
Joined: Feb 2009
Reputation:
0
oke.....
login /register maybe not
but the rest....
Posts: 3,262
Threads: 30
Joined: Aug 2008
Reputation:
0
Strart it from scratch.. Like I did two weeks ago, my 2nd dynamic gamemode (fully mysql based)
GF has many useless things, hontestly.
Posts: 55
Threads: 16
Joined: Mar 2009
Reputation:
0
Cuz I think that I am too low in PAWN to start creating my own gamemode.
I am good at PHP, so I writed all the CMS for mySQL server, I also know pascal, a bit C++ that's PAWN based on.
I know the structure but I don't know SA-MP functions etc.