[FilterScript] Donation System.
#3

Quote:
Originally Posted by Fratello
View Post
Good one.

I have one question in your SQL query.
HTML Code:
user_donator = %s", GetPlayerName(playerid)
why did you put user_donator (Name of the player) instead of Donator ID since it's Primary Key?
I made the ID the primary key so it can be inner joined at a later date if they so wish,
but as this function is called on player connect it needs to check if the player is donator still, if not then it'll delete them from the table.
But I guess it could be changed to ID it's pretty malleable code and can be changed to fit someones needs , I made it for a friend so there's a couple of things in there which would obviously need to be changed to the correct params required for those using
Reply


Messages In This Thread
Donation System. - by Prokill911 - 13.10.2017, 17:37
Re: Donation System. - by Fratello - 13.10.2017, 18:04
Re: Donation System. - by Prokill911 - 13.10.2017, 18:22
Re: Donation System. - by Fratello - 14.10.2017, 09:31
Re: Donation System. - by Prokill911 - 19.10.2017, 15:49
Re: Donation System. - by Astralis - 11.02.2018, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)