shape1
shape2
shape3
shape4
shape7
shape8

Ошибки


Alexandr

Новичок
Пользователь
03.11.2014
138
2
0
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);

По этой строке вот такие ошибки и варнинги:

C:\Users\1\Desktop\ENRP.pwn(33728) : warning 213: tag mismatch
C:\Users\1\Desktop\ENRP.pwn(33728) : error 001: expected token: ",", but found "["
C:\Users\1\Desktop\ENRP.pwn(33728) : error 029: invalid expression, assumed zero
C:\Users\1\Desktop\ENRP.pwn(33728) : warning 215: expression has no effect
C:\Users\1\Desktop\ENRP.pwn(33728) : error 001: expected token: ";", but found "]"
C:\Users\1\Desktop\ENRP.pwn(33728) : fatal error 107: too many error messages on one line



Мне хотя-бы исправить Error`s.

Заранее большое спасибо за ответы.
 

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер
Дайте весь код полностью посмотреть.

 

Alexander1

Освоившийся
Пользователь
18.02.2015
205
55
0
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);



По этой строке вот такие ошибки и варнинги:

C:\Users\1\Desktop\ENRP.pwn(33728) : warning 213: tag mismatch
C:\Users\1\Desktop\ENRP.pwn(33728) : error 001: expected token: ",", but found "["
C:\Users\1\Desktop\ENRP.pwn(33728) : error 029: invalid expression, assumed zero
C:\Users\1\Desktop\ENRP.pwn(33728) : warning 215: expression has no effect
C:\Users\1\Desktop\ENRP.pwn(33728) : error 001: expected token: ";", but found "]"
C:\Users\1\Desktop\ENRP.pwn(33728) : fatal error 107: too many error messages on one line
Мне хотя-бы исправить Error`s.

Заранее большое спасибо за ответы.

GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);

попробуйте заменить.
 
Последнее редактирование модератором:

Alexandr

Новичок
Пользователь
03.11.2014
138
2
0
Дайте весь код полностью посмотреть.
if(strcmp(cmd, "/savecar", true) == 0)
{
   if(!IsPlayerInVehicle(playerid, GetPVarInt(playerid,"Create_Car"))) return SendClientMessage(playerid, -1, "Вы должны быть в специально созданном авто!");
   if(PlayerInfo[playerid][pAdmin] <= 9)
   {
new carid = GetPlayerVehicleID(playerid);
new model = GetVehicleModel(carid);
if(IsARpavto3(model))
{
if(!GetPVarInt(playerid,"Create_Car")) return SendClientMessage(playerid, -1, "Вы не создавали авто /addcar!");
  if(zakazavtoid[playerid] >= 400){return 1;}
if(PlayerInfo[playerid][pAdmin] < 9) return SendClientMessage(playerid, -1, "У вас нет прав на использование этой команды!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /savecar [Сумма]");
new money = strval(tmp);
AllCars++;
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPx],CarInfo[AllCars][cPy],CarInfo[AllCars][cPz]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAa]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPa]);
CarInfo[AllCars][cID] = GetPVarInt(playerid,"Create_Car");
CarInfo[AllCars][cMod] = GetVehicleModel(GetPVarInt(playerid,"Create_Car"));
CarInfo[AllCars][cCol1] = -1;
CarInfo[AllCars][cCol2] = -1;
format(CarInfo[AllCars][cOwner],24,"Nones");
format(CarInfo[AllCars][cOwnerm],24,"Nones");
CarInfo[AllCars][cLock] = 0;
CarInfo[AllCars][cPrice] = money;
CarInfo[AllCars][cSport] = 0;
CarInfo[AllCars][cLocke] = 0;
CarInfo[AllCars][cAntiradar] = 0;
CarInfo[AllCars][cDatam] = 0;
CarInfo[AllCars][cDatad] = 0;
CarInfo[AllCars][cNitros] = 0;
CarInfo[AllCars][cProbeg] = 0;
CarInfo[AllCars][cArest] = 0;
    CarInfo[AllCars][cType] = 1;
    new cars = GetPlayerVehicleID(playerid);
    CarInfo[cars][cPaintJob] = -1;
    CarInfo[AllCars][cPaintJob] = -1;
    CarInfo[cars][cType] = 1;
