MySQL saving: Pawn Warnings
#1

Hi,
i learning to connect Gamemode with MySQL. As so far, i think i did this, but getting some warning.

Old Save/Loading gamemode system, working fine:

Код HTML:
public LoadPlayerData(playerid)
{
print("LoadingData");
    new name[MAX_PLAYER_NAME],file[128];
	GetPlayerName(playerid,name,sizeof(name));
	format(file,sizeof(file),"saves/user/%s.ini",name);
	if(!fexist(file)) return;

	new tmpxp = dini_Int(file,"Xp");

	if(!tmpxp) return;

	GameTextForPlayer(playerid,"",50000,5);

    SetPlayerScore(playerid,tmpxp);
	SetPlayerPos(playerid,dini_Float(file,"pos_X"),dini_Float(file,"pos_Y"),dini_Float(file,"pos_Z"));
    SetPlayerInterior(playerid,dini_Int(file,"Interior"));
    SetPlayerWantedLevel(playerid,dini_Int(file,"Wanted"));
    ResetPlayerMoneyA(playerid);
    GivePlayerMoneyA(playerid,dini_Int(file,"Money.Pocket"));
    SetPlayerVirtualWorld(playerid,dini_Int(file,"World"));
    playerDB[playerid][Job] = dini_Int(file,"Job");
    playerDB[playerid][phone] = dini_Int(file,"Phone");
    playerDB[playerid][car] = dini_Int(file,"Car");
    return;
// ... much more to load
}
And from old one, did the New MySQL Saving/Load system from examples:
Код HTML:
stock LoadStats(playerid)
{
new ORM:ORMID[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid,pInfo[playerid][Name],24);

ORMID[playerid] = orm_create("accounts");

orm_addvar_float(ORMID[playerid],pInfo[playerid][pos_X],"pos_X");
orm_addvar_float(ORMID[playerid],pInfo[playerid][pos_Y],"pos_Y");
orm_addvar_float(ORMID[playerid],pInfo[playerid][pos_Z],"pos_Z");
orm_addvar_int(ORMID[playerid],pInfo[playerid][pcar],"Car");
orm_addvar_int(ORMID[playerid],pInfo[playerid][papildimas],"Papildimas");
orm_addvar_int(ORMID[playerid],pInfo[playerid][telefonostat],"Telefonostat");
orm_addvar_int(ORMID[playerid],pInfo[playerid][laikrodis],"Laikrodis");

// ... much more to load
return 1;
}
The point is, that i'm getting pawno warning, that here in Old and New saving system wasn't using this codes.
Код HTML:
..Gamemode.pwn(111) : warning 203: symbol is never used: "Carspawns"
..Gamemode.pwn(111) : warning 203: symbol is never used: "GetModType"
..Gamemode.pwn(111) : warning 203: symbol is never used: "GetPlayerFromCarlistCar"
..Gamemode.pwn(111) : warning 203: symbol is never used: "IsAutohausCar"
..Gamemode.pwn(111) : warning 203: symbol is never used: "Spectating"
..Gamemode.pwn(111) : warning 203: symbol is never used: "aBakai"
..Gamemode.pwn(111) : warning 203: symbol is never used: "autoDB"
..Gamemode.pwn(111) : warning 203: symbol is never used: "autoarray"
..Gamemode.pwn(111) : warning 203: symbol is never used: "ini_GetKey"
..Gamemode.pwn(111) : warning 203: symbol is never used: "ini_GetValue"
..Gamemode.pwn(111) : warning 203: symbol is never used: "offerCar"
..Gamemode.pwn(111) : warning 203: symbol is never used: "ret_memcpy"
..Gamemode.pwn(111) : warning 203: symbol is never used: "taxiDB"
The Line: 111 is in includes on top the gamemode, and there is nothing to see like the warning never used symbols:
Код HTML:
.....
#include "filelist"
#include <a_npc>
#define FZ_SCDS 5
#define IP_LIMIT 2    // Line 111
#define IP_Login 2
.......
So far i know, some symbols that was never used, is in the Gamemode/data folder for example TaxiDB, VehicleDB.

Thanks in forward for any help.
Reply
#2

Go find the include that adds these variables, and comment the lines out where they are made.
Reply
#3

Here, what i found

Quote:

forward SyncVehicles();

//---------------------------------------------------------------------------------------
forward SetVehicleParamsForAll(carid,objective,doorslocked );
forward CreateTunedCar(playerid);
forward DelayDestroyCar(playerid);
forward DelaySetVehicleParams(playerid);
forward ResetAutohausSpawns();

enum ahCar
{
Typ,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
Status,
Lock,
Carid,
Paintjob,
Color1,
Color2,
mod1,
mod2,
mod3,
mod4,
mod5,
mod6,
mod7,
mod8,
mod9,
mod10,
mod11,
mod12,
mod13,
mod14,
mod15,
mod16,
mod17,
mod18,
gas,
numeris
};
new Carlist[MAX_PLAYERS][ahCar];

