Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - PoeFacedKilla

Pages: 1 2 [3] 4 5 ... 13
41
Coding / Re: [FLA] How to load from PHP?
« on: April 16, 2009, 01:12:09 am »
in flash i know php

42
Coding / [FLA] How to load from PHP?
« on: April 15, 2009, 07:40:49 pm »
I don't know if this is where to post this.  I'm really trying to load from MySQL, but I think it has to go through PHP first.  I want to load 2 things from a mysql table.  Title, and url.  I want the title to display but it be a link to whatever is the `url` column?  Does anyone know how?

43
Other Projects / Re: qForum
« on: April 14, 2009, 05:03:13 pm »
i'm planning on releasing it, as a free forum.  I've really only been working on it for about a week.  So its really incomplete.  But the layout is based on a stylesheet.  Which will make it easy to skin it.

I'm not to sure about features, if anyone has idea's just let me know.  But for now, i'm just getting the basics done.

But it will be fully customizable.  Everything from the skin, to the profiles, to the BBcode.

44
Other Projects / qForum
« on: April 13, 2009, 11:18:42 pm »
Well, for a little while, I've been working on a forum, in php/mysql.  But it wasn't until recently that I actually started working on it.  I call it (tentative title) qForum.  And right now, i've only got the basic stuff done.  But I hope to have a beta version soon. I've got 1 screenshot, but there will be more as they come.



there will be more screenshots as I get more into it.

45
Coding / Saving Files [GM]
« on: April 07, 2009, 08:07:28 pm »
How do you make a file unable to read by players, while being able to draw it in GML?

46
Coding / [GM6] Won't Declare a Variable
« on: April 06, 2009, 02:34:04 am »
I'm trying, to load a sprite from a .sav file.  But the variable won't declare:

Code: [Select]
{

   
    ini_open('1.sav');
    box_color = ini_read_string('Character','sprite','1');
   
    ini_close();
   

   
}

and then under create for the object:

Code: [Select]
{

    if( box_color == "1" )
    {
    sprite_index = sprite_red;
    }

   
}

but it says unknown variable.

47
Coding / Re: Can Someone Help?
« on: December 28, 2007, 06:25:15 pm »
same version... so idk

48
Coding / Can Someone Help?
« on: December 28, 2007, 06:10:27 pm »


