08.11.2012, 14:54
Hello.I am an amateur scripter,and I have a problem.Yesterday,I setted the number of houses on my server to 100,and this was deleting all my pickups on the server.I have this loops at OnGameModeInit,and I don't know what is the problem.Please,help me.
P.S.:Somebody told me that I must use streamer to fix this problem,but I don't know how.
@Sorry for my bad english,i tried to write corectly.
pawn Code:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(stringp, sizeof(stringp), "{FFFFFF}[{AAAAFF}House{FFFFFF}]\n[{AAAAFF}For Sale{FFFFFF}]");
Create3DTextLabel(stringp,COLOR_GROVE,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75, 25.0, 0, 1);
CreateDynamicPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,100.0);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
format(stringp, sizeof(stringp), "{FFFFFF}[{AAAAFF}House{FFFFFF}]\n[{AAAAFF}Owned{FFFFFF}]");
Create3DTextLabel(stringp,COLOR_GROVE,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75, 25.0, 0, 1);
AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(stringp, sizeof(stringp), "{FFFFFF}[{AAAAFF}Business{FFFFFF}]\n[{AAAAFF}For Sale{FFFFFF}]");
Create3DTextLabel(stringp,COLOR_1BLUE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.75, 25.0, 0, 1);
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
format(stringp, sizeof(stringp), "{FFFFFF}[{AAAAFF}Business{FFFFFF}]\n[{AAAAFF}Owned{FFFFFF}]");
Create3DTextLabel(stringp,COLOR_1BLUE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.75, 25.0, 0, 1);
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(stringp, sizeof(stringp), "{FFFFFF}[{AAAAFF}Business{FFFFFF}]\n[{AAAAFF}For Sale{FFFFFF}]");
Create3DTextLabel(stringp,COLOR_1BLUE,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.75, 25.0, 0, 1);
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(stringp, sizeof(stringp), "{FFFFFF}[{AAAAFF}Business{FFFFFF}]\n[{AAAAFF}Owned{FFFFFF}]");
Create3DTextLabel(stringp,COLOR_1BLUE,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.75, 25.0, 0, 1);
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}
@Sorry for my bad english,i tried to write corectly.