Dynamic Objects freezing the server
#3

Quote:
Originally Posted by Threshold
Посмотреть сообщение
SA-MP servers are single threaded, so every action won’t be processed until the previous one has been completed.

So for things like this you’d be better off converting the coordinates once and making them into a constant array in your script or add them to some sort of database or table, to make readability a little easier.
I made enum for it if thats what u meant

#define OBJECTS 30000

enum ObjectData //Object Data
{
id,
model,
FloatosX,
FloatosY,
FloatosZ,
Float:rotX,
Float:rotY,
Float:rotZ
}

new oInfo[OBJECTS][ObjectData];
Reply


Messages In This Thread
Dynamic Objects freezing the server - by NoteND - 29.12.2018, 11:37
Re: Dynamic Objects freezing the server - by Threshold - 29.12.2018, 14:47
Re: Dynamic Objects freezing the server - by NoteND - 29.12.2018, 15:14
Re: Dynamic Objects freezing the server - by RoboN1X - 29.12.2018, 17:16
Re: Dynamic Objects freezing the server - by NoteND - 29.12.2018, 17:22
Re: Dynamic Objects freezing the server - by RoboN1X - 29.12.2018, 17:32

Forum Jump:


Users browsing this thread: 2 Guest(s)