24.07.2012, 19:05
I try to install junkbuster 11 and we come out of these erors:
From gamemod:
from JunkBuster filterscript:
Код:
E:\SAMP\Nova fascikla (11)\Nova fascikla (4)\OVO\TechLand Xperia\pawno\include\JunkBuster.inc(477) : warning 201: redefinition of constant/macro (symbol "CreateVehicle") E:\SAMP\Nova fascikla (11)\Nova fascikla (4)\OVO\TechLand Xperia\pawno\include\JunkBuster.inc(484) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle") E:\SAMP\Nova fascikla (11)\Nova fascikla (4)\OVO\TechLand Xperia\pawno\include\JunkBuster.inc(491) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx") E:\SAMP\Nova fascikla (11)\Nova fascikla (4)\OVO\TechLand Xperia\gamemodes\CLRP.pwn(78805) : error 021: symbol already defined: "IsPlayerAdminCall" E:\SAMP\Nova fascikla (11)\Nova fascikla (4)\OVO\TechLand Xperia\gamemodes\CLRP.pwn(78806) : error 029: invalid expression, assumed zero E:\SAMP\Nova fascikla (11)\Nova fascikla (4)\OVO\TechLand Xperia\gamemodes\CLRP.pwn(78807) : error 001: expected token: ")", but found "return"
Код:
new RentBike[25];
new SmuggleCar[3];
new Text:logo2;
//RENT A CAR-------------------------------------------------------------------------------------------
RentCar[0] = AddStaticVehicleEx(426, 1556.1055908203, -2360.5578613281, 13.374654769897, 0.000000, -1, -1,3600); //161
RentCar[1] = AddStaticVehicleEx(540, 1530.0439453125, -2360.6708984375, 13.534155845642, 0.000000, -1, -1,3600); //162
RentCar[2] = AddStaticVehicleEx(546, 1549.4892578125, -2360.6350097656, 13.396503448486, 0.000000, -1, -1,3600); //163
RentCar[3] = AddStaticVehicleEx(547, 998.1879,-924.0609,41.9159,186.8638,-1,-1,3600); //164
RentCar[4] = AddStaticVehicleEx(458, 1542.974609375, -2360.6264648438, 13.524865150452, 0.000000, -1, -1,3600); //165
RentCar[5] = AddStaticVehicleEx(479, 1536.3571777344, -2360.7302246094, 13.45923614502, 0.000000, -1, -1,3600); //166
RentCar[6] = AddStaticVehicleEx(426, 1357.6626,-1749.2266,13.1146,89.2880,-1,-1,3600); //167
RentCar[7] = AddStaticVehicleEx(540, 1062.4990,-1743.1919,13.1994,89.8415,-1,-1,3600); //168
RentCar[8] = AddStaticVehicleEx(458, 1077.4459,-1754.8782,13.1321,89.5410,-1,-1,3600); //169
RentCar[9] = AddStaticVehicleEx(547, 1077.7404,-1766.7731,13.0992,270.1259,-1,-1,3600); //170
RentCar[10] = AddStaticVehicleEx(540, 1560.4209, -2338.3311, 13.4087, 91.0165, 53, 53,3600); //171
RentCar[11] = AddStaticVehicleEx(547, 1560.5836, -2335.2278, 13.2823, 90.2465, 122, 1,3600); //172
RentCar[12] = AddStaticVehicleEx(426, 1560.4023, -2331.8059, 13.2912, 89.8171, 11, 11,3600); //173
RentCar[13] = AddStaticVehicleEx(540, 1560.6273, -2328.6775, 13.4084, 89.3883, 42, 42,3600); //174
RentCar[14] = AddStaticVehicleEx(547, 1560.5616, -2325.2332, 13.2837, 90.4645, 66, 1,3600); //175
RentCar[15] = AddStaticVehicleEx(547, -1212.9794921875, -961.11212158203, 128.10562133789, 270, -1, -1,3600); //176
RentCar[16] = AddStaticVehicleEx(540, -1213.0913085938, -966.20660400391, 128.24513244629, 270, -1, -1,3600); //177
RentCar[17] = AddStaticVehicleEx(426, -1212.9156494141, -971.40100097656, 128.08563232422, 270, -1, -1,3600); //178
RentCar[18] = AddStaticVehicleEx(458, -1212.9578857422, -976.13439941406, 128.23583984375, 270, -1, -1,3600); //179
RentCar[19] = AddStaticVehicleEx(426, -1212.8996582031, -980.92279052734, 128.08563232422, 270, -1, -1,3600); //180
RentCar[20] = AddStaticVehicleEx(540, 1519.0217285156, -2360.4638671875, 13.534155845642, 0.000000, -1, -1,3600); //181
RentCar[21] = AddStaticVehicleEx(479, 1512.5151367188, -2360.6262207031, 13.45923614502, 0.000000, -1, -1,3600); //182
RentCar[22] = AddStaticVehicleEx(458, 1505.6219482422, -2361.0327148438, 13.524865150452, 0.000000, -1, -1,3600); //183
RentCar[23] = AddStaticVehicleEx(546, 1499.2687988281, -2361.037109375, 13.396503448486, 0.000000, -1, -1,3600); //184
RentCar[24] = AddStaticVehicleEx(426, 1492.6125488281, -2360.7072753906, 13.374654769897, 0.000000, -1, -1,3600); //185
//SVERCER DROGE------------------------------------------------------------------------------------------
SmuggleCar[0] = AddStaticVehicleEx(442,1097.7876,-1327.8087,13.1820,2.3556,3,13,30000); // Drugs smuggler car 243
SmuggleCar[1] = AddStaticVehicleEx(442,1110.4362,-1327.9688,13.1654,1.1852,3,13,30000); // Drugs smuggler car 244
SmuggleCar[2] = AddStaticVehicleEx(442,1123.7722,-1327.3230,13.2222,359.7142,3,13,30000); // Drugs smuggler car 245
public IsPlayerAdminCall(playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
return 1;
else
return 0;
}
public IsPlayerAdminCall(playerid)
{
if(/* Missing part: Is playerid admin? */)
return 1; // If yes, return 1.
else
return 0; // If no, return 0.
}
Код:
PUBLIC: JB::CreateVehicle (vehicletype, Float: x, Float: y, Float: z, Float: rotation, color1, color2, respawn_delay)
{
new vehicleid = CreateVehicle (vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
if (vehicleid != INVALID_VEHICLE_ID)
{
JB::VehiclePos [vehicleid][0] = x;
JB::VehiclePos [vehicleid][1] = y;
JB::VehiclePos [vehicleid][2] = z;
for (new i = 0; i < MAX_COMPONENT_SLOTS; ++i)
JB::VehicleComponents [vehicleid]{i} = 0;
}
return vehicleid;
}
PUBLIC: JB::AddStaticVehicle (modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2)
{
new vehicleid = AddStaticVehicle (modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2);
if (vehicleid != INVALID_VEHICLE_ID)
{
JB::VehiclePos [vehicleid][0] = spawn_x;
JB::VehiclePos [vehicleid][1] = spawn_y;
JB::VehiclePos [vehicleid][2] = spawn_z;
for (new i = 0; i < MAX_COMPONENT_SLOTS; ++i)
JB::VehicleComponents [vehicleid]{i} = 0;
}
return vehicleid;
}
PUBLIC: JB::AddStaticVehicleEx (modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, respawn_delay)
{
new vehicleid = AddStaticVehicleEx (modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, respawn_delay);
if (vehicleid != INVALID_VEHICLE_ID)
{
JB::VehiclePos [vehicleid][0] = spawn_x;
JB::VehiclePos [vehicleid][1] = spawn_y;
JB::VehiclePos [vehicleid][2] = spawn_z;
for (new i = 0; i < MAX_COMPONENT_SLOTS; ++i)
JB::VehicleComponents [vehicleid]{i} = 0;
}
return vehicleid;
}

