Page 1 of 1

problem with my code

PostPosted: Mon Aug 13, 2007 7:48 am
by Zehper48
here is my code
Code: Select all
if (player11&&player22 ==1)
{
SendActivationEvent("txtcreate1");
strcpy(Player2.text, "Player 2");
player22 =0;
}


but when player11 and player22 equal different numbers it still preforms the actions


o yeah and how do you make like a typing box, where you can type numbers ?

PostPosted: Mon Aug 13, 2007 7:52 am
by d-soldier
Not sure if this will fix it, but I'm pretty sure it's all got to be spelled out:
if (player11 == 1 && player22 == 1)
{
SendActivationEvent("txtcreate1");
strcpy(Player2.text, "Player 2");
player22 =0;
}

PostPosted: Mon Aug 13, 2007 7:56 am
by Zehper48
NICE! thanks so much d-soldier that was confusing for a while, do you know what im talking about with typing boxes?

PostPosted: Mon Aug 13, 2007 7:59 am
by d-soldier
Not a clue, but did that fix the problem?

PostPosted: Mon Aug 13, 2007 8:01 am
by Zehper48
yes it did thank you