Streamer 2.9.3 problems
#1

PHP код:
ReinitBusPassenger(id)
{
    new 
skinlFloat:xFloat:yFloat:zFloat:a;
    print(
"called 1");
    for(new 
iMAX_GLOBAL_PASSENGERSi++)
    {
        switch(
id)
        {
            case 
1:
            {
                if(!
IsValidActor(PassengerActor[i]))
                {
                    
skin random(311) + 1;
                    do
                    {
                        
random(sizeof(PassengerLocations));
                    }
                    while(
GlobalLocationsCount[l] >= 6);
                    
GlobalLocationsCount[l]++;
                    
PassengerLocations[l][0];
                    
PassengerLocations[l][1];
                    
PassengerLocations[l][2];
                    
PassengerLocations[l][3];
                    
-= (frandom(1.5) * floatsin(-adegrees));
                    
-= (frandom(1.5) * floatcos(-adegrees));
                    
+= ((1.0 float(GlobalLocationsCount[l])) * floatsin(absoluteangle(90.0), degrees));
                    
+= ((1.0 float(GlobalLocationsCount[l])) * floatcos(absoluteangle(90.0), degrees));
                    
PassengerActor[i] = CreateActor(skinxyza);
                    print(
"called case 1");            
                }
            }
            case 
2:
            {
                if(!
IsValidActor(PassengerActor2[i]))
                {
                    
skin random(311) + 1;
                    do
                    {
                        
random(sizeof(PassengerLocations2));
                    }
                    while(
GlobalLocationsCount2[l] >= 7);
                    
GlobalLocationsCount2[l]++;
                    
PassengerLocations2[l][0];
                    
PassengerLocations2[l][1];
                    
PassengerLocations2[l][2];
                    
PassengerLocations2[l][3];
                    
-= (frandom(1.5) * floatsin(-adegrees));
                    
-= (frandom(1.5) * floatcos(-adegrees));
                    
+= ((1.0 float(GlobalLocationsCount2[l])) * floatsin(90.0degrees));
                    
+= ((1.0 float(GlobalLocationsCount2[l])) * floatcos(90.0degrees));
                    
PassengerActor2[i] = CreateActor(skinxyza);
                    print(
"called case 2");
                }
            }
        }
    }

Actor is not created even though the print is working.

I don't understand though why Actor isn't created even though it's not related to CreateDynamicActor
Reply
#2

anyone?
Reply
#3

Try to use this one..

https://sampforum.blast.hk/showthread.php?tid=613665
Reply
#4

I found out that CreateActor is working fine outside this code,what's wrong?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)