Maps Section Finished =)

.: ZombieMod News

Moderators: c0ldfyr3, Mods

Post Reply
MOD Creator
Posts: 474
Joined: Sun Apr 23, 2006 6:47 pm
Location: Dublin, Ireland

Maps Section Finished =)

Post by c0ldfyr3 »

Got a few minutes this morning to finish the maps section.
For anyone interested in writing PHP, the function below is what I wrote to overcome the strrpos PHP4 functionality.

Now, if anyone who can see the How To forum would like to do the honours of uploading a few maps that would be awesome.
MOD Creator
Posts: 474
Joined: Sun Apr 23, 2006 6:47 pm
Location: Dublin, Ireland

Code

Post by c0ldfyr3 »

Can't post the code in the main topic because the news page can't handle code blocks yet =P

Code: Select all

function Q_strrpos( $sHaystack, $sNeedle )
{
	$iFound = 0;
	$iPos = 0;
	$bDone = false;
	while ( !$bDone )
	{
		$iPos = strpos( $sHaystack, $sNeedle, $iPos + 1 );
		if ( $iPos != false )
		{
			$iFound = $iPos;
		}
		else
		{
			$bDone = true;
		}
	}
	return $iFound;
}
I'm here!
Posts: 10
Joined: Thu Apr 27, 2006 2:48 pm
Location: Naples, FL

Post by Ahmet »

Woot loks pretty sweet.
My first post here.
I would like to find out how can i upload maps.
If this code is trying to explain something i dont get it :(
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest