Posts: 25
Threads: 7
Joined: Apr 2014
Reputation:
0
Help? Please error 010: invalid function or declaration
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
The error itself doesn't make any sense. You need to post the line that gave the error (and atleast 1 line above/below it).
Posts: 25
Threads: 7
Joined: Apr 2014
Reputation:
0
AddPlayerClass(29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); is the line
Posts: 864
Threads: 88
Joined: Jul 2012
Reputation:
0
You need to add coordinates. Not sure if this will fix the problem or not.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Have you added that line in OnGameModeInit callback? Using it outside of any callback will give that error.
Posts: 25
Threads: 7
Joined: Apr 2014
Reputation:
0
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
Is it right?
Posts: 30
Threads: 7
Joined: Jun 2013
Reputation:
0
That looks right to me.. Copy and paste line 10 here
Posts: 25
Threads: 7
Joined: Apr 2014
Reputation:
0
Fixed!! Thanks for the help!