function error

Posts 1–7 of 7 · Page 1 of 1
function error
Just have an quick question...

[php]test2()
{
answer3 = "";

for(;
{

random = RandomInt(3);
answer3 = answer3(("test1"), ("test2"), ("test3"));
self sayall("^3"+answer3[2]);
wait(3);
self iPrintLnBold("HMMMMMM, gonne test this variable to ! : "+answer3[random]);
wait(1);
}
}[/php]

I get an function error /.
Just wanne try some things.
But can someone fix this error and get this working!?
:O this is really weird. Can you explain what you wanna do?
Quote Originally Posted by zxz0O0 View Post
:O this is really weird. Can you explain what you wanna do?
Agreed, what is this for?
Quote Originally Posted by spiritwo View Post
Agreed, what is this for?
just try to make sort of array code with random...

i know the random works, but i don't get my array/variable to work
hmm If I would think about it I could help you perhaps. but you'll get help from an experienced poster soon enough. btw that look like an quiz mod could be really fun
Code:
answer3 = answer3(("test1"), ("test2"), ("test3"));
The game doesn't know what answer3 is. You can't use what you are delcaring in the same thing!
Quote Originally Posted by master131 View Post
Code:
answer3 = answer3(("test1"), ("test2"), ("test3"));
The game doesn't know what answer3 is. You can't use what you are delcaring in the same thing!
do you know a look-a-like code /?

really want to work with array or something like that xD
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us