server bug if a more than 15 players conect
#1

hi all
this time my problem is very important
i'm pretty sur that the problem came from the scripts
what ever : the problem is when more than 15 or 16 or 17 players join my server ! lot of fuction stop workin ! for example : i have a (bit) system (when a zombie hit a player ! the player is infected (so he loos HP every 2 seconds ) but yesterday the server was about 25 players & the (bit) system has stoped working ! i dont know why that happen but it's very bad !!
Reply
#2

Sounds like a loop problem. Show your function and timer please.
Reply
#3

ok this's tha systm
Quote:

if((newkeys & KEY_FIRE) && (team[playerid] == 2))
{
new Float:hp, Float:a;
new target = GetClosestPlayer(playerid);
if(target == INVALID_PLAYER_ID || target == playerid) return 1;
if(team[target] == 2) return 1;
GetPlayerArmour(target,a);
target = GetClosestPlayer(playerid);
if(target == INVALID_PLAYER_ID || target == playerid) return SendClientMessage(playerid, YELLOW, "no human is near you!");
if(GetDistanceBetweenPlayers(playerid,target) <= 2)
{
if(a > 0)
{
SetPlayerArmour(target, a-3);
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp+2);
GameTextForPlayer(target, "~g~armor protecting you from infection ", 2000, 6);
}
else
{
GetPlayerHealth(target,hp);
SetPlayerHealth(target, hp-4);
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp+2);
SetPVarInt(target ,"infection", 1);
GetPlayerHealth(target,hp);
}
}
else SendClientMessage(playerid, YELLOW, "Nobody is near you!");
}

Reply
#4

No loops there.
Also, make sure your MAX_PLAYERS isn't like this
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (5)
And your server has 200 slots, ofc it will not work, incase you got 200 slots for example, you do
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (200)
Reply
#5

gonna try that tnks for hlp
Reply
#6

i've tested but nothing has change some player are " intouchbl" but not all ! only some player & i still don't know why
Reply
#7

maybe your internet connection is slow and so it takes more time to recive the data or it just mixes up
Reply
#8

I don't think so it's internet Problem it will be probally Script Problem :S i can't Help you Because i can't script :P
Reply
#9

my uploade conexion is 8 mega ! it's not internet conextion ! & that only hapen with some player ! not with all
Reply
#10

i have this problem too
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)