[Help] RemoveBuildingForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] RemoveBuildingForPlayer (
/showthread.php?tid=359493)
[Help] RemoveBuildingForPlayer -
Marusa - 14.07.2012
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
Re: [Help] RemoveBuildingForPlayer -
Georgi166 - 14.07.2012
I don't think that its limited..
Re: [Help] RemoveBuildingForPlayer -
clarencecuzz - 14.07.2012
There is no limit, but make sure you add RemoveBuildingForPlayer functions under OnPlayerConnect.
Re: [Help] RemoveBuildingForPlayer -
Marusa - 14.07.2012
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
Re: [Help] RemoveBuildingForPlayer -
Georgi166 - 14.07.2012
Thats probably from your computer.
Re: [Help] RemoveBuildingForPlayer -
Marusa - 14.07.2012
If someone try more than 1000 pls contact me...
I would like that is my computer problem..
Re: [Help] RemoveBuildingForPlayer -
clarencecuzz - 14.07.2012
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;
}
Re: [Help] RemoveBuildingForPlayer -
Marusa - 14.07.2012
Againt the same problem :/ Mybe script can't have more than 1000 RemoveBuildingForPlayer fuctions :S
Re: [Help] RemoveBuildingForPlayer -
clarencecuzz - 14.07.2012
Well I've never seen a script with more than 1000 RemoveBuilding functions, so you might be right...