Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

/addveh

Статус
В этой теме нельзя размещать новые ответы.

alexeay

Умник
Вставляю команду пишит ошибки
вот команда
PHP:
if(strcmp(cmd, "/addveh", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 12)
            {
                if(!IsPlayerInAnyVehicle(playerid))
                {
                    SendClientMessage(playerid,COLOR_GREY,"Тебе нужно быть в транспорте");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "ИНФО: /addveh [carid] [color1] [color2] [цена] [левел]");
                    return 1;
                }
                new car;
                car = strval(tmp);
                if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "От 400 до 611!"); return 1; }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "ИНФО: /addveh [carid] [color1] [color2] [цена] [левел]");
                    return 1;
                }
                new color1;
                color1 = strval(tmp);
                if(color1 < 0 || color1 > 300) { SendClientMessage(playerid, COLOR_GREY, "Цвет лишь от 0 до 300!"); return 1; }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "ИНФО: /addveh [carid] [color1] [color2] [цена] [левел]");
                    return 1;
                }
                new color2;
                color2 = strval(tmp);
                if(color2 < 0 || color2 > 300) { SendClientMessage(playerid, COLOR_GREY, "Цвет от 0 до 300!"); return 1; }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "ИНФО: /addveh [carid] [color1] [color2] [цена] [левел]");
                    return 1;
                }
                new price;
                price = strval(tmp);
                if(price < 1 ) { SendClientMessage(playerid, COLOR_GREY, "Цена не меньше $1"); return 1; }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "ИНФО: /addveh [carid] [color1] [color2] [цена] [левел]");
                    return 1;
                }
                new key;
                key = strval(tmp);
                if(key < 1 ) { SendClientMessage(playerid, COLOR_GREY, "Левел должен быть не меньше 1!"); return 1; }
                tmp = strtok(cmdtext, idx);
                new Float:X,Float:Y,Float:Z,Float:Q;
                GetVehiclePos(GetPlayerVehicleID(playerid), X,Y,Z);
                GetVehicleZAngle(GetPlayerVehicleID(playerid),Q);
                CAR_PROD ++;
                AutoInfo[CAR_PROD][aStats]=0;
                AutoInfo[CAR_PROD][aModel]=car;
                AutoInfo[CAR_PROD][aAutoX]=X;
                AutoInfo[CAR_PROD][aAutoY]=Y;
                AutoInfo[CAR_PROD][aAutoZ]=Z;
                AutoInfo[CAR_PROD][aAutoAngle]=Q;
                AutoInfo[CAR_PROD][aColor1]=color1;
                AutoInfo[CAR_PROD][aColor2]=color2;
                AutoInfo[CAR_PROD][aPrice]=price;
                AutoInfo[CAR_PROD][aKey]=key;
                AutoInfo[CAR_PROD][a0]=0;
                AutoInfo[CAR_PROD][a1]=0;
                AutoInfo[CAR_PROD][a2]=0;
                AutoInfo[CAR_PROD][a3]=0;
                AutoInfo[CAR_PROD][a4]=0;
                AutoInfo[CAR_PROD][a5]=0;
                AutoInfo[CAR_PROD][a6]=0;
                AutoInfo[CAR_PROD][a7]=0;
                AutoInfo[CAR_PROD][a8]=0;
                AutoInfo[CAR_PROD][a9]=0;
                AutoInfo[CAR_PROD][a10]=0;
                AutoInfo[CAR_PROD][a11]=0;
                AutoInfo[CAR_PROD][a12]=0;
                AutoInfo[CAR_PROD][a13]=0;
                AutoInfo[CAR_PROD][aPaintJob]=0;
                strmid(AutoInfo[CAR_PROD][aOwner], "The State", 0, 9, 999);
                SaveStuff();
                SaveAuto();
                format(string, sizeof(string), "* Машина на продажу номер %d создана.", CAR_PROD);
                SendClientMessage(playerid, COLOR_GREY, string);
            }
            return 1;
        }

    }
Вот ошибки
PHP:
C:\Documents and Settings\Admin\Рабочий стол\alexeay\Teleport Pro\maksmod2.pwn(14158) : error 017: undefined symbol "CAR_PROD"
C:\Documents and Settings\Admin\Рабочий стол\alexeay\Teleport Pro\maksmod2.pwn(14158) : warning 215: expression has no effect
C:\Documents and Settings\Admin\Рабочий стол\alexeay\Teleport Pro\maksmod2.pwn(14159) : error 017: undefined symbol "AutoInfo"
C:\Documents and Settings\Admin\Рабочий стол\alexeay\Teleport Pro\maksmod2.pwn(14159) : error 017: undefined symbol "CAR_PROD"
C:\Documents and Settings\Admin\Рабочий стол\alexeay\Teleport Pro\maksmod2.pwn(14159) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin\Рабочий стол\alexeay\Teleport Pro\maksmod2.pwn(14159) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Просьба помочь вставить и что-бы компилировалось без ошибок поставлю +сики
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу