This site is a testing version, but all data is shared with the live forum.


Raised This Month: $12 Target: $400
 3% 

[Request] Register System with USERID


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-15-2024 , 11:53   Re: [Request] Register System with USERID
Reply With Quote #11

Share your code and we can add comments/edit it to help you learn.
__________________
Bugsy is offline
kaiii
Member
Join Date: Jul 2023
Location: Hungary
Old 05-15-2024 , 12:40   Re: [Request] Register System with USERID
Reply With Quote #12

Quote:
Originally Posted by Bugsy View Post
Share your code and we can add comments/edit it to help you learn.
Okay!! I really appreciate any type of help! So what i wanna implement is the player registration number, just like Tote said. whenever the player registers i wanna have it say like: You successfully registered! Welcome, test(#1)
And when another players registers it says: You successfully registered! Welcome, test3(#2)

And thats it! I also can include the data file (txt) which has the sentences and stuff for it. But i think i can add that by myself, i just wanna implement the player registration number pos thingy!^^

(I attached the SMA, because the Code seems a bit too big)
Attached Files
File Type: sma Get Plugin or Get Source (RegisterSystemV5.0.sma - 20 views - 42.0 KB)
__________________
I know God doesn't hear dead men. But I expect he answers them.
kaiii is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-16-2024 , 07:39   Re: [Request] Register System with USERID
Reply With Quote #13

Do you want any other details stored aside from their registration number?
__________________
Bugsy is offline
kaiii
Member
Join Date: Jul 2023
Location: Hungary
Old 05-16-2024 , 10:40   Re: [Request] Register System with USERID
Reply With Quote #14

Quote:
Originally Posted by Bugsy View Post
Do you want any other details stored aside from their registration number?
No i think.. This registration number is the only thing i want and i'd really appreciate any help! The player's data are already going to MYSQL so i only need this!^.^
__________________
I know God doesn't hear dead men. But I expect he answers them.
kaiii is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-16-2024 , 19:02   Re: [Request] Register System with USERID
Reply With Quote #15

rowid may be there by default, try accessing it in a query.

SELECT rowid, Name,Password FROM registersystem
__________________
Bugsy is offline
kaiii
Member
Join Date: Jul 2023
Location: Hungary
Old 05-17-2024 , 09:31   Re: [Request] Register System with USERID
Reply With Quote #16

Quote:
Originally Posted by Bugsy View Post
rowid may be there by default, try accessing it in a query.

SELECT rowid, Name,Password FROM registersystem
huh?... what?.. o.o
__________________
I know God doesn't hear dead men. But I expect he answers them.
kaiii is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-17-2024 , 21:28   Re: [Request] Register System with USERID
Reply With Quote #17

I initially thought this was a small plugin that you were writing, but it's someone else's plugin that is over a thousand lines and will take too much time to reverse engineer to add your reg#. Maybe request it from the author?
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-17-2024 , 21:52   Re: [Request] Register System with USERID
Reply With Quote #18

Can't you just find a registration system that uses SteamID and then you have a unique ID for each player. Easy.
__________________
fysiks is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 05-17-2024 , 22:16   Re: [Request] Register System with USERID
Reply With Quote #19

If the code seems too "big" to you, SQL is not your option.
__________________
mlibre is offline
Tote
Senior Member
Join Date: Jul 2023
Old 05-18-2024 , 01:15   Re: [Request] Register System with USERID
Reply With Quote #20

>

new g_iRegisterCounts;
new g_iPlayerRid[33]

public successfully_registered(id) {
g_iRegisterCounts++ // first add +1 in the registered players
g_iPlayerRid[id] = g_iRegisterCounts // now assign the number to the player register id
Save_Rid_Data(id)
Load_Rid_Data(id)
Save_RegisterCounts_Data(id)
Load_RegisterCounts_Data(id)
}

Remember to do the "Save_Rid_Data" & "Load_Rid_Data" on client_Putinserver(id) func

Remeber: This is for vault.
Tote is offline
Reply



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 00:35.


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