[Help] RemoveBuildingForPlayer
#1

Hi, Is there any limit of this funtion ? In my script I have 1115 "RemoveBuildingForPlayer" On my server and when I connect computer clogged :/

Sry for bad eng
Reply
#2

I don't think that its limited..
Reply
#3

There is no limit, but make sure you add RemoveBuildingForPlayer functions under OnPlayerConnect.
Reply
#4

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
There is no limit, but make sure you add RemoveBuildingForPlayer functions under OnPlayerConnect.
Yes, but when I add more than 1000 computer clogged ... :S
Reply
#5

Thats probably from your computer.
Reply
#6

If someone try more than 1000 pls contact me...
I would like that is my computer problem..
Reply
#7

Try not to remove all of them at once.

Example:
pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid....
    //Finish at about the 800th one.
    SetTimerEx("RemoveBuildings", 5000, false, "i", playerid);
    return 1;
}

forward RemoveBuildings(playerid);
public RemoveBuildings(playerid)
{
    RemoveBuildingForPlayer(playerid....
    //Add 601st - Final RemoveBuildingForPlayer here.
    return 1;
}
Reply
#8

Againt the same problem :/ Mybe script can't have more than 1000 RemoveBuildingForPlayer fuctions :S
Reply
#9

Well I've never seen a script with more than 1000 RemoveBuilding functions, so you might be right...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)