SA-MP Forums Archive
Don't send me to Wiki - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Don't send me to Wiki (/showthread.php?tid=185706)



Don't send me to Wiki - Lars_Frederiksen - 25.10.2010

Okay well I noticed that all my objects were see-through until you stood right next to em, so I went on wiki and found this

CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0, 50000.0); //Object will render at 300.0 units. (The usable maximum)

This is bull shit, because I did this with all of mine, and it worked but now I have 240 warnings in my script, and I don't want that.

My Script
CreateObject(980,1588.1971435547,-1638.1158447266,15.053791046143,0.000000, 0.000000, 180.000000, 96.0, 50000.0);

Will someone please help me get rid of all these warnings, their un-professional.


Re: Don't send me to Wiki - Fj0rtizFredde - 25.10.2010

You have one coord/option to much I guess that 96.0 should be removed?


Re: Don't send me to Wiki - Lars_Frederiksen - 25.10.2010

Yeah. No. When I remove that 96.0 it still gives me the same warning.... Also why would they put it in this " CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0, 250.0); //Object will render at 250.0 units."


Re: Don't send me to Wiki - Fj0rtizFredde - 25.10.2010

Your code should look like:
pawn Код:
CreateObject(Model,X,Y,Z, RX, RY, RZ, 50000.0);
Take a look at the wiki and your code agian You have one coord to much..


Re: Don't send me to Wiki - Scenario - 25.10.2010

If you were to read correctly, you aren't using the correct syntax for the "CreateObject" function.

Quote:

Parameters:
(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)

modelid The model you want to use.
Float:X The X coordinate to create the object at.
Float:Y The Y coordinate to create the object at.
Float:Z The Z coordinate to create the object at.
Float:rX The X rotation of the object.
Float:rY The Y rotation of the object.
Float:rZ The Z rotation of the object.
Float:DrawDistance (optional) The distance that San Andreas renders objects. 0.0 will cause objects to render at their default distances. 300.0 is the usable maximum.
Returns The ID of the object that was created.

The "draw distance" is actually optional and not necessarily needed, so you could leave it out. If you are still having transparency issues, just update your SA-MP includes to the latest versions. If that doesn't solve your problem, using Incognito's Object Streamer, but also make sure you use the latest plugin and include.


Re: Don't send me to Wiki - Scripter123 - 25.10.2010

for me createobject use MTA and then convert


Re: Don't send me to Wiki - Lars_Frederiksen - 25.10.2010

Grasias amego =] that answered my question buddy.