SA-MP Forums Archive
[Ajuda] Loop no SetObjectMaterial - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Loop no SetObjectMaterial (/showthread.php?tid=645634)



Loop no SetObjectMaterial - Gguiz - 30.11.2017

Olб,

Preciso da ajuda de vocкs em uma coisa que nгo estou conseguindo raciocinar. Quero criar vбrios objetos texturizados, porйm nгo quero ficar colocando 1 por 1, serб possнvel criar um loop para setar vбrios objetos do mesmo modelid com coordenadas diferentes? Ou atй mesmo com modelid diferentes?


Re: Loop no SetObjectMaterial - RodrigoMSR - 30.11.2017

PHP код:
new iObjc CreateObject...
CreateObject...
CreateObject...
CreateObject...
new 
fObjc CreateObject...
for(new 
iObjc<= fObjci++)
{
    
SetObjectMaterial(i, ...




Re: Loop no SetObjectMaterial - Gguiz - 30.11.2017

Quote:
Originally Posted by RodrigoMSR
Посмотреть сообщение
PHP код:
new iObjc CreateObject...
CreateObject...
CreateObject...
CreateObject...
new 
fObjc CreateObject...
for(new 
iObjc<= fObjci++)
{
    
SetObjectMaterial(i, ...

Obrigado mano!