int noble;
Actor*taliakp;// kp karty przygod w talii
taliakp=getAllActorsInCollision("talia_kp.0",&noble);
o[4]=0; // potwierdzenie wylosowania
if (noble>0) // jezeli jest jakas karta w talii n liczba kart w talii
{
while (o[4]==0)
{
int la;
la=round (rand(noble));
if (la<1){la=1;};
if (taliakp[la].sta==0)
{
PlayMusic2("data/POCIGN~1.OGG", 1.000000, 1, HIGH_PRIORITY_MUSIC);
MoveTo(taliakp[la].name, 0.000000, 0.000000, 100.000000, "f_wg_lk", "");
taliakp[la].sta=1;
o[4]=1;
}
}
}
witch cause error beyond allowed area in if taliakp[la]... line how that possible it's after two clicks and i got 3 or more colliding actors