Posts: 62
Threads: 23
Joined: May 2018
Reputation:
0
My gamemode don't have a public OnGameModeInit(). So where can i add the code CreateActor?
thanks!!
Posts: 357
Threads: 6
Joined: Feb 2018
A gamemode will have public OnGameModeInit() callback. You maybe using filterscript (public OnFilterScriptInit()). If yes, then create actor under public OnFilterScriptInit().
Posts: 62
Threads: 23
Joined: May 2018
Reputation:
0
ah, i understand it, but i want to add CreateActor in gamemode.
Posts: 136
Threads: 44
Joined: Sep 2017
Reputation:
0
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
Posts: 62
Threads: 23
Joined: May 2018
Reputation:
0
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
Posts: 62
Threads: 23
Joined: May 2018
Reputation:
0
nah, i fixed all my error, but i createactor, i join game and the actor won't show up, help me
Posts: 1,092
Threads: 4
Joined: Jun 2012
Reputation:
0
So where do you add it?
What does your script look like, show some code...