SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 11/09/2011, 01:17 AM   #1
rangerxxll
Gangsta
 
rangerxxll's Avatar
 
Join Date: Aug 2011
Posts: 882
Reputation: 59
Default How to add a game mode to my server?

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.
rangerxxll is offline   Reply With Quote
Old 11/09/2011, 01:27 AM   #2
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Tampa, FL
Posts: 1,418
Reputation: 139
Default Re: How to add a game mode to my server?

There's no Entry-Point.

Add

pawn Code:
main() { return 0; }

To the GameMode
__________________
Sasino97 is offline   Reply With Quote
Old 11/09/2011, 01:30 AM   #3
rangerxxll
Gangsta
 
rangerxxll's Avatar
 
Join Date: Aug 2011
Posts: 882
Reputation: 59
Default Re: How to add a game mode to my server?

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?
rangerxxll is offline   Reply With Quote
Old 11/09/2011, 01:31 AM   #4
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Tampa, FL
Posts: 1,418
Reputation: 139
Default Re: How to add a game mode to my server?

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)
{
    // ....
}
__________________
Sasino97 is offline   Reply With Quote
Old 11/09/2011, 01:38 AM   #5
rangerxxll
Gangsta
 
rangerxxll's Avatar
 
Join Date: Aug 2011
Posts: 882
Reputation: 59
Default Re: How to add a game mode to my server?

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.
rangerxxll is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a Game Mode into my SAmp Server Frank Biohazard Client Support 5 13/02/2015 06:23 PM
Recommend a game-mode for my server seanny Help Archive 4 07/04/2011 02:57 PM
can you set the server name in the game mode johnathon956 Help Archive 9 17/05/2010 06:34 PM
[Help] What's the best Game Mode for an RP Server? Ace_Menace Help Archive 3 05/07/2009 07:58 PM


All times are GMT. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.