Raised This Month: $ Target: $400
 0% 

Copoum Code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-27-2014 , 15:51   Copoum Code
Reply With Quote #1

I want to make a Copoum Code System, for players to get rewards.
I want to make each copoum code only usable once, only 1 player can use it, once its used no outher playe can use it again.
This is what i have so far:

Spoiler


Can someone help me fix this?
Syturi0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-27-2014 , 16:05   Re: Copoum Code
Reply With Quote #2

Using SQL would be the easiest way. Otherwise, using a file or vault could work as well
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-27-2014 , 16:06   Re: Copoum Code
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Using SQL would be the easiest way. Otherwise, using a file or vault could work as well
Can you show me how i do that?

I tried nVault before but i failed.
Syturi0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-27-2014 , 16:21   Re: Copoum Code
Reply With Quote #4

Set the code as the vault key and then set the value to either 1 or 0 to indicate if it has been used
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-27-2014 , 16:29   Re: Copoum Code
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Set the code as the vault key and then set the value to either 1 or 0 to indicate if it has been used
Sorry, i dont know how to do that
Syturi0 is offline
Old 12-29-2014, 02:19
Syturi0
This message has been deleted by Syturi0.
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 15:28.


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