Create Actor
#1

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

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

not understand.
Reply
#4

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

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
Reply
#6

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.
Reply
#7

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
Reply
#8

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

So where do you add it?

What does your script look like, show some code...
Reply
#10

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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)