enum ahSpawn
{
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
};
new Carspawns[9][ahSpawn] = {
{-1995.5007,-762.8916,32.5133,180.1640},
{-1995.4631,-776.5918,32.5282,180.1582},
{-1995.3083,-794.5900,32.5225,181.1513},
{-1995.2640,-812.4045,32.5230,180.3271},
{-1995.2706,-833.0685,32.5236,180.5572},
{-1995.5007,-762.8916,32.5133,180.1640},
{-1995.4631,-776.5918,32.5282,180.1582},
{-1995.2706,-833.0685,32.5236,180.5572},
{-1995.2640,-812.4045,32.5230,180.3271}

};
enum ahModel
{
Name[128],
Autohaus,
Modelid,
Carid,
Price,
Repair,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
};
new Buylist[][ahModel] = {
{"'90 Mercedes-Benz 300c",1,533,-1,12000,3000,1423.1903,2826.2322,10.9406,269.2176} ,//oky --------------pigi
{"'69 Jaguar E-Type",2,555,-1,30000,8000,1423.0536,2834.6628,10.9396,269.6144} ,//oky windsor--------------pigi
{"'65 Chevy Impala",3,536,-1,40000,10000,1423.2373,2843.1743,10.9397,269.5944 },//oky blade---------------pigi
{"'97 Honda Accord Universalas",5,561,-1,20000,8000,1423.1941,2851.5967,10.9411,269.8424} ,//oky stratum----pigi
{"'60 Chevy Corvair",6,549,-1,5000,500,1423.2775,2860.2444,10.9381,270.2150},//oky tampa-------------------pigi
{"'92 Honda Civic",7,565,-1,50000,10000,1833.0339,-1282.4464,103.7095,316.6510},//oky flash---------------pigi
{"'83 Range Rover",6,579,-1,25000,5000,1423.1798,2868.8115,10.9427,268.5592} ,//oky huntley----------------pigi
{"'76 Mrcedes-BenzW123",5,445,-1,15000,4500,1429.0962,2878.4565,10.9384,179.6685} ,//oky admiral---------pigi
{"'75 Oldsmobile Cutclass",4,439,-1,15000,4500,1437.9150,2878.4509,10.9349,180.7239} ,//oky stallion----------pigi
{"'80 Pontiac Safari",3,479,-1,10000,2200,1446.9187,2878.4326,10.9382,179.6641} ,//oky regina----------------pigi
{"'92 Nissan Skyline R32",2,562,-1,250000,25000,1493.0490,2838.7559,15.5873,140.113 8},//oky elegy----------brangi
{"'00 Honda CR125",1,587,-1,60000,4000,1455.8588,2878.3811,10.9359,180.4933} ,//oky Alpha----------------pigi
{"'93 Ford Thunderbird",0,526,-1,10000,2000,1464.8191,2878.4841,10.9399,179.4913} ,//oky fortune------------pigi
{"'90 Subaru Impreza",1,560,-1,270000,30000,1485.9518,2838.8855,15.5905,135.346 8},//oky sultan------------brangi
{"'89 Pontiac Boneville",2,550,-1,40000,10000,1473.6870,2878.4905,10.9453,179.4514 },//oky sunrise-----------pigi
{"'85 Toyota Corolla AE86",3,496,-1,60000,15000,1482.5907,2878.5537,10.9359,179.4698 },//oky blista---------pigi
{"'87 Monster v12",4,557,-1,80000,4810,1500.4026,2878.3840,10.9345,179.1204} ,//ok monster---------------pigi
{"'87 Ford Taurus Universalas",4,458,-1,18000,4700,1491.4606,2878.4214,10.9366,179.9730} ,//oky solair-------pigi
{"'93 Dodge Viper GTS",5,429,-1,53000,7500,1494.9459,2839.3865,10.7882,180.1809} ,//oky banshee----------normali
{"'88 Kawasaki Ninja",6,522,-1,120000,25000,1509.4022,2878.4387,10.9398,179.505 8},//oky NRG------------pigi
{"'84 Chevrolet Camaro",7,402,-1,180000,20000,1479.3125,2838.7966,15.5915,144.944 9},//oky buffalo--------brangi
{"'04 Ford GT",6,541,-1,330000,30000,1473.1256,2838.5076,15.5925,139.087 4},//oky bullet-----------------brangi
{"'93 Ferrari 512",5,415,-1,150000,12500,1466.0126,2838.2961,15.5902,132.561 5},//oky cheetah------------brangi
{"'90 Nissan 300ZX",3,587,-1,37000,10000,1491.1475,2839.0911,10.7867,179.6847 },//oky euros-------------normali
{"'92 Honda NSX",2,411,-1,400000,40000,1493.2427,2847.7065,15.4345,50.7794 },//oky infernus-------------brangi
{"'86 Dodge Ram Van",1,482,-1,10000,2600,1518.2152,2878.4812,10.9393,179.9767} ,//oky burrito-----------pigi
{"'80 Pontiac Firebird",0,603,-1,20000,5000,1484.5668,2839.3459,10.7830,181.8160} ,//oky phoenix-----------normali
{"'91 Ferrari F40",2,451,-1,350000,27000,1481.9967,2847.4512,15.4357,48.8008 },//oky turismo-------------brangi
{"'87 Ford Tempo",3,410,-1,999,99,1528.4481,2872.1785,10.9413,89.3619},//oky manana-------------------pigi
{"'89 Chevrolet Blazer",4,489,-1,17000,4700,1528.3547,2863.2009,10.9389,90.5355},//oky rancher-----------pigi
{"'85 Honda Prelude",5,436,-1,15000,3500,1528.4436,2854.1885,10.9384,90.2375},//oky previon------------pigi
{"'89 Vauxhall Cavalier",6,527,-1,12000,1200,1528.5642,2845.2888,10.9386,90.4827},//oky cadrona---------pigi
{"'70 Porsche 911",2,480,-1,45000,14321,1528.5093,2836.2847,10.9413,90.8711} ,//naujos comet-----------pigi
{"'90 Eagle Talon",2,558,-1,25000,7000,1463.7090,2837.4658,10.7866,269.1242} ,//naujos uranus-----------normali
{"'65 Chevy Nova Universalas",2,404,-1,15000,1500,1528.4771,2827.3254,10.9415,89.9854},//naujos perenial--pigi
{"'97 Chevy Astro",2,418,-1,20000,1500,1528.5942,2818.3655,10.9347,90.4973},//naujos moonbeam---------pigi
{"'80 Buick Lesabre",2,546,-1,16000,2600,1528.6099,2809.2542,10.9396,90.3717},//naujos intruder----------pigi
{"'94 Qingqi",2,462,-1,20000,3700,1528.5670,2800.3328,10.9379,90.5818},//naujos emperor------------pigi
{"'67 Jester",2,559,-1,128000,5800,1466.5886,2849.1858,10.7834,269.5815 },//naujos Jester----------------normali
{"'67 Flash",2,565,-1,130000,58000,1490.5758,2848.8250,10.7804,90.1598 },//naujos Flash----------------normali
{"'93 Mazda RX-7",2,477,-1,172000,20000,1459.8503,2842.1035,15.5868,168.596 2}//naujos zr-350--------brangi

};

new Spectating[MAX_PLAYERS][1];

// begin of tuning component list
new spoiler[20][0] = {
{1000},
{1001},
{1002},
{1003},
{1014},
{1015},
{1016},
{1023},
{1058},
{1060},
{1049},
{1050},
{1138},
{1139},
{1146},
{1147},
{1158},
{1162},
{1163},
{1164}
};

new nitro[3][0] = {
{1008},
{1009},
{1010}
};

new fbumper[23][0] = {
{1117},
{1152},
{1153},
{1155},
{1157},
{1160},
{1165},
{1167},
{1169},
{1170},
{1171},
{1172},
{1173},
{1174},
{1175},
{1179},
{1181},
{1182},
{1185},
{1188},
{1189},
{1192},
{1193}
};

new rbumper[22][0] = {
{1140},
{1141},
{1148},
{1149},
{1150},
{1151},
{1154},
{1156},
{1159},
{1161},
{1166},
{1168},
{1176},
{1177},
{1178},
{1180},
{1183},
{1184},
{1186},
{1187},
{1190},
{1191}
};

new exhaust[28][0] = {
{1018},
{1019},
{1020},
{1021},
{1022},
{1028},
{1029},
{1037},
{1043},
{1044},
{1045},
{1046},
{1059},
{1064},
{1065},
{1066},
{1089},
{1092},
{1104},
{1105},
{1113},
{1114},
{1126},
{1127},
{1129},
{1132},
{1135},
{1136}
};

new bventr[2][0] = {
{1042},
{1044}
};

new bventl[2][0] = {
{1043},
{1045}
};

new bscoop[4][0] = {
{1004},
{1005},
{1011},
{1012}
};

new rscoop[13][0] = {
{1006},
{1032},
{1033},
{1035},
{1038},
{1053},
{1054},
{1055},
{1061},
{1067},
{1068},
{1088},
{1091}
};

new lskirt[21][0] = {
{1007},
{1026},
{1031},
{1036},
{1039},
{1042},
{1047},
{1048},
{1056},
{1057},
{1069},
{1070},
{1090},
{1093},
{1106},
{1108},
{1118},
{1119},
{1133},
{1122},
{1134}
};

new rskirt[21][0] = {
{1017},
{1027},
{1030},
{1040},
{1041},
{1051},
{1052},
{1062},
{1063},
{1071},
{1072},
{1094},
{1095},
{1099},
{1101},
{1102},
{1107},
{1120},
{1121},
{1124},
{1137}
};

new hydraulics[1][0] = {
{1087}
};

new base[1][0] = {
{1086}
};

new rbbars[2][0] = {
{1109},
{1110}
};

new fbbars[2][0] = {
{1115},
{1116}
};

new wheels[17][0] = {
{1025},
{1073},
{1074},
{1075},
{1076},
{1077},
{1078},
{1079},
{1080},
{1081},
{1082},
{1083},
{1084},
{1085},
{1096},
{1097},
{1098}
};

new lights[2][0] = {
{1013},
{1024}
};

new roofs[3][0] = {
{1103},
{1130},
{1131}
};

// end of tuning component list---------------------------------------------------------------------------------------------------------

#if defined CARSELL
new offerCar[MAX_PLAYERS][2];
#endif

ini_GetKey( line[] )
{
new keyRes[256];
keyRes[0] = 0;
if ( strfind( line , "=" , true ) == -1 ) return keyRes;
strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
return keyRes;
}

