Raised This Month: $344 Target: $400
 86%   Almost there!

[Tut] MySql - Save/Load/Usefull Things (Xp Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-22-2010 , 08:07   Re: [Tutorial] easy XP Mod (MySql Version)
Reply With Quote #21

Quote:
Originally Posted by grimvh2 View Post
As siple as it is. At the mapstart we run that query, its going to look if the table already exists in the database. if not it will create a table with 2 fields, steamid and exp. varchar(32) is the same as "new String[32]" and I guess you know what an int is.
yeap. i get it now. ty vm
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-22-2010 , 11:07   Re: [Tutorial] easy XP Mod (MySql Version)
Reply With Quote #22

Updated.
__________________
I am out of order!
grimvh2 is offline
Kureno
Junior Member
Join Date: Nov 2009
Old 07-22-2010 , 16:23   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #23

Nice Tutorial Grim, good Job
__________________
Coding WebApps (PHP/MYSQL) for plugins
(StandAlone or as plugin for e107 CMS)
PM me


Kureno is offline
benjibau
Veteran Member
Join Date: Jul 2009
Location: France (Nord 59)
Old 07-23-2010 , 14:34   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #24

an error with the rank i think because it's always first in rank

but nice tutorial
benjibau is offline
Send a message via MSN to benjibau
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-23-2010 , 17:32   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #25

Quote:
Originally Posted by benjibau View Post
an error with the rank i think because it's always first in rank

but nice tutorial
Show ur code. Ask other players to say rank, might be because of equal scores. Its running flawless on my servers.
__________________
I am out of order!
grimvh2 is offline
Old 08-04-2010, 22:17
rubee
This message has been deleted by rubee. Reason: alright
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 08-05-2010 , 11:27   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #26

Quote:
Originally Posted by rubee View Post
you should check if the victim is not the killer, because the killer's XP would increase if it's suicided
No, I check if the killer is still alive.
__________________
I am out of order!
grimvh2 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-05-2010 , 18:26   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #27

But grimvh2, isn't better if you use Killer != Victim instead of checking if user is alive using a native? i know is not a big deal but well...
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 08-05-2010 , 23:37   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #28

Thanks grimvh2, very good tutorial and usefull.
vL. is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 08-08-2010 , 05:25   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #29

Quote:
Originally Posted by Alucard^ View Post
But grimvh2, isn't better if you use Killer != Victim instead of checking if user is alive using a native? i know is not a big deal but well...
I think in some cases where the player kills him self, the killer and victim doesnt always return the same, I'm not sure but I guess in some cases with func_doors, trigger_hurt, drown, ... Anyway its not such big deal.
__________________
I am out of order!
grimvh2 is offline
katna
Senior Member
Join Date: May 2010
Old 08-20-2010 , 01:43   Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Reply With Quote #30

why should i use my sql instead of nvault, is it better?
katna is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:01.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode