Hi, i wanna ask you all somethings, maybe stupid but i am not a Pro, so here i go:
1
Printable View
Hi, i wanna ask you all somethings, maybe stupid but i am not a Pro, so here i go:
1
#1 You can use microtime(), which is very precise. You can use (round($time*1000)/1000) to make it in 3 numbers after the dot.
#2 PHP: mysql_query("UPDATE FROM plus SET strength = strength + 1 WHERE charid = '.$character_id.'") or die("Oops");
#4 Whats a wep?
#3 and #5 This cannot be done in PHP code. PHP is SERVER side, not CLIENT side. Use flash or js instead (for the popup). Not sure what you want with the aura thingy...you want to build a MMORPG in PHP? I guess you need to read more about PHP first...
1. There is no function 'unix()' in php. Whatever gave you that idea? There is a function time() which gives you the current unix timestamp if that's what you mean, and there is a function sleep() which pauses the script for the amount of seconds given, perhaps you mean one of these?
2. A simple update query? That's easy enough:
3. See 1: use sleep(seconds)Code:UPDATE table_name
SET column_name = column_name + 1
WHERE charid = $charID
4. You're not making a whole lot of sense here.
5. Image popups are not done in PHP but generally in javascript. Google for onMouseOver :wink:
You also recieved in infraction for your crappy topictitle which I had to correct for you, and try to be more clear next time since this entire topic was only barely intelligable enough not to warrent deletion.
weps = weapons
in number one... how do i put there the strenght so it lasts, for example 3 rounds, what are rounds, times you load a page or some thing like time..., so how does it is? (round($time*1000)/1000) ? and where i put the specs?