
kenja
Members-
Posts
31 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by kenja
-
Re: GRPG Forum thanks guys,i agree i would be good to have mods for other game engines on here
-
I have GRPG and it is sent up for incentive voting and i want it setup were members can vote and get there rewards from the game..if anybody knows how to do this i will pay you for doing it
-
does anyone know were i can get a forum for grpg..i will even buy it if the price is right
-
Re: Attack lost Help thanks CrazyT and Cronus +1
-
Re: Attack lost Help this is my attacklost.php <?php $atkpage=1; include "globals.php"; $_GET['ID']==abs((int) $_GET['ID']); $_SESSION['attacking']=0; $_SESSION['attacklost']=0; $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($db->num_rows($od)) { $r=$db->fetch_row($od); print "You lost to {$r['username']}"; $expgain=abs(($ir['level']-$r['level'])^3); $expgainp=$expgain/$ir['exp_needed']*100; print " and lost $expgainp% EXP!"; $db->query("UPDATE users SET exp=exp-$expgain, attacking=0 WHERE userid=$userid"); $db->query("UPDATE users SET exp=0 WHERE exp<0"); event_add($r['userid'],"{$ir['username']} attacked you and lost.",$c); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'lost',unix_timestamp(),0,'$atklog');"); $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$r['gang']}"); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$ir['gang']}"); print " You lost 1 respect for your gang!"; } } else { print "You lost to Mr. Non-existant! =O"; } $h->endpage(); ?>
-
How can i change it so when someone loses a fight they don't lose exp?
-
Re: Register $q=mysql_query("SELECT * FROM users WHERE laston<unix_timestamp()-86400*10 ORDER BY laston DESC",$c);
-
Re: Register ok..never mind i got it fixed just had to add @ $ar=mysql_fetch_array($q); - old $ar=@mysql_fetch_array($q); - new
-
Re: Register 25- { 26- $set[$r['conf_name']]=$r['conf_value']; 27- } 28- if($db->num_rows($q)) 29- { 30- $ar=mysql_fetch_array($q); 31- } 32- //thx to http://www.phpit.net/code/valid-email/ for valid_email 33- function valid_email($email) { 34- // First, we check that there's one @ symbol, and that the lengths are right 35- if (!ereg("^[
-
i am using v2..on my register page i get this error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kenja/public_html/register.php on line 30 here is line 30- $ar=mysql_fetch_array($q);
-
Re: [V2] Mug feature with Stats! and i would like to thank AlabamaHit and Zero-Affect... +1
-
Re: [V2] Mug feature with Stats! thanks +1 to ya works great 2Pacalypse
-
Re: jail bust&exp never mind i got it i just had to add $db->query("UPDATE users SET exp=exp+500 WHERE userid=$userid"); in jailbust.php
-
Re: car mod help ok i fixed it.thanks Lithium +1
-
Re: car mod help here what it says in my acceptchallenge.php if(!$id || !$car) { die("Invalid Usage"); }
-
i have the car mod running but when i accept challenge i get Invalid Usage.can someone tell me why or how to fix it?
-
Re: phpjobscheduler thanks everybody +1 to all
-
what would be a good web host for mccode?.some site won't let you use game scripts i was thanking about hostgator
-
Re: phpjobscheduler thanks +1
-
Re: phpjobscheduler thanks Lithium..is there anyway i can make my crons work on a free host
-
Re: phpjobscheduler crons are setup right when i click on test path they work great.they wont run automatically
-
Re: phpjobscheduler i add my crons to it but it doesn't work.not sure what i,m doing wrong.i am using a free host so i need to use phpjobscheduler