error 010: invalid function or declaration
#1

Help? Please error 010: invalid function or declaration
Reply
#2

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

AddPlayerClass(29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); is the line
Reply
#4

You need to add coordinates. Not sure if this will fix the problem or not.
Reply
#5

Have you added that line in OnGameModeInit callback? Using it outside of any callback will give that error.
Reply
#6

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

That looks right to me.. Copy and paste line 10 here
Reply
#8

pawn Код:
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;
}
That seems right,
Could u give me the error line?
Reply
#9

Fixed!! Thanks for the help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)