How to add a game mode to my server?
#1

Hello, I'm having a little trouble adding a game mode to my server. Here's a few pics of what I have.
My game mode name is "testserver"











What am I doing wrong? any help would be appreciated.
Reply
#2

There's no Entry-Point.

Add

pawn Code:
main() { return 0; }
To the GameMode
Reply
#3

Quote:
Originally Posted by [GF]Sasino97
View Post
There's no Entry-Point.

Add

pawn Code:
main() { return 0; }
To the GameMode
Add it to the very bottom of the game mode?
Reply
#4

Quote:
Originally Posted by rangerxxll
View Post
Add it to the very bottom of the game mode?
Somewhere after the #includes, but not inside other functions

Very Basic example:

pawn Code:
#include <a_samp>
#include <Streamer>
// ...

new pMoney[MAX_PLAYERS];
// ...

main()
{
    print("Hello World!");
    return 0;
}

// Then here you can put all the other things

public OnPlayerConnect(playerid)
{
    // ....
}
Reply
#5

Quote:
Originally Posted by [GF]Sasino97
View Post
Somewhere after the #includes, but not inside other functions

Very Basic example:

pawn Code:
#include <a_samp>
#include <Streamer>
// ...

new pMoney[MAX_PLAYERS];
// ...

main()
{
    print("Hello World!");
    return 0;
}

// Then here you can put all the other things

public OnPlayerConnect(playerid)
{
    // ....
}
Thank you for your help I appreciate it +1 rep.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)