Don't send me to Wiki
#1

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.
Reply
#2

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

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."
Reply
#4

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..
Reply
#5

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.
Reply
#6

for me createobject use MTA and then convert
Reply
#7

Grasias amego =] that answered my question buddy.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)