! - . . , , . , , , (, ) . !





VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

:

1 5 5

  1. #1

      bul04ka

    :
    :08.02.2017
    :3
    :0 [+/-] 

    , !
    c /addhouse . , , , .. , , - .
    , ...

    P.S: , , ...
    :
    :
    CMD:addhouse(playerid, params[])
    {
        if(PTEMP[playerid][pLogin] == 0) return true;
        if(PTEMP[playerid][pAdmin] < 10 || dostup[playerid] == 0) return true;
    	if(sscanf(params, "dd",params[0],params[1]))
    	{
    		SendClientMessage(playerid, COLOR_WHITE, ": /addhouse [] []");
    		SendClientMessage(playerid,-1,"0 - [Nope] | 1 - [D] | 2 - [C] | 3 - [B] | 4 - [A]");
    		return true;
    	}
    	new Float: posX, Float: posY, Float: posZ;
    	GetPlayerPos(playerid, posX, posY, posZ);
    	mysql_format(DATABASE,QUERY, 256, "INSERT INTO `house` (`hEntrancex`, `hEntrancey`,`hEntrancez`, `hLock`,`hKlass`) VALUES ('%f', '%f', '%f', '1','%i')",posX,posY,posZ,params[0]);
    	mysql_function_query(DATABASE,QUERY,false,"","");
    	TotalHouse++;
    	HouseInfo[TotalHouse][hID] = TotalHouse;
    	HouseInfo[TotalHouse][hEntrancex] = posX;
    	HouseInfo[TotalHouse][hEntrancey] = posY;
    	HouseInfo[TotalHouse][hEntrancez] = posZ;
    	HouseInfo[TotalHouse][hLock] = 1;
    	HouseInfo[TotalHouse][hKlass] = params[0];
    	HouseInfo[TotalHouse][hValue] = params[1];
    	if(HouseInfo[TotalHouse][hKlass] == 0)
    	{
    		HouseInfo[TotalHouse][hInt] = 10;
    		HouseInfo[TotalHouse][hExitx] = 421.7613;
    		HouseInfo[TotalHouse][hExity] = 2536.4836;
    		HouseInfo[TotalHouse][hExitz] = 10.0000;
    	}
    	else if(HouseInfo[TotalHouse][hKlass] == 1)
    	{
    		HouseInfo[TotalHouse][hInt] = 6;
    		HouseInfo[TotalHouse][hExitx] = -68.8618;
    		HouseInfo[TotalHouse][hExity] = 1352.2183;
    		HouseInfo[TotalHouse][hExitz] = 1080.2109;
    	}
    	else if(HouseInfo[TotalHouse][hKlass] == 2)
    	{
    		HouseInfo[TotalHouse][hInt] = 5;
    		HouseInfo[TotalHouse][hExitx] = 22.7405;
    		HouseInfo[TotalHouse][hExity] = 1404.3799;
    		HouseInfo[TotalHouse][hExitz] = 1084.4297;
    	}
    	else if(HouseInfo[TotalHouse][hKlass] == 3)
    	{
    		HouseInfo[TotalHouse][hInt] = 12;
    		HouseInfo[TotalHouse][hExitx] = 2324.3367;
    		HouseInfo[TotalHouse][hExity] = -1148.6296;
    		HouseInfo[TotalHouse][hExitz] = 1050.7101;
    	}
    	else
    	{
    		HouseInfo[TotalHouse][hInt] = 5;
    		HouseInfo[TotalHouse][hExitx] = 140.2206;
    		HouseInfo[TotalHouse][hExity] = 1367.2734;
    		HouseInfo[TotalHouse][hExitz] = 1083.8612;
    	}
    	HouseInfo[TotalHouse][hPickup] = CreatePickup(1273, 23, HouseInfo[TotalHouse][hEntrancex], HouseInfo[TotalHouse][hEntrancey], HouseInfo[TotalHouse][hEntrancez],-1);
    	HouseInfo[TotalHouse][hMIcon] = CreateDynamicMapIcon(HouseInfo[TotalHouse][hEntrancex], HouseInfo[TotalHouse][hEntrancey], HouseInfo[TotalHouse][hEntrancez], 31, COLOR_WHITE, 0, -1, -1);
    	SendClientMessage(playerid,COLOR_WHITE,"  .  /sethousecarpos (  )");
    	BuyHouse(TotalHouse);
    	return true;
    }

    ,
    :
    enum hInfo
    {
    	Float:hEntrancex,
    	Float:hEntrancey,
    	Float:hEntrancez,
    	Float:hExitx,
    	Float:hExity,
    	Float:hExitz,
    	Float:hCarx,
    	Float:hCary,
    	Float:hCarz,
    	Float:hCarc,
    	hOwner[MAX_PLAYER_NAME],
    	hValue,
    	hHel,
    	hInt,
    	hLock,
    	hTakings,
    	hDate,
    	hKlass,
    	hVec,
    	hVcol1,
    	hVcol2,
    	hPickup,
    	hMIcon,
    	hVehSost,
    	hSafe[11],
    	hSafes[50],
    	hID,
    	Text3D:hExitText
    };
    new HouseInfo[990][hInfo];

    :
    public OnGameModeExit()
    {
        SaveMySQL(0);
    	for(new i = 1; i <= TOTALCASINO; i++) SaveMySQL(1,i);
    	for(new i = 1; i <= TOTALSHOPS; i++) SaveMySQL(3,i);
    	for(new i = 1; i <= TotalBizz; i++) SaveMySQL(4,i);
    	for(new i = 1; i <= TotalHouse; i++) SaveMySQL(5,i);
    	for(new i = 1; i <= ALLKVARTIRI; i++) SaveMySQL(6,i);
    	for(new i = 1; i <= AllPODEZD; i++) SaveMySQL(7,i);
    	for(new i = 1; i <= TOTALATM; i++) SaveMySQL(8,i);
    	for(new i = 1; i <= TOTALFARM; i++) SaveMySQL(9,i);
    	ClearReconnect();
    	GameModeExitFunc();
    	return true;
    }

    P.S.S: , ! , . :)
  2. #2
    Sir Edwin

      Edwin

    :
    :04.04.2013
    :4,364
    :788 [+/-] 
    MySQL
    #undef define



    11.7.16
  3. #3

      bul04ka

    :
    :08.02.2017
    :3
    :0 [+/-] 
    MySQL
    [12:46:56] [ERROR] mysql_format - no value for specifier "%f" available
    [12:46:56] [ERROR] mysql_format - no value for specifier "%f" available
    [12:46:56] [ERROR] mysql_format - no value for specifier "%i" available
    [12:46:56] [ERROR] mysql_format - no value for specifier "%i" available
    [12:46:56] [ERROR] mysql_format - no value for specifier "%i" available
    [12:46:56] [ERROR] mysql_format - no value for specifier "%i" available

    P.S: . ...
  4. #4
    Sir Edwin

      Edwin

    :
    :04.04.2013
    :4,364
    :788 [+/-] 
    .

    "%f" "", . ,
    #undef define



    11.7.16
  5. #5

      bul04ka

    :
    :08.02.2017
    :3
    :0 [+/-] 
    .

    "%f" "", . ,
    ? ?

, : 0

.

256, 613, , , , , , , , dos, , , , , html, , , , , mysql, , , , , playerid, sscanf,

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g