ini_GetValue( line[] )
{
new valRes[256];
valRes[0]=0;
if ( strfind( line , "=" , true ) == -1 ) return valRes;
strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
return valRes;
}

IsAutohausCar(carid)
{
new g;
for(g=0; g<sizeof(Buylist); g++)
{
if(Buylist[g][Carid]==carid) { return g; }
}
return -1;
}

GetPlayerFromCarlistCar(carid)
{
new g;
for(g=0; g<sizeof(Carlist); g++)
{
if(Carlist[g][Carid]==carid) { return g; }
}
return -1;
}

GetModType(componentid)
{
new g;
for(g=0; g<20; g++)
{
if(spoiler[g][0]==componentid) { return 1; }
}
for(g=0; g<3; g++)
{
if(nitro[g][0]==componentid) { return 2; }
}
for(g=0; g<23; g++)
{
if(fbumper[g][0]==componentid) { return 3; }
}
for(g=0; g<22; g++)
{
if(rbumper[g][0]==componentid) { return 4; }
}
for(g=0; g<28; g++)
{
if(exhaust[g][0]==componentid) { return 5; }
}
for(g=0; g<2; g++)
{
if(bventr[g][0]==componentid) { return 6; }
}
for(g=0; g<2; g++)
{
if(bventl[g][0]==componentid) { return 7; }
}
for(g=0; g<4; g++)
{
if(bscoop[g][0]==componentid) { return 8; }
}
for(g=0; g<13; g++)
{
if(rscoop[g][0]==componentid) { return 9; }
}
for(g=0; g<21; g++)
{
if(lskirt[g][0]==componentid) { return 10; }
}
for(g=0; g<21; g++)
{
if(rskirt[g][0]==componentid) { return 11; }
}
if(hydraulics[0][0]==componentid) { return 12; }
if(base[0][0]==componentid) { return 13; }
for(g=0; g<2; g++)
{
if(rbbars[g][0]==componentid) { return 14; }
}
for(g=0; g<2; g++)
{
if(fbbars[g][0]==componentid) { return 15; }
}
for(g=0; g<17; g++)
{
if(wheels[g][0]==componentid) { return 16; }
}
for(g=0; g<2; g++)
{
if(lights[g][0]==componentid) { return 17; }
}
for(g=0; g<3; g++)
{
if(roofs[g][0]==componentid) { return 18; }
}
return 0;
}
//--------------------------------------------------------//--------------------------------------------------------//--------------------------------------------------------
enum vitem{
gas,
bool:locked,
boolarduodama,
bool:registruota,
lastuser,
Float:lastpos[4],
Float:respawnpos[4],
Floatrav,
Float:respawnrot,
owner_name[MAX_PLAYER_NAME],
col1,
col2,
paintjob
}

new vehicleDB[MAX_VEHICLES][vitem];
new maxvehicles=-1; //Kiek yra masinu... paprasta

new aVehicleNames[212][] = { // Vehicle Names - Betamaster
{"Landstalker"},
{"Bravura"},
{"Buffalo"},
{"Linerunner"},
{"Perrenial"},
{"Sentinel"},
{"Dumper"},
{"Firetruck"},
{"Trashmaster"},
{"Stretch"},
{"Manana"},
{"Infernus"},
{"Voodoo"},
{"Pony"},
{"Mule"},
{"Cheetah"},
{"Ambulance"},
{"Leviathan"},
{"Moonbeam"},
{"Esperanto"},
{"Taxi"},
{"Washington"},
{"Bobcat"},
{"Mr Whoopee"},
{"BF Injection"},
{"Hunter"},
{"Premier"},
{"Enforcer"},
{"Securicar"},
{"Banshee"},
{"Predator"},
{"Bus"},
{"Rhino"},
{"Barracks"},
{"Hotknife"},
{"Trailer 1"}, //artict1
{"Previon"},
{"Coach"},
{"Cabbie"},
{"Stallion"},
{"Rumpo"},
{"RC Bandit"},
{"Romero"},
{"Packer"},
{"Monster"},
{"Admiral"},
{"Squalo"},
{"Seasparrow"},
{"Pizzaboy"},
{"Tram"},
{"Trailer 2"}, //artict2
{"Turismo"},
{"Speeder"},
{"Reefer"},
{"Tropic"},
{"Flatbed"},
{"Yankee"},
{"Caddy"},
{"Solair"},
{"Berkley's RC Van"},
{"Skimmer"},
{"PCJ-600"},
{"Faggio"},
{"Freeway"},
{"RC Baron"},
{"RC Raider"},
{"Glendale"},
{"Oceanic"},
{"Sanchez"},
{"Sparrow"},
{"Patriot"},
{"Quad"},
{"Coastguard"},
{"Dinghy"},
{"Hermes"},
{"Sabre"},
{"Rustler"},
{"ZR-350"},
{"Walton"},
{"Regina"},
{"Comet"},
{"BMX"},
{"Burrito"},
{"Camper"},
{"Marquis"},
{"Baggage"},
{"Dozer"},
{"Maverick"},
{"News Chopper"},
{"Rancher"},
{"FBI Rancher"},
{"Virgo"},
{"Greenwood"},
{"Jetmax"},
{"Hotring"},
{"Sandking"},
{"Blista Compact"},
{"Police Maverick"},
{"Boxville"},
{"Benson"},
{"Mesa"},
{"RC Goblin"},
{"Hotring Racer A"}, //hotrina
{"Hotring Racer B"}, //hotrinb
{"Bloodring Banger"},
{"Rancher"},
{"Super GT"},
{"Elegant"},
{"Journey"},
{"Bike"},
{"Mountain Bike"},
{"Beagle"},
{"Cropdust"},
{"Stunt"},
{"Tanker"}, //petro
{"Roadtrain"},
{"Nebula"},
{"Majestic"},
{"Buccaneer"},
{"Shamal"},
{"Hydra"},
{"FCR-900"},
{"NRG-500"},
{"HPV1000"},
{"Cement Truck"},
{"Tow Truck"},
{"Fortune"},
{"Cadrona"},
{"FBI Truck"},
{"Willard"},
{"Forklift"},
{"Tractor"},
{"Combine"},
{"Feltzer"},
{"Remington"},
{"Slamvan"},
{"Blade"},
{"Freight"},
{"Streak"},
{"Vortex"},
{"Vincent"},
{"Bullet"},
{"Clover"},
{"Sadler"},
{"Firetruck LA"}, //firela
{"Hustler"},
{"Intruder"},
{"Primo"},
{"Cargobob"},
{"Tampa"},
{"Sunrise"},
{"Merit"},
{"Utility"},
{"Nevada"},
{"Yosemite"},
{"Windsor"},
{"Monster A"}, //monstera
{"Monster B"}, //monsterb
{"Uranus"},
{"Jester"},
{"Sultan"},
{"Stratum"},
{"Elegy"},
{"Raindance"},
{"RC Tiger"},
{"Flash"},
{"Tahoma"},
{"Savanna"},
{"Bandito"},
{"Freight Flat"}, //freiflat
{"Streak Carriage"}, //streakc
{"Kart"},
{"Mower"},
{"Duneride"},
{"Sweeper"},
{"Broadway"},
{"Tornado"},
{"AT-400"},
{"DFT-30"},
{"Huntley"},
{"Stafford"},
{"BF-400"},
{"Newsvan"},
{"Tug"},
{"Trailer 3"}, //petrotr
{"Emperor"},
{"Wayfarer"},
{"Euros"},
{"Hotdog"},
{"Club"},
{"Freight Carriage"}, //freibox
{"Trailer 3"}, //artict3
{"Andromada"},
{"Dodo"},
{"RC Cam"},
{"Launch"},
{"Police Car (LSPD)"},
{"Police Car (SFPD)"},
{"Police Car (LVPD)"},
{"Police Ranger"},
{"Picador"},
{"S.W.A.T. Van"},
{"Alpha"},
{"Phoenix"},
{"Glendale"},
{"Sadler"},
{"Luggage Trailer A"}, //bagboxa
{"Luggage Trailer B"}, //bagboxb
{"Stair Trailer"}, //tugstair
{"Boxville"},
{"Farm Plow"}, //farmtr1
{"Utility Trailer"} //utiltr1
};

