SA-MP Forums Archive
Few Questions , Help needed. - 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: Few Questions , Help needed. (/showthread.php?tid=339128)



Few Questions , Help needed. - AMEENAMEEN - 02.05.2012

1. Why should i place SetObjectMaterial ?
2. When i make some objects with um https://sampforum.blast.hk/showthread.php?tid=334736 ([HLF]Southclaw's Texture Workshop V1.0 )
its becomes like this
pawn Код:
SetObjectMaterial(objectid, 1, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 2, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 3, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 4, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 5, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 6, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 7, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 8, 3908, libertyfar, Grass_128HV, 0);
SetObjectMaterial(objectid, 9, 3908, libertyfar, Grass_128HV, 0);
Why its libertyfar on all objects (textures)
3. when i compile i get this error?
Код:
******\********\**********\mygm.pwn(10023) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10024) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10025) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10026) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10027) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10028) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10029) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10030) : error 017: undefined symbol "libertyfar"
******\********\**********\mygm.pwn(10031) : error 017: undefined symbol "libertyfar"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Help will be much appriciated , Thanks in advance.


Re: Few Questions , Help needed. - MadeMan - 02.05.2012

Probably a bug in the Texture Workshop script, but they should be like this

pawn Код:
SetObjectMaterial(objectid, 1, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(objectid, 2, 3908, "libertyfar", "Grass_128HV", 0);
...



Re: Few Questions , Help needed. - AMEENAMEEN - 02.05.2012

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Probably a bug in the Texture Workshop script, but they should be like this

pawn Код:
SetObjectMaterial(objectid, 1, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(objectid, 2, 3908, "libertyfar", "Grass_128HV", 0);
...
Alright it compiled with no errors , but um object was not placed in right place and not all textures changed on it :S
here is my code
pawn Код:
new fctest;
pawn Код:
//fctest
fctest = CreateObject(16212, -377.35, 1302.91, 3.13,   356.86, 0.00, 3.14);
SetObjectMaterial(fctest, 1, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 2, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 3, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 4, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 5, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 6, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 7, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 8, 3908, "libertyfar", "Grass_128HV", 0);
SetObjectMaterial(fctest, 9, 3908, "libertyfar", "Grass_128HV", 0);



Re: Few Questions , Help needed. - newbie scripter - 02.05.2012

Define It


Re: Few Questions , Help needed. - AMEENAMEEN - 02.05.2012

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
Define It
define what be more specific please


Re: Few Questions , Help needed. - AMEENAMEEN - 02.05.2012

here is a screenshot of the object buggs + not all textures i replaced are showing only one replaced texture showing
please help me


Uploaded with ImageShack.us


Re: Few Questions , Help needed. - MadeMan - 02.05.2012

Are you using the latest version of 0.3e? (RC7-3)


Re: Few Questions , Help needed. - AMEENAMEEN - 02.05.2012

Still not all textures that i changed loading only on few parts on object even tho i can change then in texture workshop but wont appear in the code


Re: Few Questions , Help needed. - AMEENAMEEN - 03.05.2012

Bump , not all changed textures work on the loaded object


Re: Few Questions , Help needed. - HighPitchedVoice - 03.05.2012

#define libertyfar