Jump to content


Doomguy0505

Member Since 18 Jan 2006
Offline Last Active Mar 12 2009 07:35 AM

Posts I've Made

In Topic: Online Banning

29 July 2007 - 06:35 AM

That would be a good idea, but I don't think you have MAC addresses on the internet.

In Topic: Gml If's

29 July 2007 - 04:26 AM

It is "else if", here's an example

if (var1 == 6)
{
 blah
}
else if (var1 == 4)
{
 blah
}
else
{
 blah
}

In Topic: Loop Stops...? --- String Manipulation

29 July 2007 - 04:18 AM

You only need to check str2's length after the loop

str="Can't pretend that you're nothing special You've got to look at all of your options You can't decide what to go for When it's all about trust";
str2="";
str3="";

for(i=1; i<=string_length(str); i+=1)
{
    if(string_width(str2)<245)
        str2+=string_char_at(str,i);
    else
    {
        str3 += "#" + str2;
        str2="";
    }
}

if (str2 != "")
    str3 += "#" + str2;

Or you could do it like this

str="Can't pretend that you're nothing special You've got to look at all of your options You can't decide what to go for When it's all about trust";
str2="";
str3="";

for(i=1; i<=string_length(str); i+=1)
{
    if(string_width(str2)<245)
    {
        str2+=string_char_at(str,i);
        if (i == string_length(str))
        {
            str3 += "#" + str2;
            str2="";
        }
    }
    else
    {
        str3 += "#" + str2;
        str2="";
    }
}

In Topic: Color=opposite Color

29 July 2007 - 04:02 AM

color = ~color;
Should work, but color = color ^ $ffffff would do the same effect

http://www.sendspace.com/file/ioaqx5

In Topic: Mp3s Dont Work?

28 July 2007 - 10:10 AM

I don't think mp3's have drm, it's probably a different compression