format(CarInfo[AllCars][cPArest],32,"Nones");
format(CarInfo[AllCars][cNumber],64,"None");
new iniOpen = ini_openFile("cars.cfg");
ini_setInteger(iniOpen, "AllCars", AllCars);
ini_closeFile(iniOpen);
DeletePVar(playerid,"Create_Car");
CarLabel[CarInfo[AllCars][cID]] = Create3DTextLabel("Транзитка\nПродаётся",0xFFFF00FF, 0.0, 0.0, 0.0,40.0,0,0);
Attach3DTextLabelToVehicle(CarLabel[CarInfo[AllCars][cID]] , CarInfo[AllCars][cID], 0.0, 0.0, 1.1);
CreateCar(AllCars);
SendClientMessage(playerid, COLOR_GRAD2, "Авто успешно создано");
}
}
else
{
if(PlayerInfo[playerid][pAdmin] == 10)
   {
if(!GetPVarInt(playerid,"Create_Car")) return SendClientMessage(playerid, -1, "Вы не создавали авто /addcar!");
  if(zakazavtoid[playerid] >= 400){return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /savecar [Сумма]");
new money = strval(tmp);
AllCars++;
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPx],CarInfo[AllCars][cPy],CarInfo[AllCars][cPz]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAa]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPa]);
CarInfo[AllCars][cID] = GetPVarInt(playerid,"Create_Car");
CarInfo[AllCars][cMod] = GetVehicleModel(GetPVarInt(playerid,"Create_Car"));
CarInfo[AllCars][cCol1] = -1;
CarInfo[AllCars][cCol2] = -1;
format(CarInfo[AllCars][cOwnerm],32,"Nones");
format(CarInfo[AllCars][cOwner],24,"Nones");
CarInfo[AllCars][cLock] = 0;
CarInfo[AllCars][cPrice] = money;
CarInfo[AllCars][cSport] = 0;
CarInfo[AllCars][cLocke] = 0;
CarInfo[AllCars][cAntiradar] = 0;
CarInfo[AllCars][cDatam] = 0;
CarInfo[AllCars][cDatad] = 0;
CarInfo[AllCars][cNitros] = 0;
CarInfo[AllCars][cProbeg] = 0;
CarInfo[AllCars][cArest] = 0;
    CarInfo[AllCars][cType] = 1;
    new cars = GetPlayerVehicleID(playerid);
    CarInfo[cars][cPaintJob] = -1;
    CarInfo[AllCars][cPaintJob] = -1;
    CarInfo[cars][cType] = 1;
format(CarInfo[AllCars][cPArest],32,"Nones");
format(CarInfo[AllCars][cNumber],64,"None");
new iniOpen = ini_openFile("cars.cfg");
ini_setInteger(iniOpen, "AllCars", AllCars);
ini_closeFile(iniOpen);
DeletePVar(playerid,"Create_Car");
CarLabel[CarInfo[AllCars][cID]] = Create3DTextLabel("Транзитка\nПродаётся",0xFFFF00FF, 0.0, 0.0, 0.0,40.0,0,0);
Attach3DTextLabelToVehicle(CarLabel[CarInfo[AllCars][cID]] , CarInfo[AllCars][cID], 0.0, 0.0, 1.1);
CreateCar(AllCars);
SendClientMessage(playerid, COLOR_GRAD2, "Авто успешно создано");
}
}
return true;
}
 

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер
Переменные cAx, cAy, cAz точно Float ?

 

Alexander1

Освоившийся
Пользователь
18.02.2015
205
55
0
if(strcmp(cmd, "/savecar", true) == 0)
{
   if(!IsPlayerInVehicle(playerid, GetPVarInt(playerid,"Create_Car"))) return SendClientMessage(playerid, -1, "Вы должны быть в специально созданном авто!");
   if(PlayerInfo[playerid][pAdmin] <= 9)
   {
new carid = GetPlayerVehicleID(playerid);
new model = GetVehicleModel(carid);
if(IsARpavto3(model))
{
if(!GetPVarInt(playerid,"Create_Car")) return SendClientMessage(playerid, -1, "Вы не создавали авто /addcar!");
  if(zakazavtoid[playerid] >= 400){return 1;}
if(PlayerInfo[playerid][pAdmin] < 9) return SendClientMessage(playerid, -1, "У вас нет прав на использование этой команды!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /savecar [Сумма]");
new money = strval(tmp);
AllCars++;
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPx],CarInfo[AllCars][cPy],CarInfo[AllCars][cPz]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAa]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPa]);
CarInfo[AllCars][cID] = GetPVarInt(playerid,"Create_Car");
CarInfo[AllCars][cMod] = GetVehicleModel(GetPVarInt(playerid,"Create_Car"));
CarInfo[AllCars][cCol1] = -1;
CarInfo[AllCars][cCol2] = -1;
format(CarInfo[AllCars][cOwner],24,"Nones");
format(CarInfo[AllCars][cOwnerm],24,"Nones");
CarInfo[AllCars][cLock] = 0;
CarInfo[AllCars][cPrice] = money;
CarInfo[AllCars][cSport] = 0;
CarInfo[AllCars][cLocke] = 0;
CarInfo[AllCars][cAntiradar] = 0;
CarInfo[AllCars][cDatam] = 0;
CarInfo[AllCars][cDatad] = 0;
CarInfo[AllCars][cNitros] = 0;
CarInfo[AllCars][cProbeg] = 0;
CarInfo[AllCars][cArest] = 0;
    CarInfo[AllCars][cType] = 1;
    new cars = GetPlayerVehicleID(playerid);
    CarInfo[cars][cPaintJob] = -1;
    CarInfo[AllCars][cPaintJob] = -1;
    CarInfo[cars][cType] = 1;
