error 010: invalid function or declaration -
ZachKnoxx - 22.12.2013
C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\IBS\gamemodes\IBS.pwn(27057 -- 29179) : error 010: invalid function or declaration
C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\IBS\gamemodes\IBS.pwn(27057 -- 29181) : error 010: invalid function or declaration
C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\IBS\gamemodes\IBS.pwn(27057 -- 29183) : error 010: invalid function or declaration
C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\IBS\gamemodes\IBS.pwn(27057 -- 29183) : fatal error 107: too many error messages on one line
pawn Код:
else if(dialogid == 120)//cheats
{
if(response)
{
switch(listitem)
{
case 0:
{
if(aMark[playerid][0] == 0 && aMark[playerid][1] == 0 && aMark[playerid][2] == 0) return SendClientMessage(playerid, COLOR_GREY, "You haven't marked a teleportation point.");
SetPlayerPos(playerid,aMark[playerid][0], aMark[playerid][1], aMark[playerid][2]);
SetPlayerInterior(playerid, aMarkInt[playerid]);
SetPlayerVirtualWorld(playerid, aMarkVw[playerid]);
return 1;
}
case 1:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1515.2551,-1666.3148,14.0469);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Los Santos.");
return 1;
}
case 2:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1559.7308,-1246.2534,277.8779);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Skyscraper Roof Top.");
return 1;
}
case 3:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1611.2932,-1893.8231,13.5469);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the warehouse.");
return 1;
}
case 4:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1755.4490,-1894.2390,13.5567);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Unity.");
return 1;
}
case 5:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2096.3853,-1806.3462,13.5525);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Pizza Stack.");
return 1;
}
case 6:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2330.1292,-2315.3689,13.54697);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Mechanic Job.");
return 1;
}
case 7:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1752.9026,-2112.7397,13.4668);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the El Corona.");
return 1;
}
case 8:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,648.6083,-1360.7505,13.5880);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the San News.");
return 1;
}
case 9:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2804.4265,-1088.1079,30.7291);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Las Colinas Strip Club.");
return 1;
}
case 10:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,556.2163,-1258.2043,17.2422);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Grotti.");
return 1;
}
case 11:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,952.9167,-1101.9977,23.8568);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to LS Cemetary.");
return 1;
}
case 12:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2220.6660,-1139.2246,25.6772);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Jefferson.");
return 1;
}
case 13:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,202.1886,1881.4122,17.2199);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the area51.");
return 1;
}
case 14:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2058.6326,-1914.0176,13.5469);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the DMV.");
return 1;
}
case 15:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2224.8137,-1723.4457,13.5625);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Gym.");
return 1;
}
case 16:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,376.3239,-2028.6012,7.8301);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Big Wheel Rods.");
return 1;
}
case 17:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,546.1611,-1273.8046,17.2482);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Vehicles Dealership.");
return 1;
}
case 18:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-520.4179,-505.3250,24.6084);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Trucker Job.");
return 1;
}
case 19:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1172.6533,-2063.4160,432.7214);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Trucker Job.");
return 1;
}
case 20:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,553.6295,-1765.6705,5.7703);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Electronics Dropoff.");
return 1;
}
case 21:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2233.4729,-1333.2303,23.9815);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Hitman Headquarters.");
return 1;
}
case 22:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-1417.0,-295.8,14.1);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to San Fierro.");
return 1;
}
case 23:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1699.2,1435.1, 10.7);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Las Venturas.");
return 1;
}
case 24:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2648.7205,-2109.0586,13.5469);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Fossil Fuel Company.");
return 1;
}
case 25:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1543.9886,-1353.7587,329.4735);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Star Tower.");
return 1;
}
case 26:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1188.8627,-1330.2386,13.5606);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to All Saints Hospital.");
return 1;
}
case 27:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2644.9026,-2005.4315,13.3828);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Lowrider Tuning Shop.");
return 1;
}
case 28:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1025.1035,-1039.0695,31.5661);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Los Santos Tuning Shop.");
return 1;
}
case 29:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-2702.4583,217.1397,4.1797);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to San Fierro Tuning Shop.");
return 1;
}
case 30:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1310.1110,-1368.5656,13.517786);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Paintball Arena.");
return 1;
}
case 31:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 3298.0874,-2283.3340,2.9688);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Drug Island.");
return 1;
}
case 32:
{
SetPlayerInterior(playerid, 18);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1295.4827,-3.2839,1001.0273);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Warehouse.");
return 1;
}
case 33:
{
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1403.9862,-4.2830,1000.9119);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Warehouse.");
return 1;
}
case 34:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1462.4095,-1011.1602,26.8438);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Bank.");
}
}
}
}
return 1;
}
Re: error 010: invalid function or declaration -
VenomMancer - 22.12.2013
Try this :
PHP код:
else if(dialogid == 120)//cheats
{
if(response)
{
switch(listitem)
{
case 0:
{
if(aMark[playerid][0] == 0 && aMark[playerid][1] == 0 && aMark[playerid][2] == 0) return SendClientMessage(playerid, COLOR_GREY, "You haven't marked a teleportation point.");
SetPlayerPos(playerid,aMark[playerid][0], aMark[playerid][1], aMark[playerid][2]);
SetPlayerInterior(playerid, aMarkInt[playerid]);
SetPlayerVirtualWorld(playerid, aMarkVw[playerid]);
return 1;
}
case 1:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1515.2551,-1666.3148,14.0469);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Los Santos.");
return 1;
}
case 2:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1559.7308,-1246.2534,277.8779);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Skyscraper Roof Top.");
return 1;
}
case 3:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1611.2932,-1893.8231,13.5469);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the warehouse.");
return 1;
}
case 4:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1755.4490,-1894.2390,13.5567);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Unity.");
return 1;
}
case 5:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2096.3853,-1806.3462,13.5525);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Pizza Stack.");
return 1;
}
case 6:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2330.1292,-2315.3689,13.54697);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Mechanic Job.");
return 1;
}
case 7:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1752.9026,-2112.7397,13.4668);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the El Corona.");
return 1;
}
case 8:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,648.6083,-1360.7505,13.5880);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the San News.");
return 1;
}
case 9:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2804.4265,-1088.1079,30.7291);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Las Colinas Strip Club.");
return 1;
}
case 10:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,556.2163,-1258.2043,17.2422);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Grotti.");
return 1;
}
case 11:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,952.9167,-1101.9977,23.8568);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to LS Cemetary.");
return 1;
}
case 12:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2220.6660,-1139.2246,25.6772);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Jefferson.");
return 1;
}
case 13:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,202.1886,1881.4122,17.2199);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the area51.");
return 1;
}
case 14:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2058.6326,-1914.0176,13.5469);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the DMV.");
return 1;
}
case 15:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2224.8137,-1723.4457,13.5625);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Gym.");
return 1;
}
case 16:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,376.3239,-2028.6012,7.8301);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Big Wheel Rods.");
return 1;
}
case 17:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,546.1611,-1273.8046,17.2482);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Vehicles Dealership.");
return 1;
}
case 18:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-520.4179,-505.3250,24.6084);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Trucker Job.");
return 1;
}
case 19:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1172.6533,-2063.4160,432.7214);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Trucker Job.");
return 1;
}
case 20:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,553.6295,-1765.6705,5.7703);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Electronics Dropoff.");
return 1;
}
case 21:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2233.4729,-1333.2303,23.9815);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Hitman Headquarters.");
return 1;
}
case 22:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-1417.0,-295.8,14.1);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to San Fierro.");
return 1;
}
case 23:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1699.2,1435.1, 10.7);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Las Venturas.");
return 1;
}
case 24:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2648.7205,-2109.0586,13.5469);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Fossil Fuel Company.");
return 1;
}
case 25:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1543.9886,-1353.7587,329.4735);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Star Tower.");
return 1;
}
case 26:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1188.8627,-1330.2386,13.5606);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to All Saints Hospital.");
return 1;
}
case 27:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2644.9026,-2005.4315,13.3828);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to the Lowrider Tuning Shop.");
return 1;
}
case 28:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1025.1035,-1039.0695,31.5661);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to Los Santos Tuning Shop.");
return 1;
}
case 29:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-2702.4583,217.1397,4.1797);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to San Fierro Tuning Shop.");
return 1;
}
case 30:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1310.1110,-1368.5656,13.517786);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Paintball Arena.");
return 1;
}
case 31:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 3298.0874,-2283.3340,2.9688);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Drug Island.");
return 1;
}
case 32:
{
SetPlayerInterior(playerid, 18);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1295.4827,-3.2839,1001.0273);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Warehouse.");
return 1;
}
case 33:
{
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1403.9862,-4.2830,1000.9119);
SendClientMessage(playerid, COLOR_GRAD4, " You have teleported to The Warehouse.");
return 1;
}
case 34:
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1462.4095,-1011.1602,26.8438);
SendClientMessage(playerid, COLOR_GRAD4, " You have been teleported to the Bank.");
}
}
}
return 1;
}
Re: error 010: invalid function or declaration -
ZachKnoxx - 22.12.2013
Didn't work for me.