26.01.2011, 17:23
Quote:
@Hiddos:
pawn Code:
|
pawn Code:
for(new i, s[64]; i < 10; i++)
{
if(!i) strcat(s, "The"), strcat(s, " ");
else if(i < 2) strcat(s, "quick"), strcat(s, " ");
else if(i < 3) strcat(s, "brown"), strcat(s, " ");
else if(i < 4) strcat(s, "fox"), strcat(s, " ");
else if(i < 5) strcat(s, "jumps"), strcat(s, " ");
else if(i < 6) strcat(s, "over"), strcat(s, " ");
else if(i < 7) strcat(s, "the"), strcat(s, " ");
else if(i < 8) strcat(s, "lazy"), strcat(s, " ");
else if(i < 9) strcat(s, "dog."), strcat(s, " ");
else if(i < printf(s)) strcat(s, ""), strcat(s, " ");
else strcat(s, ""), strcat(s, " ");
}
Did a test, it worked. I\'m a genius.
I also found this in some code of a script of mine. It unfortunately did not work. I\'m still thinking of disassembling it once ^^.
Code:
Pos[0] += ((Keys[2] > 0) ? ((Keys[0] & KEY_SPRINT) ? ((Keys[0] & KEY_JUMP) ? (5.4) : (3.6)) : ((Keys[0] & KEY_JUMP) ? (2.7) : (1.8))) : (Keys[2] < 0) ? ((Keys[0] & KEY_SPRINT) ? ((Keys[0] & KEY_JUMP) ? (-5.4) : (-3.6)) : ((Keys[0] & KEY_JUMP) ? (-2.7) : (-1.8))) : (0.0));
Hmm, doesn\'t sound like a perfect method ^^.