#1

I am trying my ass of to make a well developed server but i am having some difficulties, on my IRC channel Bot's dosn't connect. when i compile i don't get any errors please help me ??

Some Useful Code:

PHP код:
#define SQL_HOST "******"
#define SQL_USER "****"
#define SQL_PASS ""
#define SQL_DB "***"
#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
//------- The IRC Defines and what not --------
#define BOT_1_NICKNAME "Bot" //change me
#define BOT_1_REALNAME "Bot"
#define BOT_1_USERNAME "Bot"
#define BOT_2_NICKNAME "BotA" //change me
#define BOT_2_REALNAME "BotA"
#define BOT_2_USERNAME "BotA"
#define IRC_SERVER "irc.uk.mibbit.ne"
#define IRC_PORT (6667)
#define IRC_CHANNEL "#cdcnr" //change me
// Maximum number of bots in the filterscript jsut leave this as is! unless you
// want to code more bots in. it wont be needed unless you have a verry popular
// serber with 100+ Players, 2 bots should handle just fine :D
#define MAX_BOTS (2)
//meh change if you want
#define PLUGIN_VERSION "1.4.2"
#define ServerName         "***************" //change me
#define SVERSION        "1.1" //change me 
#define SERVER_FORUMS   "***************" //change me
#define LICENSE "Public" //THIS IS IMPORTANT! LEAVE AS IS!
#define BANSERV "_DATA_" //this is for anticheat itwill display "_DATA_ Has benned player blahh for blahhh"
#define REGSERV "-OpServ-" // this is for register and login comands
#define ALPHA                          0 //change this to 1 if your server is in alpha mode. 
Reply
#2

Check my tutorial: https://sampforum.blast.hk/showthread.php?tid=468405
Reply
#3

You're showing us your config for your bot names etc, show us your bot connection code (Will be under OnGamemode/FilterscriptInit)

Also show us your server_log, can help determine the problem, bots getting blocked etc..
Reply
#4

He is creating an actual server based on our comments and replies, but whatever dude.
show us OnGameModeInIt.
Reply
#5

Quote:
Originally Posted by Vanter
Посмотреть сообщение
He is creating an actual server based on our comments and replies, but whatever dude.
show us OnGameModeInIt.
Check his threads and then check mine.

Also, I sighed inside when I visited your forum and saw you ripped SACNR forum sections off too.
Reply
#6

You've added the plugin?
Reply
#7

Quote:
Originally Posted by Julius95
Посмотреть сообщение
You've added the plugin?
He probably has.

And as Vanter has said, please show ust he code under ongamemodeinit
Reply
#8

I am using it as Filterscript so here is the code:

PHP код:
 mysql_debug(1);
    
mysql_connectSQL_HOSTSQL_USERSQL_DBSQL_PASS);
    print(
"\n_____________________________");
    print(
"| Flakes Admin              |");
    print(
"|   The script will start loading   |");
    print(
"|                  Loading  |");
    if( 
mysql_ping() == ) print("|_MySQL:_Connected!______ __|");
    else print(
"|_MySQL:_Failed_to_connect__|");
    
gBotID[0] = IRC_Connect(IRC_SERVERIRC_PORTBOT_1_NICKNAMEBOT_1_REALNAMEBOT_1_USERNAME);
    
// Set the connect delay for the first bot to 20 seconds
    
IRC_SetIntData(gBotID[0], E_IRC_CONNECT_DELAY20);
    
// Connect the second bot
    
gBotID[1] = IRC_Connect(IRC_SERVERIRC_PORTBOT_2_NICKNAMEBOT_2_REALNAMEBOT_2_USERNAME);
    
// Set the connect delay for the second bot to 30 seconds
    
IRC_SetIntData(gBotID[1], E_IRC_CONNECT_DELAY30);
    
// Create a group (the bots will be added to it upon connect)
    // Set the gamemode text
    
gGroupID IRC_CreateGroup();
    
SetTimer("msgTDswitcher"250000true);
    
msgTD TextDrawCreate(224.000000,437.000000,"CHANE THIS IF YOU WANT"); //:D
    
TextDrawAlignment(msgTD,0);
    
TextDrawBackgroundColor(msgTD,0x000000ff);
    
TextDrawFont(msgTD,1);
    
TextDrawLetterSize(msgTD,0.299999,1.100000);
    
TextDrawColor(msgTD,0xffffffff);
    
TextDrawSetOutline(msgTD,1);
    
TextDrawSetProportional(msgTD,1);
    
TextDrawSetShadow(msgTD,1);
    new
        
iTimeHour,
        
iTimeMinute,
        
iTimeSecond,
        
iDateYear,
        
iDateMonth,
        
iDateDay;
    
gettime(iTimeHouriTimeMinuteiTimeSecond);
    
getdate(iDateYeariDateMonthiDateDay);
    print(
"----------------------------------");
    print(
"Running Flakes Admin Script for Sanandreas Multiplayer v0.3. Est. 1st of June 12");
    
printf("Version: %d."SVERSION);
    
printf("Build: %d.",SVERSION);
    
printf("License: %s.",LICENSE);
    
printf("Time: %d:%d.%d   Date: %d/%d/%d.",iTimeHouriTimeMinuteiTimeSecondiDateDayiDateMonthiDateYear);
    print(
"Copyright © Flake");
    print(
"Flakes Admin is a unique server offering many features");
    print(
"and multiplayer aspects to Grand Theft Auto: Sanandreas. Flakes admin script is");
    print(
"the next genereation of SA:MP gaming! Visit www.sa-mp.com for more details.");
    print(
"Note: This script cannot be decompiled.");
    print(
"----------------------------------");
        
#if ALPHA == 1
        
format(str128"SERVER IN ALPHA MAY E BUGGY");
    
#else
        #if ALPHA == 0
        #else
            
format(str128"hostname Server Name here"); //CHANGE THIS IF YOU WANT YOUR SERVER NAME TO CHANGE!
        #endif
    #endif 
Credits: Flake
Reply
#9

NVM thanks for your opinions Fixed
P.s: Damn I'm making progress in scripting
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)