SA-MP Forums Archive
[Ajuda] Animar Actor - 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] Animar Actor (/showthread.php?tid=606625)



Animar Actor - Stroon - 07.05.2016

PHP код:
New Actor[3];
Actor[0] = CreateActor(179316.1, -134.0999.690.0);
Actor[1] = CreateActor(179316.1, -134.0999.690.0);
Actor[2] = CreateActor(179316.1, -134.0999.690.0);
ApplyActorAnimation(Actor"DEALER""shop_pay"4.100000); Ao adicionar dб
error 035: argument type mismatch (argument 1)

Essa й a melhor forma de criar? como arrumo o argumento?


Re: Animar Actor - ipsLuan - 07.05.2016

PHP код:
new Actor[3]; 

for(new 
idid 3id++)
  
Actor[id] = CreateActor(179316.1, -134.0999.690.0);

ApplyActorAnimation(Actor[0], "DEALER""shop_pay"4.100000);
ApplyActorAnimation(Actor[1], "DEALER""shop_pay"4.100000);
ApplyActorAnimation(Actor[2], "DEALER""shop_pay"4.100000); 



Re: Animar Actor - Stroon - 07.05.2016

Blz Luan, mas como eu adiciono mais Actor, porque ali tem 1 actor apenas.
PS: Quero 3 actors e poder designar um anim para cada.


Re: Animar Actor - ApocaSamp - 07.05.2016

PHP код:
New Actor[3]; 
Actor[0] = CreateActor(179316.1, -134.0999.690.0); 
Actor[1] = CreateActor(179316.1, -134.0999.690.0); 
Actor[2] = CreateActor(179316.1, -134.0999.690.0); 
for(new 
0sizeof(Actor); i++) { ApplyActorAnimation(Actor[i], "DEALER""shop_pay"4.100000); }