format(CarInfo[AllCars][cPArest],32,"Nones");
format(CarInfo[AllCars][cNumber],64,"None");
new iniOpen = ini_openFile("cars.cfg");
ini_setInteger(iniOpen, "AllCars", AllCars);
ini_closeFile(iniOpen);
DeletePVar(playerid,"Create_Car");
CarLabel[CarInfo[AllCars][cID]] = Create3DTextLabel("Транзитка\nПродаётся",0xFFFF00FF, 0.0, 0.0, 0.0,40.0,0,0);
Attach3DTextLabelToVehicle(CarLabel[CarInfo[AllCars][cID]] , CarInfo[AllCars][cID], 0.0, 0.0, 1.1);
CreateCar(AllCars);
SendClientMessage(playerid, COLOR_GRAD2, "Авто успешно создано");
}
}
else
{
if(PlayerInfo[playerid][pAdmin] == 10)
   {
if(!GetPVarInt(playerid,"Create_Car")) return SendClientMessage(playerid, -1, "Вы не создавали авто /addcar!");
  if(zakazavtoid[playerid] >= 400){return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /savecar [Сумма]");
new money = strval(tmp);
AllCars++;
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPx],CarInfo[AllCars][cPy],CarInfo[AllCars][cPz]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAa]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPa]);
CarInfo[AllCars][cID] = GetPVarInt(playerid,"Create_Car");
CarInfo[AllCars][cMod] = GetVehicleModel(GetPVarInt(playerid,"Create_Car"));
CarInfo[AllCars][cCol1] = -1;
CarInfo[AllCars][cCol2] = -1;
format(CarInfo[AllCars][cOwnerm],32,"Nones");
format(CarInfo[AllCars][cOwner],24,"Nones");
CarInfo[AllCars][cLock] = 0;
CarInfo[AllCars][cPrice] = money;
CarInfo[AllCars][cSport] = 0;
CarInfo[AllCars][cLocke] = 0;
CarInfo[AllCars][cAntiradar] = 0;
CarInfo[AllCars][cDatam] = 0;
CarInfo[AllCars][cDatad] = 0;
CarInfo[AllCars][cNitros] = 0;
CarInfo[AllCars][cProbeg] = 0;
CarInfo[AllCars][cArest] = 0;
    CarInfo[AllCars][cType] = 1;
    new cars = GetPlayerVehicleID(playerid);
    CarInfo[cars][cPaintJob] = -1;
    CarInfo[AllCars][cPaintJob] = -1;
    CarInfo[cars][cType] = 1;
format(CarInfo[AllCars][cPArest],32,"Nones");
format(CarInfo[AllCars][cNumber],64,"None");
new iniOpen = ini_openFile("cars.cfg");
ini_setInteger(iniOpen, "AllCars", AllCars);
ini_closeFile(iniOpen);
DeletePVar(playerid,"Create_Car");
CarLabel[CarInfo[AllCars][cID]] = Create3DTextLabel("Транзитка\nПродаётся",0xFFFF00FF, 0.0, 0.0, 0.0,40.0,0,0);
Attach3DTextLabelToVehicle(CarLabel[CarInfo[AllCars][cID]] , CarInfo[AllCars][cID], 0.0, 0.0, 1.1);
CreateCar(AllCars);
SendClientMessage(playerid, COLOR_GRAD2, "Авто успешно создано");
}
}
return true;
}
Замени на это

if(strcmp(cmd, "/savecar", true) == 0)

{
   if(!GetPVarInt(playerid,"Create_Car")) return SendClientMessage(playerid, -1, "Вы не создавали авто /addcar!");
   if(!IsPlayerInVehicle(playerid, GetPVarInt(playerid,"Create_Car"))) return SendClientMessage(playerid, -1, "Вы должны быть в специаоно созданном авто!");
        if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, -1, "У вас нет прав на использование этой команды!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /savecar [Сумма]");
