When restarting the server with the GMX command, it closes due to this actor. What am I doing wrong? I already have several and I do not like any problem ... and this one ... I doubt where it is. .
CreateDynamicActor(16, 2181.9846, -2252.5320, 14.7734, 224.8581, 0, 100.0, 0, 0); I checked all my code and by eliminating this actor, the error does not appear. |
new testactor[...] // remember to put a number that you do not have assigned an actor testactor[0] = CreateActor(16, 2181.9846, -2252.5320, 14.7734, 224.8581, 0, 100.0, 0, 0); public OnActorStreamIn(actorid, forplayerid) { ApplyActorAnimation(testactor[0], "VENDING", "VEND_EAT_P", 4.0999, 1, 0, 0, 0, 0); // Example return 1; }
LoadServerJobs() { LoadJob_TruckersLS(1); return true; } LoadJob_TruckersLS(i) { JobData[i][SQLID] = i; JobData[i][Type] = 1; new name[40]; strcat(name, "Camioneros de Los Santos", sizeof(name)); JobData[i][Name] = name; JobData[i][JoinX] = 2182.6084; JobData[i][JoinY] = -2253.1833; JobData[i][JoinZ] = 14.7764; JobData[i][PointX][0] = 2156.0164; JobData[i][PointY][0] = -2252.6643; JobData[i][PointZ][0] = 13.2997; CreateDynamic3DTextLabel("Jefe de camioneros\nArmando Vera", 0xFFFFFFFFF, 2181.9846, -2252.5320, 14.7734+1.05, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1, 5.0); CreateDynamicActor(16, 2181.9846, -2252.5320, 14.7734, 224.8581, 0, 100.0, 0, 0); CreateDynamic3DTextLabel("їQuieres trabajo?\n/unirme", 0xFFFFFFFFF, 2182.6084, -2253.1833, 14.7764, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1, 5.0); CreateDynamicCP(2182.6084, -2253.1833, 14.7764, 0.5, 0, 0, -1, 5.0); // POSIBLEMENTE ACA DA CRASH return true; }
I understand that I have several, but in this case I will not use it for other things, simply for environment and I do not want to store the actor in a variable, is it obligatory?
This is my code for the job. Код:
LoadServerJobs() { LoadJob_TruckersLS(1); return true; } LoadJob_TruckersLS(i) { JobData[i][SQLID] = i; JobData[i][Type] = 1; new name[40]; strcat(name, "Camioneros de Los Santos", sizeof(name)); JobData[i][Name] = name; JobData[i][JoinX] = 2182.6084; JobData[i][JoinY] = -2253.1833; JobData[i][JoinZ] = 14.7764; JobData[i][PointX][0] = 2156.0164; JobData[i][PointY][0] = -2252.6643; JobData[i][PointZ][0] = 13.2997; CreateDynamic3DTextLabel("Jefe de camioneros\nArmando Vera", 0xFFFFFFFFF, 2181.9846, -2252.5320, 14.7734+1.05, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1, 5.0); CreateDynamicActor(16, 2181.9846, -2252.5320, 14.7734, 224.8581, 0, 100.0, 0, 0); CreateDynamic3DTextLabel("їQuieres trabajo?\n/unirme", 0xFFFFFFFFF, 2182.6084, -2253.1833, 14.7764, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1, 5.0); CreateDynamicCP(2182.6084, -2253.1833, 14.7764, 0.5, 0, 0, -1, 5.0); // POSIBLEMENTE ACA DA CRASH return true; } |
CreateDynamicCP// This exactly what functionality does it have?
Yes, although before I had the same problem when I restart for example if a player was in control point and restart the server.
I'll try to create an actor and set a variable, to see .. ![]() |