Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

debug problem

$
0
0
server log

Quote:

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[05:00:00] filterscripts = "" (string)
[05:00:00] plugins = "" (string)
[05:00:00]
[05:00:00] Server Plugins
[05:00:00] --------------
[05:00:00] Loading plugin: crashdetect.so
[05:00:00] CrashDetect v4.18.1 is OK.
[05:00:00] Loaded.
[05:00:00] Loading plugin: sscanf.so
[05:00:00]

[05:00:00] ===============================

[05:00:00] sscanf plugin loaded.

[05:00:00] Version: 2.8.2

[05:00:00] (c) 2012 Alex "Y_Less" Cole

[05:00:00] ===============================

[05:00:00] Loaded.
[05:00:00] Loading plugin: streamer.so
[05:00:00]

*** Streamer Plugin v2.9.1 by Incognito loaded ***

[05:00:00] Loaded.
[05:00:00] Loading plugin: Whirlpool.so
[05:00:00]
[05:00:00] ==================
[05:00:00]
[05:00:00] Whirlpool loaded
[05:00:00]
[05:00:00] ==================
[05:00:00]
[05:00:00] Loaded.
[05:00:00] Loading plugin: nativechecker.so
[05:00:00] Loaded.
[05:00:00] Loaded 5 plugins.

[05:00:00]
[05:00:00] Filterscripts
[05:00:00] ---------------
[05:00:00] Loaded 0 filterscripts.

[05:00:00]
[05:00:00]
[05:00:00]
[05:00:00] =======================================
[05:00:00] | |
[05:00:00] | YSI version 4.00.0001 |
[05:00:00] | By Alex "Y_Less" Cole |
[05:00:00] | |
[05:00:00] =======================================
[05:00:00]
[05:00:01] SERVER: Your Server Name
[05:00:01] GAME MODE: Deathmatch
[05:00:01] VERSION: CnR Version (1.1)
[05:00:01] WEBSITE: Your Website
[05:00:01] Number of vehicle models: 50
[05:10:15] [debug] Run time error 4: "Array index out of bounds"
[05:10:15] [debug] AMX backtrace:
[05:10:15] [debug] #0 0003b49c in public BonusPlayer () from CNR.amx
[05:11:19] [debug] Run time error 4: "Array index out of bounds"
[05:11:19] [debug] AMX backtrace:
[05:11:19] [debug] #0 0003bf90 in public GameModeClock (100) from CNR.amx
[05:20:28] [debug] Run time error 4: "Array index out of bounds"
[05:20:28] [debug] AMX backtrace:
[05:20:28] [debug] #0 0003b49c in public BonusPlayer () from CNR.amx
[05:23:37] [debug] Run time error 4: "Array index out of bounds"
[05:23:37] [debug] AMX backtrace:
[05:23:37] [debug] #0 0003bf90 in public GameModeClock (100) from CNR.amx
[05:30:41] [debug] Run time error 4: "Array index out of bounds"
[05:30:41] [debug] AMX backtrace:
[05:30:41] [debug] #0 0003b49c in public BonusPlayer () from CNR.amx
[05:35:55] [debug] Run time error 4: "Array index out of bounds"
[05:35:55] [debug] AMX backtrace:
[05:35:55] [debug] #0 0003bf90 in public GameModeClock (100) from CNR.amx
[05:40:54] [debug] Run time error 4: "Array index out of bounds"
[05:40:54] [debug] AMX backtrace:
[05:40:54] [debug] #0 0003b49c in public BonusPlayer () from CNR.amx
[05:48:14] [debug] Run time error 4: "Array index out of bounds"
[05:48:14] [debug] AMX backtrace:
[05:48:14] [debug] #0 0003bf90 in public GameModeClock (100) from CNR.amx
[05:51:08] [debug] Run time error 4: "Array index out of bounds"
[05:51:08] [debug] AMX backtrace:
[05:51:08] [debug] #0 0003b49c in public BonusPlayer () from CNR.amx
[06:00:13] [connection] 79.106.160.70:63910 requests connection cookie.
[06:00:14] [connection] incoming connection: 79.106.160.70:63910 id: 0
[06:00:15] [join] Left4Dead has joined the server (0:79.106.160.70)
[06:00:33] [debug] Run time error 4: "Array index out of bounds"
[06:00:33] [debug] AMX backtrace:
[06:00:33] [debug] #0 0003bf90 in public GameModeClock (100) from CNR.amx
[06:00:54] RCON (In-Game): Player #0 (Left4Dead) has logged in.
[06:03:13] <SAVED> Stats For Account: Left4Dead (0) Has Been Saved Successfully.
[06:03:13] SAVING CALLED
[06:03:13] [part] Left4Dead has left the server (0:0)
[06:03:35] [connection] 79.106.160.70:54202 requests connection cookie.
[06:03:36] [connection] incoming connection: 79.106.160.70:54202 id: 0
[06:03:36] [join] Left4Dead has joined the server (0:79.106.160.70)
[06:04:01] <SAVED> Stats For Account: Left4Dead (0) Has Been Saved Successfully.
[06:04:01] SAVING CALLED
[06:04:01] [part] Left4Dead has left the server (0:0)

