02.02.2011, 07:49
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.
Also for some reason a checkpoint displays.
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;
}