SA-MP Forums Archive
Warnings. - 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: Warnings. (/showthread.php?tid=617856)



Warnings. - Tuntun - 27.09.2016

Tried to re-texture the objects.. and getting them:





Re: Warnings. - Konstantinos - 27.09.2016

Go to SetObjectMaterial lines and look again at the code. CreateObject has 4 parameters (missing 3 last for rotation). The second and third line (of SetObjectMaterial function) have the rotation instead of the index and the rest parameters.


Re: Warnings. - Tuntun - 27.09.2016

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Go to SetObjectMaterial lines and look again at the code. CreateObject has 4 parameters (missing 3 last for rotation). The second and third line (of SetObjectMaterial function) have the rotation instead of the index and the rest parameters.
Still.. here is the codes. fix them if you can.

Код:
SetObjectMaterial(CreateObject(19463, -2029.32202, -655.87482, 1000.11182, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
    SetObjectMaterial(CreateObject(19463, -2024.55408, -651.17999, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
    SetObjectMaterial(CreateObject(19463, -2033.87732, -647.01343, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
    SetObjectMaterial(CreateObject(19463, -2036.28162, -649.47150, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
    SetObjectMaterial(CreateObject(19463, -2038.70215, -651.96942, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
 	SetObjectMaterial(CreateObject(19463, -2026.92407, -653.62329, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
 	SetObjectMaterial(CreateObject(19463, -2029.30164, -656.05786, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
 	SetObjectMaterial(CreateObject(19463, -2031.72095, -658.54382, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
Код:
	CreateObject(19463, -2029.32202, -655.87482, 1000.11182,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2024.55408, -651.17999, 1003.73383,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2033.87732, -647.01343, 1003.73383,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2036.28162, -649.47150, 1003.73383,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2038.70215, -651.96942, 1003.73383,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2026.92407, -653.62329, 1003.73383,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2029.30164, -656.05786, 1003.73383,   0.00000, 90.00000, 46.00000);
	CreateObject(19463, -2031.72095, -658.54382, 1003.73383,   0.00000, 90.00000, 46.00000);



Re: Warnings. - Konstantinos - 27.09.2016

Код:
SetObjectMaterial(CreateObject(19463, -2029.32202, -655.87482, 1000.11182, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2024.55408, -651.17999, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2033.87732, -647.01343, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2036.28162, -649.47150, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2038.70215, -651.96942, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2026.92407, -653.62329, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2029.30164, -656.05786, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2031.72095, -658.54382, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);



Re: Warnings. - Tuntun - 27.09.2016

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Код:
SetObjectMaterial(CreateObject(19463, -2029.32202, -655.87482, 1000.11182, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2024.55408, -651.17999, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2033.87732, -647.01343, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2036.28162, -649.47150, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2038.70215, -651.96942, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2026.92407, -653.62329, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2029.30164, -656.05786, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
SetObjectMaterial(CreateObject(19463, -2031.72095, -658.54382, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
Fixed.

Can you make a tp cmd for me?


Re: Warnings. - Konstantinos - 27.09.2016

Wasn't the problem with the "Range check error" in the map editor before editing your post? I can't make a command as I don't know a solid location that teleports you there. What I used to do in the past when I wanted to test big maps was a command that adds height (Z) to my position + fly script to move around easily.


Re: Warnings. - IndependentGaming - 27.09.2016

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
Fixed.

Can you make a tp cmd for me?
CMD:tp(playerid, params[])
{

SetPlayerPos(playerid, -2038.70215, -651.96942, 1003.73383);
return 1;
}


Re: Warnings. - Tuntun - 27.09.2016

Well.. forget about the teleport thing. I will use s0biet or something..

Suddenly my GTA sa display fucked up. Look at the graphics: What happened to it? I'm Nvidia user.. 740.