new aBakai[212] = {
98,
87,
90,
130,
75,
98,
130,
110,
120,
120,
80,
100,
100,
120,
120,
100,
120,
140,
125,
95,
107,
90,
90,
100,
100,
100,
100,
100,
100,
120,
120,
120,
380,
100,
120,
150, //artict1
95,
130,
50,
92,
95,
20,
95,
150,
150,
152,
120,
95,
50,
0,
92, //artict2
96,
85,
95,
95,
135,
95,
92,
95,
95,
96,
60,
57,
86,
20,
20,
95,
95,
95,
122,
120,
56,
95,
95,
95,
97,
90,
59,
90,
90,
60,
0,
125,
99,
55,
40,
190,
190,
180,
98,
98,
128,
122,
125,
75,
75,
95,
190,
190,
90,
115,
10,
80, //hotrina
85, //hotrinb
88,
92,
95,
92,
122,
0,
0,
160,
90,
87,
150, //petro
190,
120,
100,
98,
170,
190,
90,
87,
82,
90,
95,
90,
90,
130,
130,
45,
80,
130,
95,
96,
115,
115,
132,
122,
55,
96,
98,
98,
98,
128, //firela
90,
90,
90,
122,
126,
96,
105,
98,
190,
128,
94,
150, //monstera
160, //monsterb
94,
95,
125,
90,
92,
92,
20,
92,
92,
95,
80,
0, //freiflat
0, //streakc
70,
50,
90,
85,
122,
98,
700,
122,
96,
95,
70,
98,
50,
10040, //petrotr
96,
71,
94,
129,
70,
0, //freibox
120, //artict3
282,
95,
0,
95,
122,
125,
122,
122,
95,
121,
91,
123,
92,
112,
0, //bagboxa
0, //bagboxb
0, //tugstair
125,
0, //farmtr1
0 //utiltr1
};

new aEda[212] = {
1,
1,
2,
2,
1,
1,
3,
3,
3,
2,
1,
1,
1,
1,
1,
1,
1,
3,
1,
1,
1,
1,
1,
1,
1,
3,
1,
3,
3,
1,
1,
3,
3,
3,
1,
0, //artict1
1,
2,
1,
1,
1,
0,
1,
3,
3,
1,
1,
3,
1,
0,
0, //artict2
2,
2,
2,
2,
4,
4,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
3,
3,
1,
1,
1,
1,
1,
3,
1,
1,
1,
1,
0,
1,
1,
1,
1,
3,
3,
3,
1,
1,
1,
1,
1,
1,
3,
1,
3,
1,
1,
1,
1,
1, //hotrina
1, //hotrinb
1,
1,
1,
1,
1,
0,
0,
3,
3,
3,
3, //petro
3,
1,
1,
1,
3,
2,
1,
1,
1,
4,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
4, //firela
1,
1,
1,
1,
1,
1,
1,
1,
4,
1,
1,
3, //monstera
2, //monsterb
1,
1,
1,
1,
1,
2,
1,
1,
1,
1,
1,
0, //freiflat
0, //streakc
1,
1,
2,
1,
1,
1,
4,
1,
1,
1,
1,
1,
1,
0, //petrotr
1,
1,
1,
1,
1,
0, //freibox
0, //artict3
1,
4,
1,
4,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0, //bagboxa
0, //bagboxb
0, //tugstair
1,
0, //farmtr1
0 //utiltr1
};

stock Vehicle(model,Float,Float:y,Float:z,Float:a,colo r,color2)
{
AddStaticVehicleEx(model,x,y,z,a,color,color2,1728 00);
maxvehicles++;

vehicleDB[maxvehicles][gas]=random(aEda[model-400]);
if(IsTurgus(x,y)) vehicleDB[maxvehicles][parduodama]=false; else vehicleDB[maxvehicles][parduodama]=true;

return maxvehicles;
}

