[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(179, 316.1, -134.0, 999.6, 90.0);
Actor[1] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
Actor[2] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
ApplyActorAnimation(Actor, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0); 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 id; id < 3; id++)
Actor[id] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
ApplyActorAnimation(Actor[0], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
ApplyActorAnimation(Actor[1], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
ApplyActorAnimation(Actor[2], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
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(179, 316.1, -134.0, 999.6, 90.0);
Actor[1] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
Actor[2] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
for(new i = 0; i < sizeof(Actor); i++) { ApplyActorAnimation(Actor[i], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0); }