SA-MP Forums Archive
Create Actor problem - 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: Create Actor problem (/showthread.php?tid=580935)



Create Actor problem - Sn4ke2 - 09.07.2015

PHP Code:
new ActorA;
    new 
ActorB;
    new 
ActorC;
    new 
ActorD;
    new 
ActorE;
    new 
ActorF;
    new 
ActorG;
    new 
ActorH;
    
ActorA CreateActor(68,366.8791,2323.9365,1890.6047,271.7700); // ActorBiserica
    
ActorB CreateActor(25,-30.7777,-30.6997,1003.5573,0.6949); // Actor 24/7 de la spawn
    
ActorC CreateActor(25,207.5365,-98.7054,1005.2578,180.0019); // Actor Magazin de haine 
    
ActorD CreateActor(24,2310.8081,-4.3865,26.7422,266.5060); // Actor Banca ls
    
ActorE CreateActor(29,316.1100,-133.8712,999.6016,87.5284); // Actor Gun Shop lS
    
ActorF CreateActor(25,-23.4885,-57.3213,1003.5469,355.1016); // Actor 24/7
    
ActorG CreateActor(25,-28.5813,-186.8260,1003.5469,1.3937); // Actor 24/7
    
ActorH CreateActor(25,404.8893,-2066.0686,10.7472,269.8570); // Actor de la fish 
And why this errors?
PHP Code:
ServerUNNIC.pwn(13532) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13533) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13534) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13535) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13536) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13537) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13538) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13539) : error 017undefined symbol "CreateActor"
ServerUNNIC.pwn(13539) : warning 204symbol is assigned a value that is never used"ActorH"
ServerUNNIC.pwn(13538) : warning 204symbol is assigned a value that is never used"ActorG"
ServerUNNIC.pwn(13537) : warning 204symbol is assigned a value that is never used"ActorF"
ServerUNNIC.pwn(13536) : warning 204symbol is assigned a value that is never used"ActorE"
ServerUNNIC.pwn(13535) : warning 204symbol is assigned a value that is never used"ActorD"
ServerUNNIC.pwn(13534) : warning 204symbol is assigned a value that is never used"ActorC"
ServerUNNIC.pwn(13533) : warning 204symbol is assigned a value that is never used"ActorB"
ServerUNNIC.pwn(13532) : warning 204symbol is assigned a value that is never used"ActorA"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
8 Errors




Re: Create Actor problem - Threshold - 09.07.2015

I'm just gonna assume you're using sa-mp 0.3.7, right...?


Re: Create Actor problem - Sn4ke2 - 09.07.2015

yes...


Re: Create Actor problem - dominik523 - 09.07.2015

Have you put "a_actor" include in your includes folder?


Re: Create Actor problem - Sn4ke2 - 09.07.2015

Yes, done. ! Tahnk you bought


Re: Create Actor problem - Sn4ke2 - 09.07.2015

mda, i put
PHP Code:
 new ActorA;
new 
ActorB;
new 
ActorC;
new 
ActorD;
new 
ActorE;
new 
ActorF;
new 
ActorG;
new 
ActorH
and the warning
PHP Code:
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13534) : warning 204symbol is assigned a value that is never used"ActorA"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13535) : warning 204symbol is assigned a value that is never used"ActorB"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13536) : warning 204symbol is assigned a value that is never used"ActorC"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13537) : warning 204symbol is assigned a value that is never used"ActorD"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13538) : warning 204symbol is assigned a value that is never used"ActorE"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13539) : warning 204symbol is assigned a value that is never used"ActorF"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13540) : warning 204symbol is assigned a value that is never used"ActorG"
C:\Documents and Settings\PC\Desktop\SERVER.UNNIC\gamemodes\ServerUNNIC.pwn(13541) : warning 204symbol is assigned a value that is never used"ActorH"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


8 Warnings

any ideea?


Re: Create Actor problem - Darkwood17 - 09.07.2015

Put this at the top of your script, not in the callback:
Code:
new ActorA;
new ActorB;
new ActorC;
new ActorD;
new ActorE;
new ActorF;
new ActorG;
new ActorH;



Re: Create Actor problem - Sn4ke2 - 09.07.2015

it's on the top, where is Variabile's.


Re: Create Actor problem - liquor - 09.07.2015

Did you put

pawn Code:
#include <a_actor>
at the top as well? I'd recommend to download the 0.3.7 server package and just replace the includes folder..


Re: Create Actor problem - Sn4ke2 - 09.07.2015

PS: I put #include <a_actor>
> but now work, i have 8 warnings
PHP Code:
erverUNNIC.pwn(13544) : warning 204symbol is assigned a value that is never used"ActorH"
ServerUNNIC.pwn(13543) : warning 204symbol is assigned a value that is never used"ActorG"
ServerUNNIC.pwn(13542) : warning 204symbol is assigned a value that is never used"ActorF"
ServerUNNIC.pwn(13541) : warning 204symbol is assigned a value that is never used"ActorE"
ServerUNNIC.pwn(13540) : warning 204symbol is assigned a value that is never used"ActorD"
ServerUNNIC.pwn(13539) : warning 204symbol is assigned a value that is never used"ActorC"
ServerUNNIC.pwn(13538) : warning 204symbol is assigned a value that is never used"ActorB"
ServerUNNIC.pwn(13537) : warning 204symbol is assigned a value that is never used"ActorA"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
8 Warnings
.
================ 
READY ================