shape1
shape2
shape3
shape4
shape7
shape8

error 001: expected token: ";", but found ")"


JekaMix

Новичок
Пользователь
02.01.2020
8
0
0
case D_CONT1:
{
if(!response) return 1;
new cena = 700000;
if(PI[playerid][pCash] < cena) return SendClientMessage(playerid, -1, "Тут слова.");
MysqlUpdatePlayerInt(playerid, "cash",PI[playerid][pCash]);
ConteinerOpen(playerid,1); //Ошибка тут
PI[playerid][pCash] -= cena;
new string[50];
format(string, 50, "%d", PI[playerid][pCash]);
PlayerTextDrawSetString(playerid, PTD_CASH[playerid][10], string);
}


Помогите плез

 

Alexander_Batrakov

Новичок
Пользователь
13.09.2019
255
2
0
0
25
Игрок
Скидывайте сюда сток или событие этой функции 

Я просто не знаю как функция у вас под стоком или событием 

Код этой функции 

ConteinerOpen(playerid,1);


скидывайте, под спойлер желательно.

 

JekaMix

Новичок
Пользователь
02.01.2020
8
0
0
stock ConteinerOpen(playerid,cont)
{
    if(cont == 1)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Âàì íè÷åãî íå âûïàëî");
            }
            case 11..40:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü ÂÀÇ");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('404', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 41..100:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü Lada Êàëèíà");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('411', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 101..105:
            {
                new rand1 = random(500000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 106..110:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü ÂÀÇ 2109");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('492', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
        }
        SendClientMessage(playerid, -1, "Âû îòêðûëè êîíòåéíåð èç {008080}Ðîññèè");
    }
    if(cont == 2)
    {
        new rand = random(220);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Âàì íè÷åãî íå âûïàëî");
            }
            case 11..40:
            {
                GivePlayerWeaponAC(playerid, 27, 1000);
            }
            case 41..100:
            {
                GivePlayerWeaponAC(playerid, 33, 1000);
            }
            case 101..105:
            {
                new rand1 = random (500000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 106..140:
            {
                GivePlayerWeaponAC(playerid, 9, 1);
            }
            case 141..180:
            {
                GivePlayerWeaponAC(playerid, 31, 2000);
            }
            case 181..220:
            {
                GivePlayerWeaponAC(playerid, 24, 500);
            }
        }
        SendClientMessage(playerid, -1, "Âû îòêðûëè êîíòåéíåð ñ {008080}Îðóæèåì");
    }
    if(cont == 3)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Âàì íè÷åãî íå âûïàëî");
            }
            case 11..40:
            {
               SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü BMX X5");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('400', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 41..100:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü BMW 535i");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('466', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 101..110:
            {
                new rand1 = random (500000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
        }
        SendClientMessage(playerid, -1, "Âû îòêðûëè êîíòåéíåð èç {008080}Ãåðìàíèè");
    }
    if(cont == 4)
    {
        new rand = random(110);
        new stringg[128];
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Âàì íè÷åãî íå âûïàëî");
            }
            case 11..40:
            {
                new rand1 = random (50) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
            case 41..100:
            {
                new rand1 = random (100) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
            case 101..108:
            {
                new rand1 = random (200) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
            case 109..110:
            {
                new rand1 = random (5000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
        }
        SendClientMessage(playerid, -1, "Âû îòêðûëè êîíòåéíåð ñ {008080}"SERVER_COINS"");
    }
    if(cont == 5)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Âàì íè÷åãî íå âûïàëî");
            }
            case 11..40:
            {
                new rand1 = random (7000000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 41..100:
            {
                new rand1 = random (5000000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 101..105:
            {
                new rand1 = random (50000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 106..110:
            {
                new rand1 = random (10000000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Âàì âûïàëî %d ðóáëåé", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
        }
        SendClientMessage(playerid, -1, "Âû îòêðûëè êîíòåéíåð ñ {008080}Äåíüãàìè");
    }
    if(cont == 6)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Âàì íè÷åãî íå âûïàëî");
            }
            case 11..40:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü 1");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('434', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 41..100:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü 2");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('451', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 101..105:
            {
            SendClientMessage(playerid, -1, "Âàì âûïàë àâòîìîáèëü 3");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('494', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
        }
        SendClientMessage(playerid, -1, "Âû îòêðûëè êîíòåéíåð èç {008080}Ðîññèè");
    }
}
Вот stock   @Alexander_Batrakov

 
Последнее редактирование модератором:

Alexander_Batrakov

Новичок
Пользователь
13.09.2019
255
2
0
0
25
Игрок
@JekaMix Тестируйте.

Код:
forward ConteinerOpen(playerid,count);
public ConteinerOpen(playerid,count)
{
    count += GetPVarInt(playerid,"count");
    if(GetPVarInt(playerid,"count") == 1)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Вам ничего не выпало");
            }
            case 11..40:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль ВАЗ");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('404', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 41..100:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль Lada Калина");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('411', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 101..105:
            {
                new rand1 = random(500000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 106..110:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль ВАЗ 2109");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('492', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
        }
        SendClientMessage(playerid, -1, "Вы открыли контейнер из {008080}России");
    }
    else if(GetPVarInt(playerid,"count") == 2)
    {
        new rand = random(220);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Вам ничего не выпало");
            }
            case 11..40:
            {
                GivePlayerWeaponAC(playerid, 27, 1000);
            }
            case 41..100:
            {
                GivePlayerWeaponAC(playerid, 33, 1000);
            }
            case 101..105:
            {
                new rand1 = random (500000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 106..140:
            {
                GivePlayerWeaponAC(playerid, 9, 1);
            }
            case 141..180:
            {
                GivePlayerWeaponAC(playerid, 31, 2000);
            }
            case 181..220:
            {
                GivePlayerWeaponAC(playerid, 24, 500);
            }
        }
        SendClientMessage(playerid, -1, "Вы открыли контейнер с {008080}Оружием");
    }
    else if(GetPVarInt(playerid,"count") == 3)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Вам ничего не выпало");
            }
            case 11..40:
            {
               SendClientMessage(playerid, -1, "Вам выпал автомобиль BMX X5");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('400', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 41..100:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль BMW 535i");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('466', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 101..110:
            {
                new rand1 = random (500000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
        }
        SendClientMessage(playerid, -1, "Вы открыли контейнер из {008080}Германии");
    }
    else if(GetPVarInt(playerid,"count") == 4)
    {
        new rand = random(110);
        new stringg[128];
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Вам ничего не выпало");
            }
            case 11..40:
            {
                new rand1 = random (50) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
            case 41..100:
            {
                new rand1 = random (100) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
            case 101..108:
            {
                new rand1 = random (200) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
            case 109..110:
            {
                new rand1 = random (5000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d "SERVER_COINS"", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                format(stringg, sizeof(stringg), "UPDATE "T_ACCOUNTS" SET credits=%d WHERE name='%s'", PI[playerid][pElegantCoins]+rand1, GetName(playerid));
                mysql_tquery(dbHandle, stringg, "", "");
                PI[playerid][pElegantCoins] += rand1;
            }
        }
        SendClientMessage(playerid, -1, "Вы открыли контейнер с {008080}"SERVER_COINS"");
    }
    else if(GetPVarInt(playerid,"count") == 5)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Вам ничего не выпало");
            }
            case 11..40:
            {
                new rand1 = random (7000000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 41..100:
            {
                new rand1 = random (5000000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 101..105:
            {
                new rand1 = random (50000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
            case 106..110:
            {
                new rand1 = random (10000000) + 1;
                new textpobeda[128];
                format(textpobeda, sizeof(textpobeda), "Вам выпало %d рублей", rand1);
                SendClientMessage(playerid, -1, textpobeda);
                TransferMoney(-1, playerid, rand1);
            }
        }
        SendClientMessage(playerid, -1, "Вы открыли контейнер с {008080}Деньгами");
    }
    else if(GetPVarInt(playerid,"count") == 6)
    {
        new rand = random(110);
        switch(rand)
        {
            case 0..10:
            {
                SendClientMessage(playerid, -1, "Вам ничего не выпало");
            }
            case 11..40:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль 1");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('434', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 41..100:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль 2");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('451', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
            case 101..105:
            {
            SendClientMessage(playerid, -1, "Вам выпал автомобиль 3");
            global_string = "";
            mysql_format(dbHandle, global_string, 500, "\
            INSERT INTO `ownable_cars` (c_model, c_x, c_y, c_z, c_a, c_class, c_owner, c_fuel, c_color1, c_color2, c_lock, c_price) VALUES \
            ('494', '0', '0', '0', '0', '1', '%s', '45', '1', '1', '1', '2000000')",
            GetName(playerid));
            mysql_tquery(dbHandle, global_string, "", "");
            }
        }
        SendClientMessage(playerid, -1, "Вы открыли контейнер из {008080}России");
    }
}


Код:
ConteinerOpen(playerid, 1);
Числа 1,2,3,4,5,6
 

Alexander_Batrakov

Новичок
Пользователь
13.09.2019
255
2
0
0
25
Игрок
@JekaMix Кейс

Код:
case D_CONT1:
{
	if(response)
        {
          	new cena = 700000;
          	if(PI[playerid][pCash] < cena) return SendClientMessage(playerid, -1, "текст.");
          	MysqlUpdatePlayerInt(playerid, "cash",PI[playerid][pCash]);
          	ConteinerOpen(playerid, 1);
          	PI[playerid][pCash] -= cena;
          	new string[50];
          	format(string, 50, "%d", PI[playerid][pCash]);
          	PlayerTextDrawSetString(playerid, PTD_CASH[playerid][10], string);
	}
}



 

Alexander_Batrakov

Новичок
Пользователь
13.09.2019
255
2
0
0
25
Игрок
@JekaMix Скидывайте в архиве 2 папки pawno и gamemodes. Мне в личные сообщения на форуме.