SA-MP Forums Archive
[Ajuda] error 017: undefined symbol "CreateActor" - 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] error 017: undefined symbol "CreateActor" (/showthread.php?tid=660171)



error 017: undefined symbol "CreateActor" - shirouz - 26.10.2018

Porque esse erro?

new npclanch;

npclanch = CreateActor(205,1284.4421,-1539.8473,13.5820, 2.0);
ApplyAnimation(npclanch, "PED", "IDLE_CHAT", 4.1, 1, 0, 0, 1, 0);




Re: error 017: undefined symbol "CreateActor" - zF3lKy3 - 26.10.2018

Quote:
Originally Posted by shirouz
View Post
Porque esse erro?

new npclanch;

npclanch = CreateActor(205,1284.4421,-1539.8473,13.5820, 2.0);
ApplyAnimation(npclanch, "PED", "IDLE_CHAT", 4.1, 1, 0, 0, 1, 0);

Atualize todas suas includes para 0.3.7


Re: error 017: undefined symbol "CreateActor" - shirouz - 26.10.2018

E como eu faзo isso?


Re: error 017: undefined symbol "CreateActor" - ipsLuan - 26.10.2018

Para aplicar a animaзгo no actor, й necessбrio usar ApplyActorAnimation.


Re: error 017: undefined symbol "CreateActor" - shirouz - 26.10.2018

Deu o mesmo erro, luan


Re: error 017: undefined symbol "CreateActor" - zF3lKy3 - 26.10.2018

Quote:
Originally Posted by shirouz
View Post
E como eu faзo isso?
http://files.sa-mp.com/samp037_svr_R2-1-1_win32.zip Baixe a pasta 0.3.7 copiei todas as includes que tem na pasta Pawno/Includes e cole na pasta do seu servidor Pawno/Includes, recompile sua GM e tente.


Re: error 017: undefined symbol "CreateActor" - ipsLuan - 26.10.2018

Quote:
Originally Posted by shirouz
View Post
E como eu faзo isso?
Calma, uma coisa de cada vez...
1. Baixe o samp-server0.3.7 disponibilizado no site oficial do SA-MP e troque os arquivos (principalmente o samp-server, o server.cfg e a pasta pawno/includes).
2. Troque a funзгo para ApplyActorAnimation.

Feito isso, compile novamente o source-code.


Re: error 017: undefined symbol "CreateActor" - shirouz - 26.10.2018

Nгo to conseguindo, luan, tem discord? me adiciona ai ShirouZ#0341


Re: error 017: undefined symbol "CreateActor" - shirouz - 26.10.2018

Fiz o que vocк mandou e aparecer este erro: error 035: argument type mismatch (argument 2)


Re: error 017: undefined symbol "CreateActor" - ipsLuan - 26.10.2018

Em qual linha?

PHP Code:
new MyActor;

MyActor CreateActor(179316.1, -134.0999.690.0); // Actor as salesperson in Ammunation
ApplyActorAnimation(MyActor"DEALER""shop_pay"4.100000); // Pay anim 



Re: error 017: undefined symbol "CreateActor" - shirouz - 26.10.2018

deu certo