Jump to content
MakeWebGames

Recommended Posts

Posted

Hello,

I release simple mods for free from time to time as a way to pay back to the community that helped me when I first started.

This is a simple crack the safe for points mod I made last year sometime...

Basicly a player can pay x amount of points/crystals for a chance to guess the 3 digit combination to the safe. If they get the correct combination they get all the points in the safe. Once someone wins the combo resets to random numbers and they start over again :)

I know its a simple mod but someone will use it ;)

Cheers

 

cracksafepoints.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Here is the SQL:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Hello,

It does keep track of the pot in the database.

Also if your admin account is userid #1 then it will show you the combonation when you view the page.

if not then a small edit would allow you so ;)

Thanks for the comments,

Curt

Posted

here is the error

you have an error in your SQL syntax; check the manual that corresponds

to your MySQL server version for the right syntax to use near 'WHERE

userid = 1' at line 1

Query was UPDATE users SET crystals=crystals+ WHERE userid = 1

Posted

add this to the database

[mysql]

INSERT INTO `cracksafep` (

`cracksafe_id` ,

`cracksafe_n1` ,

`cracksafe_n2` ,

`cracksafe_n3` ,

`cracksafe_pot` ,

`cracksafe_winner` ,

`cracksafe_when` ,

`cracksafe_active`

)

VALUES (

NULL , '2', '3', '1', '0', '0', '0', '1'

);

[/mysql]

and this will work only reason it doesnt work is there is not an active game open

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...