Jump to content
  • 0

[Help]Who know PHP or other language for Help me


Question

Posted

I whish to make a system which gives you death penalty if you dont vote... i mean.. to set in data base if an Character dont click on one link.. in every day... i think is possible but i dont know PHP... anyone know do that ?? thanks

2 answers to this question

Recommended Posts

  • 0
Posted

Adding an extra field in the character table (vote, true/false) and doing a check for it in Enterworld.java to add the debuff would probably be the best (easiest) way.

 

Then on your website you could execute a query like this when a player votes:

 

<?php

mysql_query("UPDATE characters SET vote = true WHERE char_name = '$charName'");

?>

 

Either way this is not done by just PHP ;)

  • 0
Posted

Adding an extra field in the character table (vote, true/false) and doing a check for it in Enterworld.java to add the debuff would probably be the best (easiest) way.

 

Then on your website you could execute a query like this when a player votes:

 

<?php

mysql_query("UPDATE characters SET vote = true WHERE char_name = '$charName'");

?>

 

Either way this is not done by just PHP ;)

 

... that ideea is great for make players to vote...  but need java knowledge :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..