Server crashes
#1

Server crashes while building the path using PathFinder.
PHP код:
public OnPathCalculated(routeidsuccessFloat:nodesX[], Float:nodesY[], Float:nodesZ[], nodesSize)
{
    new 
text[128];
    
format(textsizeof(text), "PATH: route: %d success: %d nodesSize: %d"routeidsuccessnodesSize);
    
printf(text);
    if(
success)
    {
        
printf("1");
        
RNPC_CreateBuild(routeid,PLAYER_RECORDING_TYPE_ONFOOT);
        
printf("2");
        for(new 
inodesSize-1i++)
        {
            
RNPC_AddMovement(nodesX[i],nodesY[i],nodesZ[i]+1,nodesX[i+1],nodesY[i+1],nodesZ[i+1]+1,RNPC_SPEED_WALK);
            
printf("%f | %f | %f |||| %f | %f | %f",nodesX[i],nodesY[i],nodesZ[i]+1,nodesX[i+1],nodesY[i+1],nodesZ[i+1]+1);
        }
        
printf("3");
        
RNPC_FinishBuild();
        
printf("4");
        
RNPC_StartBuildPlayback(routeid);
        
printf("5");
    }
    return 
1;

It crashes after the RNPC_FinishBuild, no logs with crashdetect, nothing.
The debug goes till 3, after that it crashes, that means the FinishBuild crashes it. Any solution?

EDIT: Problem fixed, was missing recordings folder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)