12.04.2013, 12:01
Please help. My tastes are throwing this error and what i dont know. Would somebody so kind and help me or fix it.
Sorry for my bad english
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : error 029: invalid expression, assumed zero
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : error 017: undefined symbol "dialog_mechanik"
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : error 029: invalid expression, assumed zero
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Sorry for my bad english
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : error 029: invalid expression, assumed zero
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : error 017: undefined symbol "dialog_mechanik"
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : error 029: invalid expression, assumed zero
C:\Users\Andrew Foltбn\Desktop\er server win\gamemodes\lol.pwn(754) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Quote:
#include <a_samp> #undef MAX_PLAYERS #define MAX_PLAYERS 100 #pragma tabsize 0 #define GAMEMODE "Realna Zeme v7.4" #define PLAYER_FILE "RZE/%s.txt" #define MODRA 0x33CCFFAA #define MAX_STRING 128 new bool:FALSE=false; #define SCMF(%0,%1,%2,%3) do{new _string[128]; format(_string,sizeof(_string),%2,%3); SendClientMessage(%0,%1,_string);} while(FALSE) #define SCMTAF(%0,%1,%2) do{new _string[128]; format(_string,sizeof(_string),%1,%2); SendClientMessageToAll(%0,_string);} while(FALSE) #define InfoBoxFormat(%0,%1,%2,%3) do{new _string[128]; format(_string,sizeof(_string),%2,%3); InfoBox(%0,%1,_string); } while (FALSE) //GameTextForPlayer(playerid, string, 3000, 4); #define IBF InfoBoxFormat //ShowInfoBoxForPlayer(playerid,time,text[]) #define IB InfoBox #define SCM SendClientMessage #define SCMTA SendClientMessageToAll #define SIB ShowInfoBoxForPlayer #define QCMD:%1() \ forward cmd_%1(playerid,params[],bool:help); \ public cmd_%1(playerid,params[],bool:help) #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1])))) #define ForPlayers(%0) for(new %0; %0 <= Connects;%0++) if(IsPlayerConnected(%0)) #define QDIALOG:%1() forward dialog_%1(playerid, response, listitem, inputtext[]); \ public dialog_%1(playerid, response, listitem, inputtext[]) #define DIALOG_QDIALOG 1 new bool:Showed[MAX_PLAYERS]; stock ShowPlayerDialogEx(playerid, style, caption[], info[], button1[], button2[], callback[]) { if(Showed[playerid]) return 0; Showed[playerid] = true; ShowPlayerDialog(playerid, DIALOG_QDIALOG, style, caption, info, button1, button2); SetPVarString(playerid,"DialogSystem",callback); return true; } #define Dialog ShowPlayerDialogEx #define MAX_RACE_POS 30 #define LEVEL(%1) if(Admin[playerid] < %1) return SCM(playerid,-1,"Nemбљ dostatočnэ Admin Level !") #define VTYPE_CAR 1 #define VTYPE_HEAVY 2 #define VTYPE_MONSTER 3 #define VTYPE_BIKE 4 #define VTYPE_QUAD 5 #define VTYPE_BMX 6 #define VTYPE_HELI 7 #define VTYPE_PLANE 8 #define VTYPE_SEA 9 #define VTYPE_TRAILER 10 #define VTYPE_TRAIN 11 #define VTYPE_BOAT VTYPE_SEA #define VTYPE_BICYCLE VTYPE_BMX #define ADMIN_COLOR 0xCA0000AA //ShowPlayerDialogEx(playerid, style, caption[], info[], button1[], button2[], callback[]) new bool:Logged[MAX_PLAYERS]; new JobMoney[MAX_PLAYERS]; new Dni[MAX_PLAYERS]; new Hodin[MAX_PLAYERS]; new Minut[MAX_PLAYERS]; new Bank[MAX_PLAYERS]; //new Vyplata[MAX_PLAYERS]; new Bomba[MAX_PLAYERS]; new Vodicak[MAX_PLAYERS]; new Letecak[MAX_PLAYERS]; new Lodicak[MAX_PLAYERS]; new Vyzbroj[MAX_PLAYERS]; new Pas[MAX_PLAYERS]; new PoliciaZK[MAX_PLAYERS]; new MafiaZK[MAX_PLAYERS]; new VojakZK[MAX_PLAYERS]; new VodicZK[MAX_PLAYERS]; new LetecZK[MAX_PLAYERS]; new Zabil[MAX_PLAYERS]; new Umrel[MAX_PLAYERS]; new Firma[MAX_PLAYERS]; new Dom[MAX_PLAYERS]; new Banka[MAX_PLAYERS]; new Marihuanab[MAX_PLAYERS]; new Marihuana[MAX_PLAYERS]; new Skin[MAX_PLAYERS]; new Admin[MAX_PLAYERS]; new Vezenie[MAX_PLAYERS]; new Odmena[MAX_PLAYERS]; new Uneseny[MAX_PLAYERS]; new Zakaznik[MAX_PLAYERS]; new bool:Zakaz; new Taxa[MAX_PLAYERS]; new bool:Afk[MAX_PLAYERS]; new Misia[MAX_PLAYERS]; new Connects; new bool:Mute[MAX_PLAYERS]; new Objekty[10]; new POLICIA1,POLICIA2,POLICIA3,OCHRANKA,YAKUZA1,YAKUZA 2,RUSACI1,RUSACI2,TERACI,HASICI1,HASICI2,TAXI1,TAX I2, PILOT1,PILOT2,PILOT3,DOKTOR1,DOKTOR2,DOKTOR3,DOKTO R4,VOJAK1,VOJAK2,VOJAK3,KURVA1,KURVA2,NOVINAR1,NOV INAR2, NOVINAR3,GROOVE,BALLAS,VAGOS,AZTECS,DEALER,BEUSAK1 ,BEUSAK2,BEUSAK3,OPRAVAR1,OPRAVAR2,OPRAVAR3,SBS1,S BS2,SBS3,SMETIAR1, SMETIAR2,SMETIAR3,TUNING1,TUNING2,KAMION1,KAMION2, KAMION3,ZMRZLINAR,PRAVNIK; new NEZAMESTNANY = -1; new Float:BombPos[MAX_PLAYERS][3]; new Float:BombAtentat[3]; new Otazka[128]; new Ano,Nie; new Hlasoval[MAX_PLAYERS]; new Loteria[MAX_PLAYERS] = {-1,...}; new Locked[MAX_VEHICLES] = {-1,...}; new Float:LocPos[4],LocInt; new Timer[10]; new DragMoney = -1; new DragPlayers; new Drag[MAX_PLAYERS] = {-1,...}; new DragCount; new bool:DragStarted; new DragTime[MAX_PLAYERS]; new DragTimer; new Float:RacePos[MAX_RACE_POS][3]; new RaceLoad = -1; new RaceCount; new RaceMoney = -1; new RaceStarted; new Race[MAX_PLAYERS] = {-1,...}; new Ostrov[7]; new Cela[15]; #define MAX_RAMPS 25 new Rampa[MAX_RAMPS]; new RampCount = -1; new LeteckaSkola; new LodnaSkola; new AutoSkola; new AutoSkola2; new SkinShop1,SkinShop2,SkinShop3,SkinShop4,SkinShop5, SkinShop6; new Bonus1,Bonus2; new Stadion1,Stadion2,Stadion3; new AreaExit; new Ganja[6]; new Mariska; new SexShop; new Obchod1,Obchod2; new Bar1,Bar2,Bar3,Bar4; new Letisko1,Letisko2,Letisko3,Letisko4; new ZbraneSklad1,ZbraneSklad2,ZbraneSklad3; new Stavkovanie,Firma1; new Text:BenzinTD[MAX_PLAYERS]; new DragCars[10]; forward MinuteTimer(); forward OnPlayerCommandTextEx(playerid,cmdtext[],command[],params[],bool:help); forward VezenieOdpocet(playerid); forward Anketa(playerid); forward BombExplode(playerid); forward StartDrag(); forward UpdateDrag(); forward StartRace(); forward ZmrzlinaPickup(i); forward acheat(playerid,Float:health,Float:armour,Float:z) ; forward BonusEx(playerid); forward letisko(playerid); forward Stavky(playerid); stock GetPlayerMoneyEx(playerid) return GetPVarInt(playerid,"PlayerMoney"); stock GivePlayerMoneyEx(playerid,money){ GivePlayerMoney(playerid,money); SetPVarInt(playerid,"PlayerMoney",GetPlayerMoney(p layerid)); } // Includy #include "icons_streamer.pwn" #include "Job.pwn" #include "infobox.pwn" #include "Bank.pwn" #include "Benzin.pwn" #include "CpStreamer.pwn" //#include "Death.pwn" #define MAX_PLAYER_CARS 3 #define SCM SendClientMessage #define DIALOG_MENU 1326 #define DIALOG_BUY 1327 #define DIALOG_CONFIG 1328 #define DIALOG_SETINGS 1329 #define DIALOG_SPZ 1330 new vehName[][] = { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "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", "Boxvillde", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "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", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car", "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville", "Tiller", "Utility Trailer" }; new Float:Pos[MAX_PLAYERS][MAX_PLAYER_CARS][4]; new Model[MAX_PLAYERS][MAX_PLAYER_CARS]; new ID[MAX_PLAYERS][MAX_PLAYER_CARS]; new Color[MAX_PLAYERS][MAX_PLAYER_CARS][2]; new Mod[MAX_PLAYERS][MAX_PLAYER_CARS][14]; new Float:Health[MAX_PLAYERS][MAX_PLAYER_CARS]; new Paintjob[MAX_PLAYERS][MAX_PLAYER_CARS]; new VehicleParams[MAX_PLAYERS][MAX_PLAYER_CARS][4]; forward TunePlayerCar(playerid,slot,panels,doors,lights,ti res); //================================= Property System ==============================// #define MAX_PROPERTY 50 #define MAX_PROPERTY_TYPE 10 #define MAX_PROPERTY_NAME 45 #define PROPERTY_DEFAULT_PRICE 300 #define PROPERTY_DEFAULT_OWNER "Nikdo" #define PROPERTY_LABEL_COLOR 0xFF0000FF #define MAX_DEFAULT_CENA 2500 #define MIN_DEFAULT_NAME 3 #define DIALOG_PROPERTY_BUY 1300 #define DIALOG_FARBA_OWNER 1301 #define DIALOG_KOLESA_OWNER 1302 #define DIALOG_OPRAVA_OWNER 1303 #define DIALOG_AMMO_OWNER 1304 #define DIALOG_JEDLO_OWNER 1305 #define DIALOG_FARBA_SHOP 1306 #define DIALOG_KOLESA_SHOP 1307 #define DIALOG_OPRAVA_SHOP 1308 #define DIALOG_AMMO_SHOP 1309 #define DIALOG_JEDLO_SHOP 1310 #define DIALOG_TYP_CHANGE 1311 #define DIALOG_PRICE_CHANGE 1312 #define DIALOG_NAME_CHANGE 1313 #define DIALOG_PROPERTY_SELL 1314 #define DIALOG_KABRIOLET_OWNER 1315 #define DIALOG_MOTO_OWNER 1316 #define DIALOG_LOWRIDER_OWNER 1317 #define DIALOG_OFFROAD_OWNER 1318 #define DIALOG_FAST_OWNER 1319 #define DIALOG_KABRIOLET_SHOP 1320 #define DIALOG_MOTO_SHOP 1321 #define DIALOG_LOWRIDER_SHOP 1322 #define DIALOG_OFFROAD_SHOP 1323 #define DIALOG_FAST_SHOP 1324 #define DIALOG_TYP_CHANGE2 1325 #define DAYS 86400*4 // Pri prvom vytvorenн - aby tam bol niaky nбzov (majiteľ si ho potom zmenн, len tam musн byť nбzov) new DefaultName[MAX_PROPERTY_TYPE][MAX_PROPERTY_NAME] = { "Pay and Spray", "Wheels Servis", "Repair Servis", "Ammo Nation", "Burger Shoot", "Kabriolet Store", "Bike Store", "Lowrider car Store", "OffRoad car Store", "Sport Store" }; /* 0 - FARBA 1 - KOLESA 2 - OPRAVA 3 - AMMO 4 - JEDLO 5 - KABRILOET 6 - MOTO 7 - LOWRIDER 8 - OFFROAD 9 - FAST */ #define FARBA 0 #define KOLESA 1 #define OPRAVA 2 #define AMMO 3 #define JEDLO 4 #define KABRIOLET 5 #define MOTO 6 #define LOWRIDER 7 #define OFFROAD 8 #define FAST 9 // Premenne new Float:PropertyPos[MAX_PROPERTY][3]; // Pozнcie (x,y,z) nehnuteľnosti new PropertyType[MAX_PROPERTY]; // Typ nehnuteľnosti new PropertyCost[MAX_PROPERTY]; // Cena nehnuteľnosti new PropertyPrice[MAX_PROPERTY] = {PROPERTY_DEFAULT_PRICE,...}; // Vlastnб cena tovaru new Text3D:PropertyLabel[MAX_PROPERTY]; // 3D Text Label new PropertyOwner[MAX_PROPERTY][MAX_PLAYER_NAME]; // Majiteľ new PropertyName[MAX_PROPERTY][MAX_PROPERTY_NAME]; // Nбzov new PropertyProfit[MAX_PROPERTY]; // Trћba new PropertyPC[MAX_PROPERTY]; new PropertyConnect[MAX_PROPERTY]; new PlayerCP[MAX_PLAYERS] = {-1,...}; new PlayerIN[MAX_PLAYERS] = {-1,...}; new PC = -1; forward PropertySaveAll(); //////////////////////////////////////////////////////////////////////////////////// // START FUNCTIONS // //////////////////////////////////////////////////////////////////////////////////// //================================= Vehicles System ==============================// stock CreatePlayerVehicle(playerid,slot,model){ new str[100]; format(str,100,"Cars/%s.%d.txt",PlayerName(playerid),slot); fcreate(str); new Float:pos[4]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]); GetPlayerFacingAngle(playerid, pos[3]); InfrontOf(playerid,pos[0],pos[1],4); ID[playerid][slot] = CreateVehicle(model,pos[0],pos[1],pos[2],pos[3],0,0,-1); Model[playerid][slot] = model; Pos[playerid][slot][0] = pos[0]; Pos[playerid][slot][1] = pos[1]; Pos[playerid][slot][2] = pos[2]; Pos[playerid][slot][3] = pos[3]; return true; } stock DeletePlayerVehicle(playerid,slot){ if(ID[playerid][slot] == -1) return 0; new str[100]; format(str,100,"Cars/%s.%d.txt",PlayerName(playerid),slot); if(fexist(str)) fremove(str); DestroyVehicle(ID[playerid][slot]); ID[playerid][slot] = -1; return true; } stock SavePlayerVehicles(playerid){ for(new i; i < MAX_PLAYER_CARS;i++){ if(ID[playerid][i] != -1){ new str[100],bigstr[798],Float:health; new panels,doors,lights,tires; GetVehicleDamageStatus(ID[playerid][i],panels,doors,lights,tires); GetVehicleHealth(ID[playerid][i],health); format(str,100,"Cars/%s.%d.txt",PlayerName(playerid),i); if(!fexist(str)) continue; new File:file = fopen(str, io_write); format(bigstr,798,"%d %0.3f %0.3f %0.3f %0.3f %0.3f %d %d %d %d\r\n",Model[playerid][i],Pos[playerid][i][0],Pos[playerid][i][1],Pos[playerid][i][2],Pos[playerid][i][3],health,panels,doors,lights,tires); // model x y z a health panels doors lights tires fwrite(file,bigstr); format(bigstr,798,"%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d", GetVehicleComponentInSlot(ID[playerid][i],0), /* 1 2 3 4 5 6 7 8 9 10 11 12 13 c1 c2 pj*/ GetVehicleComponentInSlot(ID[playerid][i],1), GetVehicleComponentInSlot(ID[playerid][i],2), GetVehicleComponentInSlot(ID[playerid][i],3), GetVehicleComponentInSlot(ID[playerid][i],4), GetVehicleComponentInSlot(ID[playerid][i],5), GetVehicleComponentInSlot(ID[playerid][i],6), GetVehicleComponentInSlot(ID[playerid][i],7), GetVehicleComponentInSlot(ID[playerid][i],8), GetVehicleComponentInSlot(ID[playerid][i],9), GetVehicleComponentInSlot(ID[playerid][i],10), GetVehicleComponentInSlot(ID[playerid][i],11), GetVehicleComponentInSlot(ID[playerid][i],12), GetVehicleComponentInSlot(ID[playerid][i],13), Color[playerid][i][0], Color[playerid][i][1], Paintjob[playerid][i]); fwrite(file,bigstr); fclose(file); DestroyVehicle(ID[playerid][i]); ID[playerid][i] = -1; } } } stock LoadPlayerVehicles(playerid){ for(new i; i < MAX_PLAYER_CARS;i++){ new str[100]; format(str,100,"Cars/%s.%d.txt",PlayerName(playerid),i); if(fexist(str)){ new bigstr[798]; new File:file = fopen(str,io_read); fread(file,bigstr); DelChar(bigstr); new panels,doors,lights,tires; sscanf(bigstr, "dfffffdddd", Model[playerid][i],Pos[playerid][i][0],Pos[playerid][i][1],Pos[playerid][i][2],Pos[playerid][i][3],Health[playerid][i],panels,doors,lights,tires); fread(file,bigstr); DelChar(bigstr); sscanf(bigstr, "dddddddddddddddd",Mod[playerid][i][0],Mod[playerid][i][1],Mod[playerid][i][2],Mod[playerid][i][3],Mod[playerid][i][4],Mod[playerid][i][5],Mod[playerid][i][6],Mod[playerid][i][7],Mod[playerid][i][8],Mod[playerid][i][9],Mod[playerid][i][10],Mod[playerid][i][11],Mod[playerid][i][12],Mod[playerid][i][13],Color[playerid][i][0],Color[playerid][i][1],Paintjob[playerid][i]); fclose(file); ID[playerid][i] = CreateVehicle(Model[playerid][i],Pos[playerid][i][0],Pos[playerid][i][1],Pos[playerid][i][2],Pos[playerid][i][3],Color[playerid][i][0],Color[playerid][i][1],-1); SetTimerEx("TunePlayerCar",150,false,"iiiiii",play erid,i,panels,doors,lights,tires); } } } stock BuyCar(playerid,model,cena,type = 1,id = -1){ if(GetPlayerMoney(playerid) < cena) return SCM(playerid,-1,"Nemбљ toľko peňazн !"); GivePlayerMoney(playerid,-cena); new slot = -1; if(type == 1){ slot = GetPVarInt(playerid,"VehiclesSelected"); }else{ for(new i; i < MAX_PLAYER_CARS;i++){ if(ID[playerid][i] == -1){ slot = i; break; } } } if(slot == -1) return SCM(playerid,-1,"Nemбљ toľko voľnэch miest, musнљ niake auto predať (/vehicle)"); if(id > -1){ PropertyProfit[id] += cena/100; } CreatePlayerVehicle(playerid,slot,model); return true; } public TunePlayerCar(playerid,slot,panels,doors,lights,ti res){ //print("TunePlayerCar"); for(new i; i < 14;i++){ AddVehicleComponent(ID[playerid][slot], Mod[playerid][slot][i]); } SetVehicleHealth(ID[playerid][slot],Health[playerid][slot]); UpdateVehicleDamageStatus(ID[playerid][slot],panels,doors,lights,tires); ChangeVehiclePaintjob(ID[playerid][slot], Paintjob[playerid][slot]); return true; } //================================= Property System ==============================// stock CreateProperty(typ,Float:x,Float:y,Float:z,cost){ PC++; if(PC < MAX_PROPERTY){ PropertyPos[PC][0] = x; PropertyPos[PC][1] = y; PropertyPos[PC][2] = z; if(typ < 0 || typ >= MAX_PROPERTY_TYPE) return printf("(%d/%d) Nehnutelnosť mб zlэ typ !",PC,MAX_PROPERTY_TYPE); PropertyType[PC] = typ; PropertyCost[PC] = cost; new str[256]; format(str,100,"Property/%d.txt",PC); if(!fexist(str)){ new File:file = fopen(str,io_write); format(str,256,"%s %d %d %d %d %s",PROPERTY_DEFAULT_OWNER,-1,PROPERTY_DEFAULT_PRICE,0,typ,DefaultName[typ]); /* O C P Z N */ // O - Owner P - Price Z - Zisk (profit) N - Name (property) fwrite(file,str); fclose(file); PropertyPrice[PC] = PROPERTY_DEFAULT_PRICE; format(PropertyName[PC],MAX_PROPERTY_NAME,"%s",DefaultName[typ]); format(PropertyOwner[PC],MAX_PLAYER_NAME,"%s",PROPERTY_DEFAULT_OWNER); }else{ new File:file = fopen(str,io_read); fread(file,str); //printf("|%s|%d|%d|%d|%d|%s|",PropertyOwner[PC],PropertyConnect[PC],PropertyPrice[PC],PropertyProfit[PC],PropertyType[PC],PropertyName[PC]); } PropertyPC[PC] = CreateStreamCp(x, y, z, 2.5); // format(str,256,"Nehnuteľnosť č.{FFFFFF}%d\n{FFFFFF}%s\n{FF0000}Owner: {FFFFFF}%s",PC,PropertyName[PC],PropertyOwner[PC]); PropertyLabel[PC] = Create3DTextLabel(str,PROPERTY_LABEL_COLOR,x,y,z+1 , 80, 0, 1); CreateMapIcon(8, -1, x, y, z); //CreateDynamicMapIcon(x, y, z, 8, -1, -1, -1, -1, 100.0); }else printf("(%d/%d) Na servery je moc nehnutelnostн ! ",PC,MAX_PROPERTY); return true; } stock PropertySave(id){ new str[256]; format(str,100,"Property/%d.txt",id); new File:file = fopen(str,io_write); if(PropertyConnect[id]+DAYS > gettime()){ format(str,256,"%s %d %d %d %d %s",PropertyOwner[id],PropertyConnect[id],PropertyPrice[id],PropertyProfit[id],PropertyType[id],PropertyName[id]); }else{ format(str,256,"%s %d %d %d %d %s",PROPERTY_DEFAULT_OWNER,-1,PROPERTY_DEFAULT_PRICE,0,PropertyType[id],DefaultName[PropertyType[id]]); } /* O P Z N */ // O - Owner P - Price Z - Zisk (profit) N - Name (property) fwrite(file,str); fclose(file); } public PropertySaveAll(){ for(new id; id <= PC;id++){ new str[256]; format(str,100,"Property/%d.txt",id); new File:file = fopen(str,io_write); if(PropertyConnect[id]+DAYS > gettime()){ format(str,256,"%s %d %d %d %d %s",PropertyOwner[id],PropertyConnect[id],PropertyPrice[id],PropertyProfit[id],PropertyType[id],PropertyName[id]); }else{ format(str,256,"%s %d %d %d %d %s",PROPERTY_DEFAULT_OWNER,-1,PROPERTY_DEFAULT_PRICE,0,PropertyType[id],DefaultName[PropertyType[id]]); } /* O C P Z N */ // O - Owner P - Price Z - Zisk (profit) N - Name (property) C - Connect (last) fwrite(file,str); fclose(file); } } stock GetPlayerPropertyID(playerid){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); for(new i; i <= PC;i++){ if(!strcmp(name,PropertyOwner[i],false)){ return i; } } return -1; } stock IsPlayerPropertyOwner(playerid,id){ if(!strcmp(PlayerName(playerid),PropertyOwner[id],false)) return true; return false; } stock GetPropertyOwner(playerid,id){ return PropertyName[id]; } stock IsPropertyForSale(id){ if(!strcmp(PROPERTY_DEFAULT_OWNER,PropertyOwner[id],false)) return true; return false; } main() { print("+--------------------FAKE-------------------+"); print("| *** REALNA ZEME *** |"); print("| Code: FUCKER [2011-2012] |"); print("| SA-MP Version 0.3e [Linux/Win] |"); print("| Gamemode Version [ f7.4 ] |"); print("+-------------------------------------------+\n"); } forward Float:InfrontOf(playerid,&Float:x,&Float:y,Float:v zd); Float:InfrontOf(playerid,&Float:x,&Float:y,Float:v zd)// by ****** { new Float:a; new vehicleid = GetPlayerVehicleID(playerid); GetPlayerPos(playerid,x,y,a); if(IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(vehicleid,a); else GetPlayerFacingAngle(playerid,a); x += (vzd * floatsin(-a,degrees)); y += (vzd * floatcos(-a,degrees)); return a; } public OnFilterScriptInit() { new Float:pos,id; for(new i; i < MAX_PROPERTY_TYPE;i++){ id++; //printf("%d",5-id); pos: 2044.85, 1174.78, 10.67 CreateProperty(MAX_PROPERTY_TYPE-id,2044.85, 1174.78+pos, 10.67,100); pos += 50; } POLICIA1 = CreateJob("Policia",280,283,284,24,1000,25,1000,3, 1,7500,0x0066FFFF,30); AddJobPickup(234.966201,158.785903,1003.023315,229 0.0146,2429.6028,10.8203); POLICIA2 = CreateJob("Policia",280,283,284,24,1000,25,1000,3, 1,7500,0x0066FFFF,30); AddJobPickup(252.120803,65.339103,1003.640625,-1620.3043,692.7501,7.1875); POLICIA3 = CreateJob("Policia",280,283,284,24,1000,25,1000,3, 1,7500,0x0066FFFF,30); AddJobPickup(237.670303,112.395103,1003.218811,158 6.6873,-1693.5253,6.2188); OCHRANKA = CreateJob("Ochranka",164,163,164,31,1000,25,1000,3 ,1,7500,0x996600FF,30); AddJobPickup(211.356292,1811.508544,21.859300,211. 7551,1816.8502,17.6406); YAKUZA1 = CreateJob("Yakuza",117,118,120,26,2000,28,1000,30, 2000,7500,0x336666FF,43); AddJobPickup(1906.291748,956.687011,10.820300,1922 .3425,955.5071,10.8127); YAKUZA2 = CreateJob("Yakuza",117,118,120,26,2000,28,1000,30, 2000,7500,0x336666FF,43); AddJobPickup(-2172.755371,680.036621,55.162200,-2180.2490,696.2125,53.8906); RUSACI1 = CreateJob("Ruskб Mafia",111,112,113,26,2000,28,1000,30,2000,7500,0x 3366CCFF,44); AddJobPickup(2170.076660,1711.978759,11.046799,216 5.3276,1723.3876,11.0469); RUSACI2 = CreateJob("Ruskб Mafia",111,112,113,26,2000,28,1000,30,2000,7500,0x 3366CCFF,44); AddJobPickup(-1673.365478,1367.173828,7.172200,-1684.1515,1358.9100,7.1722); TERACI = CreateJob("Teroristi",127,126,125,26,2000,35,10,30 ,2000,7500,0x990000FF,42); AddJobPickup(-1303.483154,2541.687255,93.304702,-1312.0713,2529.4385,87.6670); HASICI1 = CreateJob("Hasiči",277,278,279,37,100,42,1000,3,1, 7500,0xFF0000FF,20); AddJobPickup(1770.616943,2079.719238,10.820300,177 5.0414,2081.3333,10.8203); HASICI2 = CreateJob("Hasiči",277,278,279,37,100,42,1000,3,1, 7500,0xFF0000FF,20); AddJobPickup(-2026.739257,67.250701,28.691600,-2025.6426,63.7443,28.4251); TAXI1 = CreateJob("Taxikбr",60,101,234,5,1,22,1000,0,0,750 0,0xFFD700FF,56); AddJobPickup(2184.246093,1815.805053,10.820300,218 5.3188,1805.5313,11.0000); TAXI2 = CreateJob("Taxikбr",60,101,234,5,1,22,1000,0,0,750 0,0xFFD700FF,56); AddJobPickup(-1862.215454,-145.227294,11.898400,-1865.3208,-145.5064,11.8984); PILOT1 = CreateJob("Pilot",223,187,61,32,1000,27,2000,15,1, 7500,0xADFF2FFF,5); AddJobPickup(1715.289550,1616.648559,10.045299,171 0.2271,1617.3290,10.0304); PILOT2 = CreateJob("Pilot",223,187,61,32,1000,27,2000,15,1, 7500,0xADFF2FFF,5); AddJobPickup(-1543.833862,-441.096496,6.000000,-1540.6636,-437.4383,6.0000); PILOT3 = CreateJob("Pilot",223,187,61,32,1000,27,2000,15,1, 7500,0xADFF2FFF,5); AddJobPickup(1956.741943,-2183.605224,13.546799,1952.6326,-2188.1426,13.5469); DOKTOR1 = CreateJob("Doktor",274,275,276,4,1,41,1000,0,0,750 0,0x000080FF,22); AddJobPickup(1615.275146,1818.594604,10.820300,161 0.7471,1817.1653,10.8203); DOKTOR2 = CreateJob("Doktor",274,275,276,4,1,41,1000,0,0,750 0,0x000080FF,22); AddJobPickup(2036.740356,-1413.208129,16.992200,2033.5876,-1403.5522,17.2818); DOKTOR3 = CreateJob("Doktor",274,275,276,4,1,41,1000,0,0,750 0,0x000080FF,22); AddJobPickup(1177.588256,-1323.376098,14.078100,1172.7813,-1325.2448,15.4008); DOKTOR4 = CreateJob("Doktor",274,275,276,4,1,41,1000,0,0,750 0,0x000080FF,22); AddJobPickup(-2649.774902,635.628417,14.453100,-2643.5305,639.0719,14.4531); VOJAK1 = CreateJob("Vojak",287,287,287,31,1000,33,100,16,10 ,7500,0x8B4513FF,19); AddJobPickup(349.729400,2024.149414,22.640600,349. 6023,2029.3268,22.6406); VOJAK2 = CreateJob("Vojak",287,287,287,31,1000,33,100,16,10 ,7500,0x8B4513FF,19); AddJobPickup(-1525.942871,485.587005,7.179599,-1521.8956,480.9630,7.1875); VOJAK3 = CreateJob("Vojak",287,287,287,31,1000,33,100,16,10 ,7500,0x8B4513FF,19); AddJobPickup(2731.622070,-2417.220458,13.627900,2724.7756,-2416.3555,13.6277); KURVA1 = CreateJob("Љlapka",63,64,85,10,1,32,1000,24,1003,7 500,0xFF1493FF,12); AddJobPickup(1212.038940,-10.867799,1000.921813,2511.1729,2121.6750,10.8401) ; KURVA2 = CreateJob("Љlapka",63,64,85,10,1,32,1000,24,1003,7 500,0xFF1493FF,12); AddJobPickup(1209.071411,-31.623699,1000.953125,696.8232,1964.5580,5.5391); NOVINAR1 = CreateJob("Novinбr",98,119,187,24,2000,14,1,46,1,7 500,0x9ACD32FF,4); AddJobPickup(2786.293945,1278.472045,10.750000,276 0.9058,1296.3073,10.8984); NOVINAR2 = CreateJob("Novinбr",98,119,187,24,2000,14,1,46,1,7 500,0x9ACD32FF,4); AddJobPickup(-2057.207519,457.688995,35.171901,-2060.1016,469.0777,35.1723); NOVINAR3 = CreateJob("Novinбr",98,119,187,24,2000,14,1,46,1,7 500,0x9ACD32FF,4); AddJobPickup(774.513427,-1341.681762,13.528599,769.0343,-1331.8188,13.5463); GROOVE = CreateJob("Groove",105,106,107,30,2000,29,1500,26, 2000,7500,0x00FF00FF,62); AddJobPickup(2495.324707,-1686.353759,13.514100,2511.8528,-1689.5092,13.5416); BALLAS = CreateJob("Ballas",102,103,104,30,2000,29,1500,26, 2000,7500,0x9932CCFF,59); AddJobPickup(2223.313232,-1165.783447,25.733100,2232.5801,-1164.7040,25.8906); VAGOS = CreateJob("Vagos",108,109,110,30,2000,29,1500,26,2 000,7500,0xFFFF00FF,60); AddJobPickup(2352.319824,-1164.349243,27.420200,2348.9758,-1168.7146,27.9879); AZTECS = CreateJob("Aztecas",114,115,116,30,2000,29,1500,26 ,2000,7500,0x00FFFFFF,61); AddJobPickup(1883.104248,-2012.076660,13.546799,1893.5579,-2021.3516,13.5469); DEALER = CreateJob("Dealer",202,206,222,18,10,24,1000,4,1,7 500,0xDEB887FF,23); AddJobPickup(-1111.310058,-1637.322143,76.367202,-1095.3252,-1627.3052,76.3672); BEUSAK1 = CreateJob("Vodič Autobusu",221,223,229,25,1000,42,500,5,1,7500,0xC7 1585FF,51); AddJobPickup(1477.230346,2194.022460,11.023400,148 0.9177,2201.0454,11.0234); BEUSAK2 = CreateJob("Vodič Autobusu",221,223,229,25,1000,42,500,5,1,7500,0xC7 1585FF,51); AddJobPickup(-1968.589599,111.855003,27.687500,-1971.7594,118.5936,27.6875); BEUSAK3 = CreateJob("Vodič Autobusu",221,223,229,25,1000,42,500,5,1,7500,0xC7 1585FF,51); AddJobPickup(1111.469116,-1795.851684,16.593700,1111.0221,-1800.7748,16.5938); OPRAVAR1 = CreateJob("Opravбr",260,261,179,9,1,24,2000,43,150 ,7500,0x2E8B57FF,55); AddJobPickup(2772.822265,-1819.684448,11.843700,2768.8323,-1822.5529,11.8478); OPRAVAR2 = CreateJob("Opravбr",260,261,179,9,1,24,2000,43,150 ,7500,0x2E8B57FF,55); AddJobPickup(-2102.148437,-391.204101,35.531200,-2107.7419,-394.0410,35.5313); OPRAVAR3 = CreateJob("Opravбr",260,261,179,9,1,24,2000,43,150 ,7500,0x2E8B57FF,55); AddJobPickup(1104.926757,1795.117553,10.820300,110 2.7299,1797.4707,10.8203); SBS1 = CreateJob("SBS",163,164,164,27,1000,29,1000,31,100 0,7500,0x6A5ACDFF,18); AddJobPickup(-1819.333862,-150.339492,9.398400,-1816.0636,-149.8863,9.3984); SBS2 = CreateJob("SBS",163,164,164,27,1000,29,1000,31,100 0,7500,0x6A5ACDFF,18); AddJobPickup(1304.629028,-795.658081,84.140602,1307.2643,-798.8323,84.1406); SBS3 = CreateJob("SBS",163,164,164,27,1000,29,1000,31,100 0,7500,0x6A5ACDFF,18); AddJobPickup(2262.114501,2036.392333,10.820300,226 2.1062,2043.3740,10.8203); SMETIAR1 = CreateJob("Smetiar",260,260,260,46,1,17,10,5,1,750 0,0xF5DEB3FF,51); AddJobPickup(1442.470458,969.818420,10.820300,1439 .9784,971.4142,10.8203); SMETIAR2 = CreateJob("Smetiar",260,260,260,46,1,17,10,5,1,750 0,0xF5DEB3FF,51); AddJobPickup(-1732.249023,150.153106,3.554600,-1731.8741,154.8366,3.5547); SMETIAR3 = CreateJob("Smetiar",260,260,260,46,1,17,10,5,1,750 0,0xF5DEB3FF,51); AddJobPickup(2264.014404,-2346.636718,13.546799,2260.6228,-2342.9553,13.5469); TUNING1 = CreateJob("Tuningar",241,240,217,24,1000,4,1,1,1,7 500,0xFF6347FF,26); AddJobPickup(-2757.426513,241.317993,7.173699,-2755.8789,238.4416,7.1875); TUNING2 = CreateJob("Tuningar",241,240,217,24,1000,4,1,1,1,7 500,0xFF6347FF,26); AddJobPickup(2637.083007,-2011.906372,13.813799,2635.9507,-2004.2930,13.5561); KAMION1 = CreateJob("Vodič Kamionu",206,202,188,46,1,17,10,24,1000,7500,0x008 080FF,51); AddJobPickup(968.131469,2155.837402,10.820300,973. 0441,2179.6770,10.8203); KAMION2 = CreateJob("Vodic Kamionu",206,202,188,46,1,17,10,24,1000,7500,0x008 080FF,51); AddJobPickup(-1733.261352,37.896400,3.554600,-1733.1860,33.9222,3.5547); KAMION3 = CreateJob("Vodič Kamionu",206,202,188,46,1,17,10,24,1000,7500,0x008 080FF,51); AddJobPickup(2509.646972,-2636.859863,13.645099,2504.0024,-2637.4541,13.6480); ZMRZLINAR = CreateJob("Zmrzlinar",189,189,189,1,1,5,1,24,1000, 7500,0xFA8072FF,17); AddJobPickup(375.859313,-2055.146972,8.015600,371.5605,-2051.8547,8.0156); //359.7726,179.0443,1008.3828 PRAVNIK = CreateJob("Prбvnik",17,57,147,32, 1000,22, 1000,41, 1000,17500,0xFFB164AA,17); AddJobPickup(360.0642,179.2915,1008.3828,2416.4666 ,1128.5604,10.8203); // Vehicle for(new i; i < MAX_PLAYERS; i++){ for(new x; x < MAX_PLAYER_CARS;x++){ ID[i][x] = -1; Paintjob[i][x] = -999; } } } // Timery public MinuteTimer(){ new str[30]; new hod,minn,sec; gettime(hod,minn,sec); #pragma unused sec format(str,30,"%02d:%02d",hod,minn); QDIALOG:mechanik(){ if(response){ new car = GetPlayerVehicleID(playerid); if(car == 0) return SCM(playerid,-1,"Musнљ sedieť v aute !"); switch(listitem){ case 0:{ if(GetVehicleModel(car) != 525) return SCM(playerid,-1,"Nemбљ odťahovku"); if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(p layerid))) { DetachTrailerFromVehicle(car); }else{ new car2 = GetClosestVehicle(playerid, 100); if(car2 == -1) return SCM(playerid,-1,"Niesi v blнzkosti inйho auta"); AttachTrailerToVehicle(car2, car); } } case 1:{ SCMTAF(0x33CCFFAA,"Opravбr %s opravil zбkaznнkovэ auto",Jmeno(playerid)); SetVehicleHealth(car, 1000.0); } case 2:{ if(GetVehicleType(car) != VTYPE_CAR) return SCM(playerid,-1,"Na toto vozidlo sa nedб namontovať nitro"); SCMTAF(0x33CCFFAA,"Opravбr %s namontoval zбkaznнkovэ nitro",Jmeno(playerid)); AddVehicleComponent(car, 1010);//1087 } case 3:{ if(GetVehicleType(car) != VTYPE_CAR) return SCM(playerid,-1,"Na toto vozidlo sa nedб namontovať nitro"); SCMTAF(0x33CCFFAA,"Opravбr %s namontoval zбkaznнkovэ hydrauliku",Jmeno(playerid)); AddVehicleComponent(car, 1087);//1087 } } } return true; } |