new money = strval(tmp);
AllCars++;
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAx],CarInfo[AllCars][cAy],CarInfo[AllCars][cAz]);
GetVehiclePos(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPx],CarInfo[AllCars][cPy],CarInfo[AllCars][cPz]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cAa]);
GetVehicleZAngle(GetPVarInt(playerid,"Create_Car"), CarInfo[AllCars][cPa]);
CarInfo[AllCars][cID] = GetPVarInt(playerid,"Create_Car");
CarInfo[AllCars][cMod] = GetVehicleModel(GetPVarInt(playerid,"Create_Car"));
CarInfo[AllCars][cCol1] = -1;
CarInfo[AllCars][cCol2] = -1;
format(CarInfo[AllCars][cOwner],24,"Nones");
CarInfo[AllCars][cLock] = 0;
CarInfo[AllCars][cPrice] = money;
CarInfo[AllCars][cSpoiler] = 0;
CarInfo[AllCars][cHood] = 0;
CarInfo[AllCars][cSideskirt] = 0;
CarInfo[AllCars][cNitro] = 0;
CarInfo[AllCars][cLamps] = 0;
CarInfo[AllCars][cExhaust] = 0;
CarInfo[AllCars][cWheels] = 0;
CarInfo[AllCars][cRoof] = 0;
CarInfo[AllCars][cStereo] = 0;
CarInfo[AllCars][cHydraulics] = 0;
CarInfo[AllCars][cBullbar] = 0;
CarInfo[AllCars][cRearBullbars] = 0;
CarInfo[AllCars][cFrontSign] = 0;
CarInfo[AllCars][cFrontBullbars] = 0;
CarInfo[AllCars][cFrontBumper] = 0;
CarInfo[AllCars][cRearBumper] = 0;
CarInfo[AllCars][cVents] = 0;
CarInfo[AllCars][cPaintJob] = -1;
CarInfo[AllCars][cArest] = 0;
format(CarInfo[AllCars][cPArest],32,"Nones");
format(CarInfo[AllCars][cNumber],64,"None");
new iniOpen = ini_openFile("cars.cfg");
ini_setInteger(iniOpen, "AllCars", AllCars);
ini_closeFile(iniOpen);
DeletePVar(playerid,"Create_Car");
   CarLabel[CarInfo[AllCars][cID]] = Create3DTextLabel("-----\nПродаётся",0xFFFF00FF, 0.0, 0.0, 0.0,40.0,0,0);
   Attach3DTextLabelToVehicle(CarLabel[CarInfo[AllCars][cID]] , CarInfo[AllCars][cID], 0.0, 0.0, 1.1);
CreateCar(AllCars);
SendClientMessage(playerid, COLOR_GRAD2, "Авто успешно создано");
return 1;
}
 
Последнее редактирование модератором:

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер
Покажите enum где cAx и cPx

 

Alexandr

Новичок
Пользователь
03.11.2014
138
2
0
Покажите enum где cAx и cPx
enum CarsInfo
{
cID,
cMod,
Float:cAx,
Float:cAy,
Float:cAz,
Float:cAa,
Float:cAz1,
Float:cAz2,
Float:cAz3,
cCol1,
cCol2,
cOwner[24],
cOwnerm[32],
Float:cPx,
Float:cPy,
Float:cPz,
Float:cPa,
cLock,
cPrice,
cSpoiler,
cHood,
cSideskirt,
cNitro,
cExhaust,
cWheels,
cRoof,
cStereo,
cHydraulics,
cBullbar,
cRearBullbars,
cFrontSign,
cFrontBullbars,
cFrontBumper,
cRearBumper,
cVents,
cResc,
cPaintJob,
cNitros,
cLocke,
cTrans,
cKruiz,
cKruizbuy,
cLamps,
cSport,
Float:cProbeg,
cArrest,
cPArest[32],
cPArestNick[32],
cNumber[64],
cArest,
cAntiradar,
cDatam,
cDatad,
cAlarm,
NeonID,
cAlarmOn,
cType,
cTypetune[10],
cSlotsfortune,
cObjonveh[10]
};
 
Последнее редактирование модератором:

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер
Попробуйте заменить эту строку

if(IsARpavto3(model))

На эту

Код:
if(IsARpavto3(carid))
 

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер
Попробуйте закомментировать строку на которую жалуется компилятор и попробуйте скомпилировать, о результатах отпишитесь.

 

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
550
0
26
definehost.ru
Скриптер
Нет, не зная мода, визуально не помочь. Скиньте pwn мода.