30.12.2012, 22:14
(
Последний раз редактировалось Vvolk; 30.12.2012 в 23:19.
)
Greetings to all sa-mp.com visitors! I have very annoying bug in my public server since september. I can't improve it and I don't know what I need to do, I trying everything and testing some functions. Problem is in owned vehicles, they doesn't creates smetimes or crates in position 0.0. But I make function to create car ingame near me to check function CreateVehicle and explain something about this bug... There is my simple function:
Then I use this function in server about 5 minutes after server start vehicles always creates, but after some time (about 20hours) vehcles in server won't create. I mean in my public server where players are always playing. At this time in server are about 400 vehicles and my define Max_Vehicles is 1000, but with this command /car often vehicles don't create, but sometimes it creates. And I don't know why vehicles doesn't appear in my server after some time...
Код:
COMMAND:car(playerid,params[]) { new model, carc1, carc2; new Float:x, Float:y, Float:z,veh; if(sscanf(params, "iii", model, carc1, carc2)) return SendClientMessage(playerid, RAUDONA, "/car [model_id] [color1] [color2]"); GetPlayerPos(playerid, x, y, z); veh = CreateVehicle(model, x, y+5, z+2, 0, carc1, carc2, 400); TrDegalai[veh] = 8.0; SendClientMessage(playerid, BALTA, "Car created!"); return 1; }