Loading business pickups.
#3

Na it's not, and nothing eles loads for them.well you can still /buybusiness and /sellbusiness at the location were i created it so they like load, but don't show up.

pawn Код:
stock strmatch(const String1[], const String2[])
{
    if ((strcmp(String1, String2, true, strlen(String2)) == 0) && (strlen(String2) == strlen(String1)))
    {
        return true;
    }
    else
    {
        return false;
    }
}

Also for some reason a checkpoint displays.

pawn Код:
command(createbusiness,playerid, params[])
{
    if(GetPlayerAdmin(playerid) < 5) return 0;
    {
        new level;
        if(sscanf(params, "i", level)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /createbusiness Level(1-7)");
        else
        {
            new string[200], Float:POS[3];
            GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
            format(string, sizeof(string), "INSERT INTO `businesses` (`Id`, `bOwner`, `bLevel`, `bX`, `bY`, `bZ`) VALUES (NULL, 'None', '%d', '%f', '%f', '%f');",level, POS[0], POS[1], POS[2]);
            mysql_query(string);
            CreateDynamicMapIcon(POS[0], POS[1], POS[2], 31, 0, -1, -1, -1, 200);
            LoadBusiness();
        }
    }
    return 1;
}
Reply


Messages In This Thread
Loading business pickups. - by Haydz - 02.02.2011, 06:01
Re: Loading business pickups. - by PeteShag - 02.02.2011, 07:46
Re: Loading business pickups. - by Haydz - 02.02.2011, 07:49
Re: Loading business pickups. - by PeteShag - 02.02.2011, 08:00
Re: Loading business pickups. - by Haydz - 02.02.2011, 08:07

Forum Jump:


Users browsing this thread: 1 Guest(s)