When i use:
Code: [Select]
<?php

    
function subrosian_create(){

        global 
$tattoo_array$tattoo_data$tattoo_rows;
        
$f_args func_get_args();
        
$f_num_args func_num_args();

        
$subrosian_colors = array(
            
"black"=>array(0,0,0),
            
"blue"=>array(30,40,220),
            
"brown"=>array(147,117,27),
            
"green"=>array(30,220,40),
            
"pink"=>array(255,160,160),
            
"purple"=>array(220,30,220),
            
"red"=>array(255,0,0),
            
"turquoise"=>array(30,220,220),
            
"white"=>array(255,255,255),
            
"yellow"=>array(220,220,30),
            
"custom"=>array(255,160,160)
        );

        
// Load templates

        
$src_b_path $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/template.bottom.gif";
        
$src_o_path $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/template.overlay.gif";
        
$src_o2_path $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/template.overlay_2.gif";
        
$dest_path $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/Members/".(($f_num_args > 3)? "temporary/":"").$f_args[0].".large.gif";
        
$dest_fpath $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/Members/".(($f_num_args > 3)? "temporary/":"").$f_args[0].".forum.gif";
        
$dest_spath $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/Members/".(($f_num_args > 3)? "temporary/":"").$f_args[0].".skin.gif";
        
$src_b_fileinfo getimagesize($src_b_path);
        
$src_o_fileinfo getimagesize($src_o_path);
    
        
// Make sources for large image with green background

        
$img_b_src imagecreatefromgif($src_b_path);
        
$img_o_src imagecreatefromgif($src_o_path);
        
$img_b_dest imagecreatetruecolor($src_b_fileinfo[0],$src_b_fileinfo[1]);
        
$img_o_dest imagecreatetruecolor($src_o_fileinfo[0],$src_o_fileinfo[1]);

        
// Make sources for squared forum image

        
$img_fb_src imagecreatefromgif($src_b_path);
        
$img_fo_src imagecreatefromgif($src_o_path);
        
$img_fb_dest imagecreatetruecolor($src_b_fileinfo[0],$src_b_fileinfo[0]);
        
$img_fo_dest imagecreatetruecolor($src_o_fileinfo[0],$src_o_fileinfo[0]);

        
// Make sources for subrosian skin

        
$img_sb_src imagecreatefromgif($src_b_path);
        
$img_so_src imagecreatefromgif($src_o_path);
        
$img_so2_src imagecreatefromgif($src_o2_path);
        
$img_sb_dest imagecreatetruecolor($src_b_fileinfo[0],$src_b_fileinfo[1]);
        
$img_so_dest imagecreatetruecolor($src_o_fileinfo[0],$src_o_fileinfo[1]);

        
// Load tattoos
        
if(is_array($f_args[1][&#39;tattoo&#39;])){
            
$tattoo_src = array();
            
$tattoo_info = array();
            
$tattoo_fileinfo = array();
            
data_fetch("tattoo","SELECT * FROM `subrosian_tattoos` WHERE `ready`=1");
            for(
$i=0;$i<$tattoo_rows;$i++,$tattoo_data mysql_fetch_array($tattoo_array)){
                
$tattoo_info[$tattoo_data[&#39;id&#39;]] = $tattoo_data;
            
}
            foreach(
$f_args[1][&#39;tattoo&#39;] as $main_key => $main_content){
                
$tattoo_file $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/images/main/Tattoos/tattoo".$main_content.".".$tattoo_info[$main_content][&#39;filetype&#39;];
                
$tattoo_image getimagesize($tattoo_file);
                switch(
$tattoo_image[2]){
                    case 
1:
                        
$tattoo_src[$main_content] = imagecreatefromgif($tattoo_file);
                        break;
                    case 
2:
                        
$tattoo_src[$main_content] = imagecreatefromjpeg($tattoo_file);
                        break;
                    case 
3:
                        
$tattoo_src[$main_content] = imagecreatefrompng($tattoo_file);
                        break;
                }
                
$tattoo_fileinfo[$main_content] = array($tattoo_file,$tattoo_image);
            }
        }

        
// Create colors
        
if(is_array($f_args[1])){
            
$col_main imagecolorallocatealpha($img_o_dest,$f_args[1][&#39;color_fur&#39;][0],$f_args[1][&#39;color_fur&#39;][1],$f_args[1][&#39;color_fur&#39;][2],70);
        
} else {
            
$col_main imagecolorallocatealpha($img_o_dest,$subrosian_colors[$f_args[1]][0],$subrosian_colors[$f_args[1]][1],$subrosian_colors[$f_args[1]][2],70);
        }
        
$col_line imagecolorallocatealpha($img_fo_dest,99,108,90,0);
        
$col_bg imagecolorallocatealpha($img_fo_dest,148,156,139,0);
        
$col_text imagecolorallocate($img_fo_dest,47,52,43);
        
$col_admin imagecolorallocate($img_fo_dest,195,176,89);
        
$col_mod imagecolorallocate($img_fo_dest,181,89,60);
    
        
// Create large image with green background
    
        
imagealphablending($img_o_dest,true);
        
imageantialias($img_o_dest,true);
    
        
imagecopy($img_o_dest,$img_o_src,0,0,0,0,$src_o_fileinfo[0],$src_o_fileinfo[1]);
        
imagefilledrectangle($img_o_dest,0,0,$src_o_fileinfo[0],$src_o_fileinfo[1],$col_main);
        
imagetruecolortopalette($img_o_dest,true,50);
        
imagecolortransparent($img_o_dest,imagecolorat($img_o_dest,0,0));
    
        
imagecopy($img_b_dest,$img_b_src,0,0,0,0,$src_b_fileinfo[0],$src_b_fileinfo[1]);
        
imagecopy($img_b_dest,$img_o_dest,0,0,0,0,$src_o_fileinfo[0],$src_o_fileinfo[1]);

        
// insert tattoos
        
if(is_array($f_args[1][&#39;tattoo&#39;])){
            
foreach($f_args[1][&#39;tattoo&#39;] as $main_key => $main_content){
                
$img_b_dest tattoo_imprint($img_b_dest,$tattoo_src[$main_content],$tattoo_fileinfo[$main_content][1],$tattoo_info[$main_content]);
            }
        }
    
        
imagetruecolortopalette($img_b_dest,true,60);
        
imagegif($img_b_dest,$dest_path);
    
        
imagedestroy($img_b_src);
        
imagedestroy($img_o_src);
        
imagedestroy($img_b_dest);
        
imagedestroy($img_o_dest);
    
        
// Create squared image for forum
    
        
$font_src $_SERVER[&#39;DOCUMENT_ROOT&#39;]."/includes/myriad.ttf";
    
        
imagealphablending($img_fo_dest,true);
        
imageantialias($img_fo_dest,true);
        
imageantialias($img_fb_dest,true);
        
imagesetthickness($img_fb_dest,2);
    
        
imagecopy($img_fo_dest,$img_fo_src,0,0,0,0,$src_o_fileinfo[0],$src_o_fileinfo[0]);
        
imagefilledrectangle($img_fo_dest,0,0,$src_o_fileinfo[0],$src_o_fileinfo[0],$col_main);
        
imagetruecolortopalette($img_fo_dest,true,50);
        
imagecolortransparent($img_fo_dest,imagecolorat($img_fo_dest,0,0));
    
        
imagecopy($img_fb_dest,$img_fb_src,0,0,0,0,$src_b_fileinfo[0],$src_b_fileinfo[0]);
        
imagecopy($img_fb_dest,$img_fo_dest,0,0,0,0,$src_o_fileinfo[0],$src_o_fileinfo[0]);

        
// insert tattoos
        
if(is_array($f_args[1][&#39;tattoo&#39;])){
            
foreach($f_args[1][&#39;tattoo&#39;] as $main_key => $main_content){
                
$img_fb_dest tattoo_imprint($img_fb_dest,$tattoo_src[$main_content],$tattoo_fileinfo[$main_content][1],$tattoo_info[$main_content]);
            }
        }
    
        
imagerectangle($img_fb_dest,0,1,($src_b_fileinfo[0]-1),($src_b_fileinfo[0]-2),$col_line);
        
imageline($img_fb_dest,0,($src_b_fileinfo[0]-16),$src_b_fileinfo[0],($src_b_fileinfo[0]-16),$col_line);
        
imagefilledrectangle($img_fb_dest,16,($src_b_fileinfo[0]-15),($src_b_fileinfo[0]-3),($src_b_fileinfo[0]-3),$col_bg);

        if(
$f_args[2] == &#39;administrator&#39;){
            
imagefilledrectangle($img_fb_dest,2,($src_b_fileinfo[0]-15),15,($src_b_fileinfo[0]-3),$col_admin);
            
imageline($img_fb_dest,16,($src_b_fileinfo[0]-15),16,($src_b_fileinfo[0]-2),$col_line);
            
imagettftext($img_fb_dest,8,0,7,($src_b_fileinfo[0]-5),$col_text,$font_src,"a");
        } elseif(
$f_args[2] == &#39;moderator&#39;){
            
imagefilledrectangle($img_fb_dest,2,($src_b_fileinfo[0]-15),15,($src_b_fileinfo[0]-3),$col_mod);
            
imageline($img_fb_dest,16,($src_b_fileinfo[0]-15),16,($src_b_fileinfo[0]-2),$col_line);
            
imagettftext($img_fb_dest,8,0,6,($src_b_fileinfo[0]-5),$col_text,$font_src,"m");
        } else{
            
imagefilledrectangle($img_fb_dest,2,($src_b_fileinfo[0]-15),15,($src_b_fileinfo[0]-3),$col_line);
        }
    
        
imagettftext($img_fb_dest,8,0,20,($src_b_fileinfo[0]-5),$col_text,$font_src,$f_args[0]);
    
        
imagetruecolortopalette($img_fb_dest,true,60);
        
imagegif($img_fb_dest,$dest_fpath);
    
        
imagedestroy($img_fb_src);
        
imagedestroy($img_fo_src);
        
imagedestroy($img_fb_dest);
        
imagedestroy($img_fo_dest);
    
        
// Create colored subrosian skin

        
imagealphablending($img_sb_dest,true);
        
imageantialias($img_sb_dest,true);
    
        
imagecopy($img_sb_dest,$img_so_src,0,0,0,0,$src_o_fileinfo[0],$src_o_fileinfo[1]);
        
imagefilledrectangle($img_sb_dest,0,0,$src_o_fileinfo[0],$src_o_fileinfo[1],$col_main);

        
// insert tattoos
        
if(is_array($f_args[1][&#39;tattoo&#39;])){
            
foreach($f_args[1][&#39;tattoo&#39;] as $main_key => $main_content){
                
$img_sb_dest tattoo_imprint($img_sb_dest,$tattoo_src[$main_content],$tattoo_fileinfo[$main_content][1],$tattoo_info[$main_content]);
            }
        }

        
imagefilter($img_so2_src,IMG_FILTER_NEGATE);
        
imagecolortransparent($img_so2_src,imagecolorat($img_so2_src,50,70));
        
imagecopy($img_sb_dest,$img_so2_src,0,0,0,0,$src_o_fileinfo[0],$src_o_fileinfo[1]);
    
        
imagetruecolortopalette($img_sb_dest,true,50);
        
imagecolortransparent($img_sb_dest,imagecolorat($img_sb_dest,0,0));
        
imagegif($img_sb_dest,$dest_spath);
    
        
imagedestroy($img_sb_src);
        
imagedestroy($img_so_src);
        
imagedestroy($img_sb_dest);
        
imagedestroy($img_so_dest);

        
// Destroy tattoo sources
        
if(is_array($f_args[1][&#39;tattoo&#39;])){
            
foreach($tattoo_src as $main_key => $main_content){
                
imagedestroy($tattoo_src[$main_key]);
            }
        }
    }

        function 
tattoo_imprint(){
            
// imprint tattoo on custom subrosian
            // input:    [0]=>destination handle, [1]=>tattoo source
            //        [2]=>image fileinfo (array), [3]=>image db data (array)

            
$function_arguments func_get_args();

            
$image_fileinfo2 $function_arguments[2];
            
$image_data $function_arguments[3];

            
$image_width3 $image_data[&#39;scale&#39;]/100*($image_fileinfo2[0]*abs(cos(M_PI*$image_data[&#39;rotation&#39;]/180)) + $image_fileinfo2[1]*abs(sin(M_PI*$image_data[&#39;rotation&#39;]/180)));
            
$image_height3 $image_data[&#39;scale&#39;]/100*($image_fileinfo2[0]*abs(sin(M_PI*$image_data[&#39;rotation&#39;]/180)) + $image_fileinfo2[1]*abs(cos(M_PI*$image_data[&#39;rotation&#39;]/180)));
            
$image_src3 imagecreatetruecolor($image_width3,$image_height3);

            
$image_width2 $image_width3*100/$image_data[&#39;scale&#39;];
            
$image_height2 $image_height3*100/$image_data[&#39;scale&#39;];
            
$image_src2 imagerotate($function_arguments[1],$image_data[&#39;rotation&#39;],imagecolorat($function_arguments[1],0,0));

            
imagecopyresized($image_src3,$image_src2,0,0,0,0,$image_width3,$image_height3,$image_width2,$image_height2);
            
imagetruecolortopalette($image_src3,0,2);
            
imagecolortransparent($image_src3,imagecolorat($image_src3,0,0));
            
imagecopymerge($function_arguments[0],$image_src3,$image_data[&#39;x&#39;],$image_data[&#39;y&#39;],0,0,$image_width3,$image_height3,$image_data[&#39;strength&#39;]);

            
imagedestroy($image_src3);
            
imagedestroy($image_src2);

            return(
$function_arguments[0]);
        }
?>

i get:
Fatal error: Call to undefined function imagettftext() in /home/zshrine/public_html/Members/apply.
color.php on line 154

But see it worked on my old server, and they both had the same php, can someone tell me how I can fix this?

49
Entertainment / OoT Speed Run
« on: October 08, 2007, 02:00:59 pm »
Does anyone know where i can find the original TSA speedrun in 1 file?

50
Coding / C++ Allegro
« on: September 30, 2007, 04:49:57 am »
I've been working on a breakout game in C++ Allegro, i've gotten the main scroll left and right engine down, but when i try to make collision it won't move and it starts exactly where i don't want it too.
Code: [Select]
#include <a llegro.h>

void init();
void deinit();

int main() {
init();
/* Bar */
BITMAP *bar = NULL;
bar = load_bitmap("bar.bmp", NULL);
/* Buffer */
BITMAP *buffer = NULL;
buffer = create_bitmap(640,480);
/* Walls */
BITMAP *wall = NULL;
wall = load_bitmap("side.bmp", NULL);
/* Walking Engine */
int sprite_x = -100;
int wall_1_x = 0;
while (!key[KEY_ESC]) {
if(key[KEY_LEFT]) {
sprite_x--;
} else if(key[KEY_RIGHT]) {
sprite_x++;
}
/* Into 1st Wall */
if(sprite_x = 0) {
sprite_x++;
}
draw_sprite(buffer, bar, sprite_x, 0);
draw_sprite(buffer, wall, 0, 0);
blit(buffer, screen, 0, 0, 0, 0, 640, 480);
}

deinit();
return 0;
}
END_OF_MAIN()

void init() {
int depth, res;
allegro_init();
depth = desktop_color_depth();
if (depth == 0) depth = 32;
set_color_depth(depth);
res = set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0);
if (res != 0) {
allegro_message(allegro_error);
exit(-1);
}

install_timer();
install_keyboard();
install_mouse();
/* add other initializations here */
}

void deinit() {
clear_keybuf();
/* add other deinitializations here */
}

51
it was a problem with the version i had, 10.1 had a major bug in it, its all figured out now

52
I am now running off of SUSE linux 10.1, but when i try to open .package files for anything it says:
gedit was not able to detect the character encoding... can anyone tell me whats wrong?

53
Coding / C++ Workin with files
« on: May 29, 2007, 03:28:26 am »
Is it possible to load code from a .txt file? like if i put cout<<"This is From a File";
it would show that in the program?

54
Coding / Switching to Cookies
« on: May 20, 2007, 06:07:42 pm »
I am switching from Sessions to Cookies on my site, and I was wondering why i am getting this error:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\black_site\layout\top.php:8) in C:\Program Files\xampp\htdocs\black_site\login.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\black_site\layout\top.php:8) in C:\Program Files\xampp\htdocs\black_site\login.php on line 17

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\black_site\layout\top.php:8) in C:\Program Files\xampp\htdocs\black_site\login.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\black_site\layout\top.php:8) in C:\Program Files\xampp\htdocs\black_site\login.php on line 19

Here is my new code:
Code: [Select]
<? include $_SERVER['DOCUMENT_ROOT']."/black_site/layout/top.php"; ?>
<?
include "layout/conb.php";
$username = $_POST['username'];
$password = $_POST['password'];
$query = sprintf("SELECT `username`, `password`, `email`, `class` FROM `users` WHERE `username`='$username' AND `password`='$password'");
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result)) {
if(mysql_num_rows($result)==0) {
print "Incorrect User/Pass";
} else if(mysql_num_rows($result)==1) {
$username = $row['username'];
$password = $row['password'];
$email = $row['email'];
$class = $row['class'];
setcookie("user", "$username", time()+3600);
setcookie("pass", "$password", time()+3600);
setcookie("email", "$email", time()+3600);
setcookie("class", "$class", time()+3600);
print "I hope this Works!";
}
 }
 ?>
 <? include $_SERVER['DOCUMENT_ROOT']."/black_site/layout/bottum.php"; ?>

55
Discussion / Re: Visual C++
« on: May 20, 2007, 02:14:19 pm »
no i dont see build anywhere (what do you use for C++?)

56
Coding / Re: PHPBB3 SubSilver Theme for SMF 1.1.2 (In-Progress)
« on: May 20, 2007, 02:04:41 pm »
well, thats a pretty good idea you have there. If i used premade forums, i might use it because i like the look of phpbb aw well.

57
Discussion / Visual C++
« on: May 20, 2007, 02:01:47 pm »
I fell kind of stupid for asking this, but how do you compile in Visual C++ Express Edition?

58
Coding / Re: How do you add recent posts on a forum?
« on: May 17, 2007, 02:14:03 am »
IF? whats that?

59
Coding / Re: Viewing Profile in PHP
« on: May 15, 2007, 10:45:53 pm »
i prefer the way i was coding it to {$user}, but i've figured it out, as ive said i was just brain dead there for an hour or two.

60
Coding / Re: Another PHP Problem
« on: May 15, 2007, 10:44:55 pm »
its all ok, i was just brain dead there for about an hour, but i've figured all this out.

Pages: 1 2 [3] 4 5 ... 13

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.175 seconds with 35 queries.