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



Create Actor - tobi736 - 14.12.2018

My gamemode don't have a public OnGameModeInit(). So where can i add the code CreateActor?
thanks!!


Re: Create Actor - UFF - 14.12.2018

A gamemode will have public OnGameModeInit() callback. You maybe using filterscript (public OnFilterScriptInit()). If yes, then create actor under public OnFilterScriptInit().


Re: Create Actor - tobi736 - 14.12.2018

not understand.


Re: Create Actor - tobi736 - 14.12.2018

ah, i understand it, but i want to add CreateActor in gamemode.


Re: Create Actor - SeeNN - 14.12.2018

You must to make something like that in gamemode or in pawno,you choice,in "pawno/include" you have there "a_samp",open with text document,you scroll down,and there you will see something
tied up by "forward",and there you make something like that "forward OnGameModeInit();"

After you did that,in gamemode made "public OnGameModeInit()" and it will work


Re: Create Actor - SeeNN - 14.12.2018

Quote:
Originally Posted by tobi736
Посмотреть сообщение
ah, i understand it, but i want to add CreateActor in gamemode.
After you do what I say,will work to create Actors.


Re: Create Actor - tobi736 - 14.12.2018

i was do anything you tell to me. But still won't work, have this error
error 055: start of function body without function header
error 010: invalid function or declaration


Re: Create Actor - tobi736 - 14.12.2018

nah, i fixed all my error, but i createactor, i join game and the actor won't show up, help me


Re: Create Actor - Kaliber - 14.12.2018

So where do you add it?

What does your script look like, show some code...


Re: Create Actor - tobi736 - 14.12.2018

i can't add public OnGameModeInit so i was add to
forward LoadStreamerDynamicObjects();
public LoadStreamerDynamicObjects()
and my code here: actor = CreateActor(240, 356.2964,184.4315,1008.3762,272.810;