Jump to content
MakeWebGames

[v2]Assassin.php[v2]


Halo

Recommended Posts

Re: [v2]Assassin.php[v2]

Where to start. there is many holes in this post its unbelievable.

I just spent the good part of the last 20 minutes working on it. and I think im better off to code it out myself and post it.

 

I've made a lot of headway on it however will not work entirely till its fully worked out and tested.

Here it is.

 

You're unable to view this code.

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

Link to comment
Share on other sites

Re: [v2]Assassin.php[v2]

i get this errorr when people are trying to assassinate someone

QUERY 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 'brave=brave-5 WHERE userid=1' at line 1

Query was UPDATE users SET money=money-,brave=brave-5 WHERE userid=1

can anyone help?

Link to comment
Share on other sites

Re: [v2]Assassin.php[v2]

 

i get this errorr when people are trying to assassinate someone

QUERY 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 'brave=brave-5 WHERE userid=1' at line 1

Query was UPDATE users SET money=money-,brave=brave-5 WHERE userid=1

can anyone help?

read my above message in my recode. Its to far screwed up. I will need a day just to recode it alone.

better just to do it from scratch.

Link to comment
Share on other sites

  • 8 months later...

Re: [v2]Assassin.php[v2]

Im getting

You're unable to view this code.

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

Any idea?

You need {$_GET['user']} You cannot just wack in the file name into your browser. You need to go to someones profile and click the link.

Link to comment
Share on other sites

Re: [v2]Assassin.php[v2]

The reason this happened is most likely because of:

 

You're unable to view this code.

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

 

on line 64

Here is that segment of code:

 

You're unable to view this code.

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

 

Is it just me or should the - sign be a + sign??

Link to comment
Share on other sites

Re: [v2]Assassin.php[v2]

 

You're unable to view this code.

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

 

Find in viewuser.php

[Attack]

 

Then add

[Assassinate]

 

 

FIXED AND TESTED

 

Thanks , That was somthing I missed while trying to fix the codes, I have edited the code and that is now sorted.

I basicaly just changed the -150 to -120.

$newhosp=$hospital-120;

or you could swap this line to:

$newhosp=(int)(rand(5,60));

Link to comment
Share on other sites

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...