BonusPlayer:
Quote:

forward BonusPlayer();
public BonusPlayer()
{
new string[256];
if(RandomID == INVALID_PLAYER_ID || !IsPlayerConnected(RandomID))
{
new OnlineIDs[MAX_PLAYERS];
new PlayersOnline;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
OnlineIDs[PlayersOnline] = i;
PlayersOnline++;
NoBonusPlayer = 0;
}
}
RandomMoney = random(50000 - 1000) + 1000;
RandomID = OnlineIDs[random(PlayersOnline)];
new str[200];
SendGameText(RandomID, "~w~New Bonus Player");
format(str, sizeof(str),"{FF8000}BONUS Player: {0080FF}%s (%d) {FFFFFF}Has Been Selected As Bonus Player, Kill %s To Get {008000}($%d)", PlayerInfo[RandomID][pName], RandomID, ObjectGenderPronouns[PlayerInfo[RandomID][pGender]], RandomMoney);
SendClientMessageToAll(-1, str);

format(string, sizeof(string),"~b~%s (%d) ~w~Has Been Selected As Bonus Player ~r~Kill ~w~%s To Get ~g~~h~$%d",PlayerInfo[RandomID][pName], RandomID, ObjectGenderPronouns[PlayerInfo[RandomID][pGender]], RandomMoney);
SendClientOnScreenTextToAll(string);
NoBonusPlayer = 0;
}
else
{
new str[200];
format(str, sizeof(str),"{FF8000}BONUS Player: {0080FF}%s (%d) {FFFFFF}Has Not Been {F01111}Killed {FFFFFF}Yet.",PlayerInfo[RandomID][pName], RandomID);
SendClientMessageToAll(-1, str);

format(string, sizeof(string),"~p~BONUS Player: ~b~%s (%d) ~w~Has Not Been ~r~Killed ~w~Yet.",PlayerInfo[RandomID][pName], RandomID);
SendClientOnScreenTextToAll(string);
}
}
GameModeClock:
Quote:

