How to load all objects - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to load all objects (
/showthread.php?tid=650802)
How to load all objects -
akib - 07.03.2018
How to load all objects from an enum.
Example:
PHP код:
enum{
Object 1pos
Object 2pos
Object 3pos
}
I want to load all objects from it at once
Re: How to load all objects -
DeMoo - 07.03.2018
PHP код:
public OnGameModeInit()
{
CreateObjects();
return 1;
}
stock CreateObjects
{
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
...
}
Re: How to load all objects -
PepsiCola23 - 07.03.2018
Quote:
Originally Posted by DeMoo
PHP код:
public OnGameModeInit()
{
CreateObjects();
return 1;
}
stock CreateObjects
{
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
...
}
|
dont talk if you dont know what you`re talking about.
on topic: why do you need to use an enum for objects?what are you going to use that for? explain more.
you could add them normally or use an array too.
so explain your intentions
Re: How to load all objects -
Istrator - 07.03.2018
Hello!
As far as I'm learning this
enum means
enumeration.