Page 1 of 1

HELP

PostPosted: Wed Oct 12, 2011 10:40 am
by Agusstosus15
I'm a beginner so have mercy.
I declared string variable named nazwy.

In script i try to put text in it like:

nazwy="wow";

it not work i got a script error - illegal declaration -, how is that ? and sorry for my english

Re: HELP

PostPosted: Wed Oct 12, 2011 11:27 am
by Game A Gogo
you can't assign text to strings like that, you need to use strcpy(output,input);
for exemple:

strcpy(nazwy,"wow");

there are other ways like with sprintf, but that's when you want special formating

Re: HELP

PostPosted: Fri Oct 14, 2011 11:36 am
by Agusstosus15
big thanks,

one more question can i create actor using string , eg:

create actor( string variable,.... ?

Re: HELP

PostPosted: Fri Oct 14, 2011 11:53 am
by Game A Gogo
yes! but make sure to have the correct animation name for it as well!

Re: HELP

PostPosted: Fri Oct 14, 2011 12:31 pm
by Agusstosus15
chee my life is much easier now and I mean it, it give a power to control sprite using variables, I'm so glad thank you and don't focus on my language it's so so I come from poland, thanx :0