SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/11/2012, 02:54 PM   #1
[mR].SpriTes
Big Clucker
 
Join Date: Jul 2012
Posts: 55
Reputation: 5
Default House Problem[Delete All Pickups]

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.
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++;
        }
    }
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.
[mR].SpriTes is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
House Problem[Delete All Pickups] [mR].SpriTes Scripting Help 9 10/11/2012 10:05 AM
Pickups/3DTexts don't show on house pickups - Help ! Edvin Scripting Help 1 21/06/2012 07:50 PM
How to delete those pickups on server? the_zande Help Archive 3 21/04/2011 01:58 PM
How to change house pickups To house 3d text? Derksen123 Help Archive 9 22/03/2011 09:48 AM
Delete default pickups/ pickup text randomkid88 Help Archive 6 02/08/2010 01:51 AM


All times are GMT. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.