stock LoadVehicles(){
//Masinu info
/* new file[128];
new Floatosx, Floatosy, Floatosz, Floatosr, spalva1, spalva2;
for(new i = 0; i<MAX_VEHICLES; i++)
{
format(file, sizeof(file), "saves/vehicle/%i.ini",i);
new model = dini_Int(file,"model");
spalva1 = dini_Int(file,"col1");
spalva2 = dini_Int(file,"col2");
if(spalva1 == 0 || spalva2 == 0){spalva1 = -1; spalva2 = -1;}
if(model != 0){
posx = dini_Int(file, "pos_X");
posy = dini_Int(file, "pos_Y");
posz = dini_Int(file, "pos_Z");
posr = dini_Int(file, "rot");
vehicleDB[i][respawnpos][0] = dini_Int(file, "respawnpos_X");
vehicleDB[i][respawnpos][1] = dini_Int(file, "respawnpos_Y");
vehicleDB[i][respawnpos][2] = dini_Int(file, "respawnpos_Z");
vehicleDB[i][respawnrot] = dini_Int(file, "respawnrot");
Vehicle(model,posx,posy,posz,posr,spalva1,spalva2) ;
SetVehicleZAngle(i, posr);
vehicleDB[i][gas] = dini_Int(file,"gas");
if(dini_Int(file, "locked") == 0){vehicleDB[i][locked] = false;}
else{vehicleDB[i][locked] = true;}
if(dini_Int(file, "parduodama") == 0){vehicleDB[i][parduodama] = true;}
else{vehicleDB[i][parduodama] = false;}
// vehicleDB[i][locked] = dini_Bool(file,"locked");
// vehicleDB[i][parduodama] = dini_Bool(file,"parduodama");
vehicleDB[i][lastuser] = dini_Int(file,"lastuser");
// vehicleDB[i][owner_name] = dini_Get(file,"owner_name");
strcat(vehicleDB[i][owner_name], dini_Get(file,"owner_name"));
}
else{dini_Remove(file);}
}*/


//================================================== =====================//

//VM
AddStaticVehicleEx(575,-2093.8721,-83.6340,34.8204,181.1969,0,3, 200); //
AddStaticVehicleEx(575,-2089.6938,-83.4188,34.8204,180.5590,0,3, 200); //
AddStaticVehicleEx(575,-2085.4519,-83.3574,34.8207,180.4433,0,3, 200); //
AddStaticVehicleEx(575,-2081.2595,-83.2888,34.8204,179.2551,0,3, 200); //
AddStaticVehicleEx(575,-2077.0291,-83.1974,34.8203,179.7216,0,3, 200); //
AddStaticVehicleEx(575,-2072.7952,-83.3746,34.8204,180.5083,0,3, 200); //
AddStaticVehicleEx(575,-2068.5264,-83.5987,34.8204,181.2615,0,3, 200); //
AddStaticVehicleEx(575,-2064.3123,-83.5505,34.8204,180.5703,0,3, 200); //

//ftb cars
AddStaticVehicleEx(602,-2645.5725,1373.3312,6.9733,316.4423,0,3, 200); // ftb greit car
AddStaticVehicleEx(602,-2645.5540,1368.1833,6.9726,315.0808,0,3, 200); // ftb greit car
AddStaticVehicleEx(602,-2645.7419,1362.8866,6.9728,314.5932,0,3, 200); // ftb greit car
AddStaticVehicleEx(602,-2645.7781,1358.3287,6.9729,315.2458,0,3, 200); // ftb greit car
AddStaticVehicleEx(602,-2645.6777,1353.9760,6.9725,314.7979,0,3, 200); // ftb greit car
AddStaticVehicleEx(602,-2645.6042,1344.5607,6.9730,314.3567,0,3, 200); // ftb greit car
AddStaticVehicleEx(602,-2645.6606,1339.7864,6.9732,313.6032,0,3, 200); // ftb greit car
AddStaticVehicleEx(426,-2643.3379,1333.3322,7.3725,315.6068,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(426,-2638.3081,1333.4946,7.3829,314.9687,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(426,-2633.5588,1333.1613,7.3865,315.6667,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(426,-2628.9373,1333.3455,7.3866,314.7131,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(426,-2618.8762,1347.9100,7.3743,133.7794,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(426,-2618.8357,1343.4133,7.3855,135.9329,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(426,-2618.8330,1369.9141,7.2603,134.4009,0,3, 200); // ftb dzipas car
AddStaticVehicleEx(447,-2656.9358,1514.0522,7.2336,89.2648,1,3, 300); // ftb helis
AddStaticVehicleEx(447,-2671.1909,1513.8655,7.2134,89.2649,1,3, 300); // ftb helis
AddStaticVehicleEx(447,-2688.5742,1514.1064,7.2270,265.7669,1,3, 300); // ftb helis
AddStaticVehicleEx(447,-2705.0486,1514.1232,7.2482,265.7663,1,3, 300); // ftb helis
//FENIX GAUJOS MASINOS
AddStaticVehicleEx(516,-1500.4041,1167.2993,6.9006,316.4423,0,3, 200); // ok
AddStaticVehicleEx(516,-1496.0302,1165.8811,6.9019,315.0808,0,3, 200); // ok
AddStaticVehicleEx(516,-1491.0038,1164.2517,6.9039,314.5932,0,3, 200); // ok
AddStaticVehicleEx(516,-1486.4501,1162.8303,6.9038,315.2458,0,3, 200); // ok
AddStaticVehicleEx(516,-1481.8789,1161.2819,6.9038,314.7979,0,3, 200); // ok
AddStaticVehicleEx(516,-1477.0706,1159.7361,6.9033,314.3567,0,3, 200); // ok


//bmx sf
AddStaticVehicleEx(481,-2075.7415,512.5254,34.6871,181.5587,151,151, 200); // bmx dviratis
AddStaticVehicleEx(481,-2078.0896,512.6168,34.6867,181.9661,151,151, 200); // bmx dviratis
AddStaticVehicleEx(481,-2080.4736,512.6527,34.6869,181.8603,151,151, 200); // bmx dviratis
AddStaticVehicleEx(481,-2083.1082,512.6265,34.6875,177.7030,151,151, 200); // bmx dviratis
AddStaticVehicleEx(481,-2087.2639,512.6031,34.6868,177.5015,151,151, 200); // bmx dviratis
AddStaticVehicleEx(481,-2090.0134,512.6304,34.6869,181.8152,151,151, 200); // bmx dviratis
AddStaticVehicleEx(481,-2070.6460,510.7443,34.6858,2.5264,151,151, 200); // bmx
AddStaticVehicleEx(481,-2067.9600,512.0921,34.6886,356.8136,151,151, 200); // bmx
AddStaticVehicleEx(481,-2065.3838,511.5724,34.6877,2.4096,151,151, 200); // bmx
AddStaticVehicleEx(481,-2062.7266,511.9312,34.6785,352.1582,151,151, 200); // bmx
//inkasatoriai 2015
AddStaticVehicleEx(428,-2693.1648,366.0262,4.5266,269.8397,0,3, 200); // inkasatoriu truck
AddStaticVehicleEx(428,-2693.2563,369.6115,4.5145,269.7275,0,3, 200); // inkasatoriu truck
AddStaticVehicleEx(428,-2693.2195,376.7649,4.4982,269.5287,0,3, 200); // inkasatoriu truck
AddStaticVehicleEx(428,-2693.2156,383.5892,4.4944,270.3029,0,3, 200); // inkasatoriu truck
AddStaticVehicleEx(428,-2676.2583,388.8556,4.4909,270.4352,0,3, 200); // inkasatoriu truck
AddStaticVehicleEx(428,-2676.3430,362.4574,4.5369,270.6068,0,3, 200); // inkasatoriu truck

//buliai 2014
AddStaticVehicleEx(568,1392.9497,2108.6812,10.8839 ,90.5386,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.6001,2112.3748,10.8859 ,89.6216,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.6874,2115.5427,10.8885 ,90.1070,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.7004,2118.6335,10.8890 ,91.4260,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.6837,2121.9741,10.8881 ,91.4745,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.7241,2124.8855,10.8886 ,91.2712,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.7272,2128.0259,10.8896 ,90.3941,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.7488,2131.2458,10.8892 ,91.6053,180,180, 10); // bulius
AddStaticVehicleEx(568,1392.6898,2134.8865,10.8889 ,89.5698,180,180, 10); // bulius
//keturaciai pire mediku
AddStaticVehicleEx(471,-2702.4468,622.8990,13.9948,88.9324,2,3, 10); // keturetis
AddStaticVehicleEx(471,-2702.5793,617.1938,13.9941,91.5618,2,3, 10); // kwturaso
AddStaticVehicleEx(471,-2703.1362,612.0411,13.9944,90.0102,2,3, 10); // zolepss
AddStaticVehicleEx(471,-2702.7073,606.4022,13.9955,92.8201,2,3, 10); // zolep
AddStaticVehicleEx(471,-2703.1611,600.3712,13.9943,88.9152,2,3, 10); // zoliapjov prie mediku
AddStaticVehicleEx(471,-2702.7053,594.8683,13.9942,89.5411,2,3, 10); // zoliapjov prie mediku
AddStaticVehicleEx(471,-2703.1289,589.1966,13.9924,89.3989,2,3, 10); // zoliapjov prie mediku
//KETURACIAI PRIE ORO UOSTO
AddStaticVehicleEx(471,-1413.2864,-304.9732,13.5432,223.1065,2,3, 10); // Keturatis
AddStaticVehicleEx(471,-1408.8210,-310.1615,13.5395,223.4316,2,3, 10); // Keturatis
AddStaticVehicleEx(471,-1403.8745,-316.0934,13.5502,212.1277,2,3, 10); // Keturatis
AddStaticVehicleEx(471,-1426.2188,-292.9528,13.5504,44.4904,2,3, 10); // Keturatis
AddStaticVehicleEx(471,-1431.9437,-288.1820,13.5506,56.9421,2,3, 10); // Keturatis
AddStaticVehicleEx(471,-1437.9989,-284.4153,13.5460,57.4442,2,3, 10); // Kturatis

//TRAUKINYS

AddStaticVehicleEx(537,1423.5127,2632.2500,11.2473 ,90.0000,4,2, 200); // traukinys
AddStaticVehicleEx(537,2288.4702,2690.1250,11.2473 ,90.0000,4,2, 200); // traukinys


//los santos naskar ir croso evento cars
AddStaticVehicleEx(503,2054.4580,-2571.2080,13.4411,271.6353,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2054.9209,-2567.1028,13.4411,270.3153,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2055.7637,-2563.4341,13.4413,270.5061,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2054.9824,-2559.5674,13.4410,271.0941,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2055.6414,-2556.0613,13.4414,272.7491,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2055.1426,-2552.5127,13.4412,270.4395,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2054.7537,-2548.8027,13.4413,270.6051,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2055.4377,-2545.1235,13.4413,270.4599,229,233, 15); // naujos naskas car
AddStaticVehicleEx(503,2055.2971,-2541.5974,13.4411,270.7430,229,233, 15); // naujos naskas car
AddStaticVehicleEx(468,-2408.7478,-2186.1528,32.9582,269.2621,3,3, 15); // groso moot
AddStaticVehicleEx(468,-2408.9524,-2185.0608,32.9587,270.3628,3,3, 15); // groso moot
AddStaticVehicleEx(468,-2408.8850,-2183.8596,32.9581,272.1891,3,3, 15); // groso moot
AddStaticVehicleEx(468,-2408.7593,-2182.6267,32.9582,272.6186,3,3, 15); // groso moot

//RADIJOS

AddStaticVehicleEx(421,-1989.3910,274.4035,35.0515,267.0248,134,134,200); // radij ok lengvoj
AddStaticVehicleEx(421,-1989.7114,270.0028,35.0580,264.3744,134,134,200); // radij ok lengvoj
AddStaticVehicleEx(421,-1989.9929,265.0933,35.0578,262.7711,134,134,200); // radij ok lengvoj
AddStaticVehicleEx(421,-1990.3055,260.2254,35.0618,259.8647,134,134,200); // radij ok lengvoj
AddStaticVehicleEx(421,-1990.6510,256.7868,35.0544,262.0104,134,134,200); // radij ok lengvoj
AddStaticVehicleEx(582,-1985.5702,301.0862,35.1881,269.0847,134,134,200); // radij ok autob
AddStaticVehicleEx(582,-1985.2920,306.7823,35.1906,268.5679,134,134,200); // radij ok autob

//Furistai
AddStaticVehicleEx(515,-616.7266,-550.1896,26.5434,270.1453,225,194,200); // furistas fura
AddStaticVehicleEx(515,-616.6190,-542.6970,26.5587,271.3485,225,194,200); // furistas fura
AddStaticVehicleEx(515,-615.9412,-534.7744,26.5549,271.0870,225,194,200); // furistas fura
AddStaticVehicleEx(515,-583.4481,-556.7059,26.5455,1.4858,225,194,200); // furistas fura
AddStaticVehicleEx(515,-574.1803,-554.6904,26.5563,359.9207,225,194,200); // furistas fura
//AddStaticVehicleEx(515,-2135.7166,-91.9481,36.3355,0.8519,225,194,200); // furistas fura
AddStaticVehicleEx(515,-564.6606,-554.3727,26.5568,359.4817,225,194,1200); // fura cicterna
AddStaticVehicleEx(584,-488.2862,-485.9878,26.5576,181.5050,225,198,1200); // fura cicterna
AddStaticVehicleEx(584,-498.4223,-484.6569,26.5592,180.5366,225,198,1200); // fura cicterna
AddStaticVehicleEx(584,-507.4200,-483.9377,26.5574,180.9569,225,198,1200); // fura cicterna
AddStaticVehicleEx(584,-517.1724,-484.4943,26.5620,181.2718,225,198,1200); // fura cicterna
AddStaticVehicleEx(584,-526.4458,-481.8018,26.5445,181.3172,225,198,1200); // fura cicterna



//PD
AddStaticVehicleEx(597,-1572.7667,705.8752,-5.4947,89.0915,1,16,200); // pd car------sf
AddStaticVehicleEx(597,-1573.8827,718.2169,-5.4962,90.9773,1,16,200); // pd car
AddStaticVehicleEx(597,-1574.1956,726.6832,-5.4953,89.5875,1,16,200); // pd car
AddStaticVehicleEx(597,-1574.6097,734.5638,-5.4964,91.3828,1,16,200); // pd car
AddStaticVehicleEx(597,-1580.0854,748.8068,-5.4940,0.6330,1,16,200); // pd car
AddStaticVehicleEx(597,-1588.1509,748.4603,-5.4961,1.2027,1,16,200); // pd car
AddStaticVehicleEx(597,-1596.0598,748.4882,-5.4938,180.1038,1,16,200); // pd car
AddStaticVehicleEx(597,-1616.8560,733.6636,-5.4949,359.8612,1,16,200); // pd car
AddStaticVehicleEx(599,-1600.1539,676.7792,-5.5859,180.4973,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1608.3567,693.0246,-5.5859,179.6096,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1620.7111,692.9288,-5.5859,0.4441,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1628.7069,692.1049,-5.5858,0.6087,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1639.2471,682.0646,-5.5858,269.4599,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1639.2822,669.9210,-5.5859,90.6340,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1622.5315,653.6042,-5.5858,89.5294,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1578.6019,687.7191,-5.5859,313.9388,1,16,200); // pd dzipai
AddStaticVehicleEx(599,-1604.2212,748.9279,-5.5858,0.8598,1,16,200); // pd dzipai
AddStaticVehicleEx(523,-1588.2825,674.8240,6.7580,181.1511,0,3,200); // pd moto
AddStaticVehicleEx(523,-1594.3136,673.4664,6.7539,180.7849,0,3,200); // pd moto
AddStaticVehicleEx(523,-1599.8427,673.6069,6.7552,186.5477,0,3,200); // pd moto
AddStaticVehicleEx(523,-1605.8528,674.0452,6.7536,182.3257,0,3,200); // pd moto
//swat
AddStaticVehicleEx(490,-1978.1423,1386.8081,7.3026,89.6598,0,0,200); // swat dzipas
AddStaticVehicleEx(490,-1977.9980,1381.6665,7.3076,90.2803,0,0,200); // swat dzipas
AddStaticVehicleEx(490,-1977.9176,1375.8492,7.3119,89.6570,0,0,200); // swat dzipas
AddStaticVehicleEx(490,-1977.8285,1371.3793,7.3105,88.5882,0,0,200); // swat dzipas
AddStaticVehicleEx(490,-1946.8165,1361.9052,7.3161,270.3378,0,0,200); // swat dzipas
AddStaticVehicleEx(427,-2005.6958,1359.0626,7.3149,269.7142,0,245,200); // swat truck
AddStaticVehicleEx(427,-2006.0765,1354.5415,7.3149,269.2973,0,245,200); // swat truck
AddStaticVehicleEx(427,-2005.9357,1350.5902,7.3150,268.4683,0,245,200); // swat truck
AddStaticVehicleEx(427,-2005.7361,1344.2108,7.3067,270.8543,0,245,200); // swat truck
AddStaticVehicleEx(427,-2006.0416,1338.2842,7.3026,270.4470,0,245,200); // swat truck
AddStaticVehicleEx(601,-2005.6400,1367.6912,6.9425,269.0207,86,8,200); // swat slanga
AddStaticVehicleEx(601,-2005.8080,1372.9960,6.9410,270.1237,86,8,200); // swat slanga
AddStaticVehicleEx(601,-2005.8394,1378.8180,6.9405,269.2698,86,8,200); // swat slanga
//GREITOSIOS HOSPITAL
AddStaticVehicleEx(416,-1836.7070,-13.0413,15.2025,0.0000,1,3,300); // AMBULANCE
AddStaticVehicleEx(416,-1821.2070,-13.0413,15.2025,0.0000,1,3,300); // AMBULANCE
AddStaticVehicleEx(416,-1844.1743,82.7060,15.2025,-90.0000,1,3,300); // AMBULANCE
AddStaticVehicleEx(416,-1844.1743,88.6260,15.2025,-90.0000,1,3,300); // AMBULANCE
AddStaticVehicleEx(416,-1844.1743,76.7860,15.2025,-90.0000,1,3,300); // AMBULANCE
AddStaticVehicleEx(416,-1829.0210,-13.0413,15.2025,0.0000,1,3,300); // AMBULANCE
AddStaticVehicleEx(544,-1844.5601,-4.8040,15.2025,-90.0000,3,3,300); // FIRE LA
AddStaticVehicleEx(544,-1844.1743,70.9830,15.2025,-90.0000,3,3,300); // FIRE LA
AddStaticVehicleEx(544,-1845.5051,32.2231,15.2025,-90.0000,3,3,300); // FIRE LA
AddStaticVehicleEx(407,-1860.8640,-4.6015,15.0036,-90.0000,3,3,300); // FIRETRUCK
AddStaticVehicleEx(407,-1845.5051,10.2231,15.2025,-90.0000,3,3,300); // FIRETRUCK
AddStaticVehicleEx(407,-1845.5051,17.7231,15.2025,-90.0000,3,3,300); // FIRETRUCK
AddStaticVehicleEx(407,-1856.4258,17.6500,15.0036,-90.0000,3,3,300); // FIRETRUCK
AddStaticVehicleEx(407,-1856.5265,32.3976,15.0036,-90.0000,3,3,300); // FIRETRUCK
AddStaticVehicleEx(407,-1845.5051,39.7231,15.2025,-90.0000,3,3,300); // FIRETRUCK
AddStaticVehicleEx(489,-1844.6533,94.6506,15.2025,-90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(489,-1844.6533,106.4906,15.2025,90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(489,-1822.3273,101.1589,15.2025,90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(489,-1822.3273,95.6589,15.2025,90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(489,-1822.3273,83.1589,15.2025,90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(489,-1822.3273,72.6589,15.2025,90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(489,-1822.3273,66.6589,15.2025,90.0000,1,3,300); // RANCHER MEDIC
AddStaticVehicleEx(457,-1819.9274,39.7386,14.7791,135.1779,3,3,100); // CADDY MEDIC
AddStaticVehicleEx(457,-1819.9437,36.9775,14.7791,135.1779,3,3,100); // CADDY MEDIC
AddStaticVehicleEx(457,-1819.8475,34.3565,14.7791,135.1779,3,3,100); // CADDY MEDIC
AddStaticVehicleEx(457,-1819.6506,31.8601,14.7791,135.1779,3,3,100); // CADDY MEDIC
AddStaticVehicleEx(457,-1819.3276,18.3593,14.7791,135.1779,3,3,100); // CADDY MEDIC
AddStaticVehicleEx(457,-1819.4293,15.0701,14.7791,135.1779,3,3,100); // CADDY MEDIC

//Lektuvai
AddStaticVehicleEx(519,-1244.2570,-95.4941,15.0654,136.5233,1,1, 300); // pilotu lektuvas
AddStaticVehicleEx(519,-1205.6747,-142.1139,15.0653,136.7822,1,1, 300); // pilotu lektuvas
AddStaticVehicleEx(519,-1272.5190,-620.3704,15.0675,359.8644,1,1, 300); // pilotu lektuvas
AddStaticVehicleEx(519,-1334.4323,-621.2369,15.0663,359.8571,1,1, 300); // pilotu lektuvas
AddStaticVehicleEx(519,-1396.0389,-621.0832,15.0643,359.8571,1,1, 300); // pilotu lektuvas
AddStaticVehicleEx(519,-1459.0875,-623.0892,15.0702,359.8566,1,1, 300); // pilotu lektuvas
AddStaticVehicleEx(545,-1538.5646,-448.5211,5.8766,316.2047,1,1, 300); // pilotu car
AddStaticVehicleEx(545,-1536.8298,-450.1853,5.8993,316.2054,1,1, 300); // pilotu car
AddStaticVehicleEx(545,-1534.2947,-452.0876,5.9174,323.7614,1,1, 300); // pilotu car
AddStaticVehicleEx(545,-1531.6306,-453.8077,5.8973,333.5790,1,1, 300); // pilotu car
AddStaticVehicleEx(545,-1528.9668,-455.1294,5.8489,333.5805,1,1, 300); // pilotu car





//roziniu gauja
AddStaticVehicleEx(495,-2401.7693,-694.1692,134.9873,89.7804,126,118, 300); // roziniu dzipas
AddStaticVehicleEx(495,-2402.3425,-697.8699,134.9881,90.8533,126,188, 300); // roziniu dzipas
AddStaticVehicleEx(495,-2401.3738,-701.6130,135.0658,90.1557,126,118, 300); // roziniu dzipas
AddStaticVehicleEx(495,-2401.8267,-706.0008,134.9698,89.3856,126,118, 300); // roziniu dzipas
AddStaticVehicleEx(495,-2401.8359,-709.4710,134.9886,90.5857,126,118, 300); // roziniu dzipas
AddStaticVehicleEx(521,-2451.6421,-705.2959,134.2958,271.9322,126,118, 300); // roziniu moto
AddStaticVehicleEx(521,-2451.6221,-701.1458,134.3007,272.7755,126,118, 300); // roziniu moto
AddStaticVehicleEx(521,-2451.7651,-698.2448,134.2957,268.7428,126,118, 300); // roziniu moto
AddStaticVehicleEx(521,-2452.2546,-695.5229,134.2959,266.6366,126,118, 300); // roziniu moto
AddStaticVehicleEx(521,-2452.0103,-692.2929,134.2990,268.6808,126,118, 300); // roziniu moto



//DYLERIAI

AddStaticVehicleEx(534,-2467.2419,-133.6943,25.3412,90.0533,127,0, 300); // dyl car
AddStaticVehicleEx(534,-2475.1528,-133.7007,25.3424,90.0550,127,0, 300); // dyl car
AddStaticVehicleEx(534,-2471.7566,-124.6973,25.3432,92.2397,127,0, 300); // dyl car
AddStaticVehicleEx(534,-2462.1230,-141.2516,25.4683,180.7447,127,0, 300); // dyl car
AddStaticVehicleEx(534,-2461.9541,-153.5570,25.4806,181.2483,127,0, 300); // dyl car
AddStaticVehicleEx(534,-2466.2456,-97.0711,25.4878,179.4919,127,0, 300); // dyl car
AddStaticVehicleEx(534,-2466.1633,-115.0234,25.4484,180.5125,127,0, 300); // dyl car


//Mechanikai

AddStaticVehicleEx(552,-2007.9178,-524.6642,34.9730,90.0000,201,0, 300);
AddStaticVehicleEx(552,-2007.9178,-512.5982,34.9730,90.0000,201,0, 300);
AddStaticVehicleEx(525,-1969.9258,-495.3893,35.1730,-90.0000,201,0, 300);
AddStaticVehicleEx(525,-1969.9258,-498.4833,35.1730,-90.0000,201,0, 300);
AddStaticVehicleEx(525,-1969.9258,-504.4333,35.1730,-90.0000,201,0, 300);
AddStaticVehicleEx(525,-17.6012,-514.5051,35.1730,-90.0000,201,0, 300);
AddStaticVehicleEx(552,-1987.6012,-520.5916,34.9730,-90.0000,201,0, 300);
AddStaticVehicleEx(525,-2007.9178,-518.6364,35.1730,90.0000,201,0, 300);


//RUSU GAUJA==sf

//Armija

AddStaticVehicleEx(470,-1341.9850,457.7546,7.1769,90.7053,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1359.1569,458.0306,7.1810,90.8104,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1389.5693,458.1082,7.1776,89.8673,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1422.8937,458.1003,7.1773,90.8702,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1467.7997,458.7707,7.1722,88.9230,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1529.4436,434.0492,7.1774,87.7996,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1529.8844,427.2217,7.1811,90.9644,43,0, 300); // armija dzipas
AddStaticVehicleEx(470,-1529.8975,421.4334,7.1802,89.9664,43,0, 300); // armija dzipas
AddStaticVehicleEx(433,-1550.0975,409.2161,7.6242,270.2806,43,0, 300); // armija truck
AddStaticVehicleEx(433,-1550.3546,415.1826,7.6241,271.4662,43,0, 300); // armija truck
AddStaticVehicleEx(433,-1550.2466,420.8526,7.6203,269.4947,43,0, 300); // armija truck
AddStaticVehicleEx(433,-1550.3053,432.6765,7.6164,272.5202,43,0, 300); // armija truck
AddStaticVehicleEx(432,-1312.6842,443.7845,7.1958,180.3239,4,1, 300); // armija tankas
AddStaticVehicleEx(432,-1325.1917,444.6817,7.1917,178.0530,4,1, 300); // armija tankas
AddStaticVehicleEx(520,-1264.3226,500.8965,19.1564,184.7102,4,1, 300); // armija hidra
AddStaticVehicleEx(520,-1302.4683,504.1705,19.1644,180.3644,4,1, 300); // armija hidra
AddStaticVehicleEx(425,-1453.3927,501.4427,19.0815,270.7117,4,1, 300); // armija helis
AddStaticVehicleEx(425,-1419.4423,502.4778,19.0776,270.5036,4,1, 300); // armija helis


//PASIENIS

AddStaticVehicleEx(528,-2460.3464,779.3999,35.2152,90.6372,0,0, 300); // pasienis car
AddStaticVehicleEx(528,-2460.3005,786.6614,35.2151,91.1220,0,0, 300); // pasienis car
AddStaticVehicleEx(528,-2460.1060,793.6799,35.2152,90.4871,0,0, 300); // pasienis car
AddStaticVehicleEx(528,-2494.2319,792.7632,35.2168,182.1680,0,0, 300); // pasienis car
AddStaticVehicleEx(528,-2488.5127,793.6914,35.2152,179.5250,0,0, 300); // pasienis car
AddStaticVehicleEx(528,-2481.8894,793.5654,35.2153,179.6140,0,0, 300); // pasienis car


//apsauga


//GROVE STREET
// grove car 567

//kunigai
//Kunigai
AddStaticVehicleEx(442,-2058.5469,1118.3972,53.1186,269.7722,0,0, 300); // kunigas car
AddStaticVehicleEx(442,-2058.4583,1110.8895,53.1167,274.4865,0,0, 300); // kunigas car
AddStaticVehicleEx(442,-2059.0212,1106.2079,53.1174,272.2803,0,0, 300); // kunigas car
AddStaticVehicleEx(442,-2039.1010,1121.3955,53.1164,180.5979,0,0, 300); // kunigas car
AddStaticVehicleEx(442,-1981.5111,1101.9934,53.0826,359.3802,0,0, 300); // kunigas car



//SAMDIMI ZUDIKAI
AddStaticVehicleEx(475,-2429.6035,515.1727,29.7336,216.6127,0,0, 200); // sz car
AddStaticVehicleEx(475,-2425.8083,518.2841,29.7344,224.1501,0,0, 200); // sz car
AddStaticVehicleEx(475,-2422.3867,521.5801,29.7334,226.6391,0,0, 200); // sz car
AddStaticVehicleEx(475,-2419.1953,524.9319,29.7328,232.4842,0,0, 200); // sz car
AddStaticVehicleEx(475,-2416.8499,528.2300,29.7327,239.0626,0,0, 200); // sz car
AddStaticVehicleEx(475,-2414.9543,532.0118,29.7332,248.3289,0,0, 200); // sz car
AddStaticVehicleEx(475,-2413.9326,535.7852,29.7306,259.7205,0,0, 200); // sz car
AddStaticVehicleEx(469,-2438.1543,523.1427,34.1575,271.8229,0,0, 200); // sz helis

//Taxi
AddStaticVehicleEx(420,-2630.4133,-35.9393,4.1153,180.3546,194,158, 200); // taxi car
AddStaticVehicleEx(420,-2624.4668,-35.8238,4.1143,180.9704,194,158, 200); // taxi car
AddStaticVehicleEx(420,-2666.5945,-35.6587,4.1171,180.2859,194,158, 200); // taxi car
AddStaticVehicleEx(420,-2672.8306,-35.7560,4.1155,179.8700,194,158, 200); // taxi car
AddStaticVehicleEx(420,-2620.6714,-22.7963,4.1146,179.3008,194,158, 200); // taxi car
AddStaticVehicleEx(438,-2620.1968,-54.6733,4.3408,0.5589,194,158, 200); // taxi senute car
AddStaticVehicleEx(438,-2626.8101,-54.5807,4.3399,0.5812,194,158, 200); // taxi senute car
AddStaticVehicleEx(438,-2633.4817,-54.8494,4.3382,0.5135,194,158, 200); // taxi senute car
AddStaticVehicleEx(438,-2640.0610,-54.8145,4.3424,359.8539,194,158, 200); // taxi senute car
AddStaticVehicleEx(438,-2646.6829,-54.6637,4.3385,0.4040,194,158, 200); // taxi senute car
//AddStaticVehicleEx(409,-2693.0205,-23.4322,4.1359,180.5160,0,0, 200); // taxi limas car
//AddStaticVehicleEx(409,-2686.3547,-23.1614,4.1359,180.6703,1,1, 200); // limas
//AddStaticVehicleEx(409,-2679.6060,-23.3140,4.1359,180.4163,0,0, 200); // limas
//AddStaticVehicleEx(409,-2688.7197,-54.4115,4.1359,316.2946,1,1, 200); // limas
//AddStaticVehicleEx(409,-2682.2239,-54.5462,4.1359,315.8752,0,0, 200); // limas
//AddStaticVehicleEx(409,-2675.4153,-54.4824,4.1359,314.7870,1,1, 200); // limas

//LIMUZINU NUOMA

//AddStaticVehicleEx(409,-1956.2434,583.8459,34.8946,180.6616,1,1, 200); // limas car
//AddStaticVehicleEx(409,-1950.4207,584.0983,34.8886,178.8680,1,1, 200); // limas
//AddStaticVehicleEx(409,-1944.2944,584.3287,34.8897,180.4163,1,1, 200); // limas
//AddStaticVehicleEx(409,-1938.5219,584.1625,34.8881,180.4354,1,1, 200); // limas
//AddStaticVehicleEx(409,-1932.4597,584.1697,34.8887,179.7017,1,1, 200); // limas
//AddStaticVehicleEx(409,-1926.2505,583.8480,34.8936,181.0056,1,1, 200); // limas



//================================================== ======================//


for(new id = 0; id <600; id++)
{
if(GetVehicleModel(id) == 444 || GetVehicleModel(id) == 504){
LinkVehicleToInterior(id,15);
vehicleDB[id][parduodama]=true;
}
}



new Float:tmpx,Float:tmpy,Float:tmpz;
for(new i=0;i<maxvehicles+1;i++)
{
vehicleDB[i][gas]=40;
GetVehiclePos(i,tmpx,tmpy,tmpz);

if(IsTurgus(tmpx,tmpy)) vehicleDB[i][parduodama]=false; else vehicleDB[i][parduodama]=true;
}


}

public SyncVehicles()
{
new boolontSync[MAX_VEHICLES];
for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
DontSync[GetPlayerVehicleID(playerid)]=true;
}
}
}

for(new vehicleid=0;vehicleid<maxvehicles;vehicleid++)
{
if(!DontSync[vehicleid] && !vehicleDB[vehicleid][locked])
{
SetVehicleToRespawn(vehicleid);
}
}

}
}

Quote:

enum titem
{
taksistas,
Float:Start[3],
bool:imti,
}
new taxiDB[MAX_PLAYERS][titem];
new keleivis[MAX_PLAYERS];

stock GetDriver(vehicleid)
{
for(new playerid = 0; playerid<MAX_PLAYERS;playerid++)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerInVehicle(playerid,vehicleid)) return playerid;
}
}
}
return INVALID_PLAYER_ID;
}

Reply
#4

Any Ideas?
Reply
#5

All of these warnings come from things in your script that you've put in, and aren't using...

Comment them out, and they won't be warning you anymore.

They are just warnings, they're not stopping the compile. They may simply cause issues later on if you think they are doing something which they are not.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)