forward GameModeClock();
public GameModeClock()
{
new string[256],string2[128];

GameMinute ++;

if (GameMinute == 60)
{
GameMinute = 0;
GameHour ++;
SetWorldTime(GameHour);
GameWeather ++;

if (GameWeather == 3)
{
new weatherid = random(MAX_WEATHER);
SetWeather(RandomWeather[weatherid]);
GameWeather = 0;
}
}

if (GameHour == 24)
{
GameMinute = 0;
GameHour = 0;
GameDay ++;
}

if (GameHour < 10)
format(string, sizeof(string), "0%d",GameHour);
else
format(string, sizeof(string), "%d",GameHour);

if (GameMinute < 10)
format(string, sizeof(string), "%s:0%d",string,GameMinute);
else
format(string, sizeof(string), "%s:%d",string,GameMinute);

TextDrawSetString(Clock, string);


if (GameHour < 10)
format(string, sizeof(string), "0%d",GameHour);
else
format(string, sizeof(string), "%d",GameHour);

if (GameMinute < 10)
format(string, sizeof(string), "%s:0%d",string,GameMinute);
else
format(string, sizeof(string), "%s:%d",string,GameMinute);


if (GameMinute == 0)
{
format(string, sizeof(string), "%s",string);
format(string2, sizeof(string2), "worldtime %s",string);
SendRconCommand(string2);
format(string, sizeof(string), "{FFFFFF}Game Time: {BDBDBD}%s",string);
SendClientMessageToAll(COLOR_MAIN, string);
}

if (GameDay == 6 && GameHour == 23 && GameMinute == 45)
{
for (new i = 0; i < GetMaxPlayers(); i++)
{
if (IsPlayerConnected(i) && !IsPlayerNPC(i))
{
SavePlayerStats(i);
}
}
}

if (GameMinute == 0)
{

if (TextDrawCurrentAdMsg < MAX_AD_MSG)
{
TextDrawCurrentAdMsg ++;
SendClientOnScreenTextToAll(TextDrawAdMsg[TextDrawCurrentAdMsg]);
}else{
TextDrawCurrentAdMsg = 0;
SendClientOnScreenTextToAll(TextDrawAdMsg[TextDrawCurrentAdMsg]);
}
}

if (GameHour == 20 && GameMinute == 0)
{
OnDataSave();
}

if (GameHour == 9 && GameMinute == 0)
{
MoneyBag();
}

if (GameHour > 9 && GameHour < 23 && GameMinute == 0)
{
switch (GameHour)
{
case 11,14,17,20:MoneyBag();
}

}

if (GameHour == 23 && GameMinute == 55)
{
if (MoneyBagActive == 1)
{
MoneyBagActive = 0;
DestroyPickup(MoneyBagPickup);
}
}

if (GameHour == 5 && GameMinute == 0)
{
Jackpot += random(1000) + random(10000);
}

if (GameHour == 8 && GameMinute == 0)
{
format(string, sizeof(string), "~g~Lottery ~w~Current Jackpot: ~g~$%d~n~~w~Type ~y~/lotto (1 - 25) ~w~To Select A Number For ~y~$2000", Jackpot);
SendClientOnScreenTextToAll(string);

format(string, sizeof(string), "Current Lottery Jackpot: $%d. Daily Draw at Time: 18:00",Jackpot);
SendClientMessageToAll(COLOR_GREEN, string);
}


if (GameHour == 13 && GameMinute == 0)
{
format(string, sizeof(string), "~w~Lottery Current Jackpot: ~g~$%d~n~~w~Type ~y~/lotto (1 - 25) ~w~To Select A Number For ~g~$2000", Jackpot);
SendClientOnScreenTextToAll(string);

SendClientOnScreenTextToAll("~w~Pick a Number Quickly! Only ~g~2 ~w~Hours Until The ~b~~h~Daily Draw~w~!");

format(string, sizeof(string), "Lottery Current Jackpot: {008000}$%d{FFFFFF}. Daily Draw at Time: {0080FF}18:00",Jackpot);
SendClientMessageToAll(COLOR_WHITE, string);
}


if (GameHour == 14 && GameMinute == 59)
{
Lottery();
}

if (GameHour == 23 && GameMinute == 55)
{
for (new i = 0; i < GetMaxPlayers(); i++)
{
if (IsPlayerConnected(i) && PlayerInfo[i][pSpawn] == 1)
{
PlayerInfo[i][pDaysAlive] ++;
PlayerInfo[i][pBDayCount] ++;
if (PlayerInfo[i][pBDayCount] >= 365)
{
PlayerInfo[i][pBDayCount] =0;
PlayerInfo[i][pYearAlive] ++;
HappyBirthDay(i);
}
}
}
}
}

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>