Jump to content

Noname112

Membru
  • Posts

    15
  • Joined

  • Last visited

    Never

Noname112's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. pai comanda /portable imi merge dar nu merge sa scriu contracts,givehit,ranks,news etc. ai putea sa ma ajuti ??
  2. Salutari am o problema .. de curand am adaugat culorile pe chat dupa fiecare factiune .. dar acum cand sunt hitman si dau /portable apoi scriu contracts in chat nu merge. Trebuie sa mai adaug ceva ?? sunt cam nou in acest domeniu si va rog sa ma ajutati
  3. Salut am vrut sa fac hitmanul sa nu se vada pe map si am pus asa la ongamemodeinit public OnGameModeInit() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8){ }{ // Make the players marker an invisible white (chat will be white but marker will be gone). SetPlayerMarkerForPlayer(i, 1, 0xFFFFFF00 ); } } } ////////////// HITMAN /////////// LoadCar();// Loading Car's C:\Documents and Settings\Crisan\Desktop\Samp 0.3d hnh&Noname\gamemodes\GameSs-Net.pwn(8090) : error 017: undefined symbol "playerid" Dar cand dau compile imi da aceasta eroare
  4. Salut , de curand am facut in MTA o benzinarie in garaj la LSPD .. totul a mers bine dar as vrea sa pot sa dau /fill la acea benzinarie .. am cautat in gamemode /fill dar nu gasesc niciun If PlayerToPoint .. ca daca l-as gasi as schimba doar coordonatele , va rog sa ma ajutati .
  5. [pawn]mda au venit alte erori peste mine C:\Users\FLAVIU~1\AppData\Local\Temp\Rar$EX15.598\Pawno 0.3c\include\streamer.inc(436) : warning 202: number of arguments does not match definition C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(10207) : warning 219: local variable "string2" shadows a variable at a preceding level C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(13381) : warning 202: number of arguments does not match definition C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(13436) : warning 202: number of arguments does not match definition C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(251) : warning 204: symbol is assigned a value that is never used: "Streamer_g_OPERC" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.[/pawn] [pawn]{150},//DRIVING/FLYING_SCHOOL//52[/pawn] [pawn] public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new playername2[MAX_PLAYER_NAME]; new playernamesplit[3][MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); split(playername2, playernamesplit, '_'); format(string2, sizeof(string2), "%s.ini", playername2); new File: UserFile = fopen(string2, io_read); if ( UserFile ) { new PassData[256]; new keytmp[256], valtmp[256]; fread( UserFile , PassData , sizeof( PassData ) ); keytmp = ini_GetKey( PassData ); if( strcmp( keytmp , "Key" , true ) == 0 ) { valtmp = ini_GetValue( PassData ); strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255); } if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 ) { new key[ 256 ] , val[ 256 ]; new Data[ 256 ]; while ( fread( UserFile , Data , sizeof( Data ) ) ) {;[/pawn] [pawn] BusrouteWest[playerid][0] = 1; BusrouteWest[playerid][1] = playervehicleid; //BusrouteWest[playerid][2] = 0; /* for (new i=0; i<=MAX_PLAYERS; i++) { if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == playervehicleid) BusrouteWest[playerid][2] ++; }*/ OnPlayerEnterCheckpoint(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "You are not in a bus!");[/pawn] [pawn] BusrouteWest[playerid][0] = 1; BusrouteWest[playerid][1] = playervehicleid; //BusrouteWest[playerid][2] = 0; /* for (new i=0; i<=MAX_PLAYERS; i++) { if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == playervehicleid) BusrouteWest[playerid][2] ++; }*/ OnPlayerEnterCheckpoint(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "You are not in a bus!");[/pawn] [pawn]forward DateProp(playerid); forward GetClosestPlayer(p1); forward IsPlayerInTurf(playerid, turfid); forward LoadMission(playerid,name[]); forward SaveMission(playerid,name[]); forward PrintBizInfo(playerid,targetid); forward PrintSBizInfo(playerid,targetid); forward SetPlayerUnjail(); forward OtherTimer(); forward RingTonerRev(); forward RingToner(); forward HireCost(carid); forward IsABus(carid); forward BanLog(string[]); forward KickLog(string[]); forward IsAHarvest(carid); forward PayLog(string[]); forward CKLog(string[]); forward IsATruck(carid); forward IsAnAmbulance(carid); forward IsACopCar(carid);;[/pawn] daca sterg new string2[64]; imi da mult mai multe erori
  6. [pawn]C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(5003) : warning 209: function "Streamer_OnPlayerEnterCP" should return a value C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(10209) : warning 219: local variable "string2" shadows a variable at a preceding level[/pawn] si linile gm la prima erroare [pawn] FarmerPickup[playerid][0]++; PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); } } return 1; } } [/pawn] a doua erroare [pawn]public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new playername2[MAX_PLAYER_NAME]; new playernamesplit[3][MAX_PLAYER_NAME]; [/pawn] Help me va rog
  7. Salutari all azi am luat carownershipul al lui IM_Blank si l`am facut pana in capat dar am o intrebare de ce cand dau /veh sa spawnez o masina noua sa fac un event de ex este de vanzare astept o rezolvare
  8. Salut all deci am tot incercat azi sa fac carownershipul lui IM Blank si tot nu reusesc v`as ruga frumos pe cine are timp sa ma ajute si pe mine cu team viewer si sa imi explice cum trebuie sa fac un car ownership .. Va rog mult sa ma ajutati .. + ca am incercat si eu si nu cred ca au fost numerotate masinile deoarece toate erau de vanzare help plz id meu de mess este <removed>
  9. cred ca am gasit o solutie acum o incerc dar va rog sa va uitati peste topic si sa ma ajutati _________________________________________________________________________________________ Edit : Am rezolvat
  10. Salutari all azi am luat un nou gamemode si am pus niste addstreamerobject .. iar dupa am dat compile si mi`a dat o eroare jos de tot in gamemode [pawn]C:\Documents and Settings\XeRu\Desktop\samp03\gamemodes\eGamer.pwn(55727) : warning 203: symbol is never used: "FirstKartWinner" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 10852 bytes Code size: 2107848 bytes Data size: 6944664 bytes Stack/heap size: 16384 bytes; estimated max. usage=5184 cells (20736 bytes) Total requirements: 9079748 bytes 1 Warning.[/pawn] [pawn] case 5, 6: { if(IsNum(StrToChk[a])) IpLevel++; else if(StrToChk[a] == '.') IpLevel = 8; else IpLevel = 0; } case 7: { if(StrToChk[a] == '.') IpLevel++; else IpLevel = 0; } case 8: { if(IsNum(StrToChk[a])) IpLevel++; else IpLevel = 0; } case 9, 10:{ if(IsNum(StrToChk[a])) IpLevel++; else if(StrToChk[a] == '.') IpLevel = 12; else IpLevel = 0; } case 11: { if(StrToChk[a] == '.') IpLevel++; else IpLevel = 0; } case 12: { if(IsNum(StrToChk[a])) return 1; else IpLevel = 0; } } } return 1; }[/pawn] Edit : In pawno nu am acea linie in care am eroarea Help me va rog frumos ca vreau sa rezolv
  11. salutari all am o problema majora zic eu in car ownership defapt in gamemode ... am vrut sa adaug dintr`un server in altul car ownershipul dar cand lam bagat in GamemodeInit a dat 18 erori nush dc .. si as vrea sa remediez aceasta problema .. [pawn]D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9222) : error 017: undefined symbol "cmdtext" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9224) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9226) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9228) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9231) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9233) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9238) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9239) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9246) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9247) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9255) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9262) : error 017: undefined symbol "cmd" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9264) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9269) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9270) : error 017: undefined symbol "playerid" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9270) : error 017: undefined symbol "playername" D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9270) : error 029: invalid expression, assumed zero D:\samp\Server Samp hNh14 ; Noname\gamemodes\hNh14.pwn(9270) : fatal error 107: too many error messages on one line[/pawn] Iar Liniile la script [pawn]//--------------------------------------------------[ Sell Cars]------------------------------------- if(!strcmp(cmdtext, "/asellcar", true)) // By LuciaN { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Trebuie sa fii logat !"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 5000) { new vehid = GetPlayerVehicleID(playerid); new Float:x,Float:y,Float:z; new Float:a; CarInfo[vehid][cOwned] = 0; strmid(CarInfo[vehid][cOwner], "Dealer", 0, strlen("Dealer"), 999); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); GameTextForPlayer(playerid, "~w~Deoarece esti admin, ai vandut masina", 10000, 3); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, a); CarInfo[vehid][cLocationx] = x; CarInfo[vehid][cLocationy] = y; CarInfo[vehid][cLocationz] = z; CarInfo[vehid][cAngle] = a; RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); OnPropUpdate(); DestroyVehicle(vehid); CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],CarInfo[vehid][cColorOne],CarInfo[vehid][cColorTwo],60000); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You're not authorized to use that command !"); return 1; } } return 1; } //---------------------------------------------------------------------------------------- if else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !"); return 1; } } return 1; } // -------------------------------[Cars]------------------------------------------------ if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // By LuciaN { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Trebuie sa te loghezi mai intai! "); return 1; } new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Comenzi: park, lock(1-3), sellto, color, control"); return 1; } if(strcmp(x_nr,"sellto",true) == 0) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { GetPlayerName(playerid, sendername, sizeof(sendername)); new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { ownvehkey = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[giveplayerid][pPcarkey] == 999) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]"); return 1; } new price; price = strval(tmp); if(price < 1 || price > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1 and not higher then 1500000. "); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* I-ai oferit lui %s sa iti cumpere masina cu $%d .", giveplayer, price); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Proprietarul masinii %s ti-a oferit sa ii cumperi masina lui/ei cu $%d (scrie /accept ownablecar) sa cumperi", playername, price); SendClientMessage(giveplayerid, COLOR_WHITE, string); OwnableCarOffer[giveplayerid] = playerid; OwnableCarID[giveplayerid] = ownvehkey; OwnableCarPrice[giveplayerid] = price; return 1; } else if(PlayerInfo[giveplayerid][pPcarkey2] == 999) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]"); return 1; } new price; price = strval(tmp); if(price < 1 || price > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1 and not higher then 1500000. "); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* I-ai oferit lui %s sa iti cumpere masina cu $%d .", giveplayer, price); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Proprietarul masinii %s ti-a oferit sa ii cumperi masina lui/ei cu $%d (scrie /accept ownablecar) sa cumperi.", playername, price); SendClientMessage(giveplayerid, COLOR_WHITE, string); OwnableCarOffer[giveplayerid] = playerid; OwnableCarID[giveplayerid] = ownvehkey; OwnableCarPrice[giveplayerid] = price; return 1; } else if(PlayerInfo[giveplayerid][pPcarkey3] == 999) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]"); return 1; } new price; price = strval(tmp); if(price < 1 || price > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1 and not higher then 1500000. "); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* I-ai oferit lui %s sa iti cumpere masina cu $%d .", giveplayer, price); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Proprietarul masinii %s ti-a oferit sa ii cumperi masina lui/ei cu $%d (scrie /accept ownablecar) sa cumperi.", playername, price); SendClientMessage(giveplayerid, COLOR_WHITE, string); OwnableCarOffer[giveplayerid] = playerid; OwnableCarID[giveplayerid] = ownvehkey; OwnableCarPrice[giveplayerid] = price; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Player has 3 cars already ! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Player is not near you ! "); return 1; } } } } else { SendClientMessage(playerid, COLOR_GREY, " Aceasta nu este masina ta."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Trebuie sa stai in masina ta ca sa o vinzi"); return 1; } } else if(strcmp(x_nr,"engine",true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999) { SendClientMessage(playerid, COLOR_GREY,"This car is not yours."); return 1; } new vehid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { vehid = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { vehid = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { vehid = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } if(IsPlayerInVehicle(playerid, vehid)) { SendClientMessage(playerid, COLOR_RED, "You started the car can accelerate."); SendClientMessage(playerid, COLOR_GREY, "Drive carefully."); TogglePlayerControllable(playerid, 1); } } else if(strcmp(x_nr,"park",true) == 0) { new Float:x,Float:y,Float:z; new Float:a; new carid; new getcarid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } getcarid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); //GetPlayerFacingAngle(playerid, a); GetVehicleZAngle(carid, a); if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3]) { SendClientMessage(playerid, COLOR_GREY, "Nu detii o masina"); return 1; } if(getcarid == carid) { CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; format(string, sizeof(string), "~n~ Ti-ai parcat masina in aceasta pozitie. ~n~"); GameTextForPlayer(playerid, "Ti-ai parcat masina in aceasta pozitie, aici ti se v-a respawna.", 10000, 3); OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(carid); CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000); TogglePlayerControllable(playerid, 1); return 1; } } } else if(strcmp(x_nr,"lock1",true) == 0) { new keycar = PlayerInfo[playerid][pPcarkey]; if(keycar != 999) { new locked[256]; locked = strtok(cmdtext, idx); if(CarInfo[keycar][cLock] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,0); } } format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 0; OnPropUpdate(); return 1; } else if(CarInfo[keycar][cLock] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,1); } } format(string, sizeof(string), "~w~Vehicle~n~~r~Locked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 1; OnPropUpdate(); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle at slot 1"); return 1; } } else if(strcmp(x_nr,"lock2",true) == 0) { new keycar = PlayerInfo[playerid][pPcarkey2]; if(keycar != 999) { new locked[256]; locked = strtok(cmdtext, idx); if(CarInfo[keycar][cLock] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,0); } } format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 0; OnPropUpdate(); return 1; } else if(CarInfo[keycar][cLock] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,1); } } format(string, sizeof(string), "~w~Vehicle~n~~r~Locked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 1; OnPropUpdate(); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle at slot 2"); return 1; } } else if(strcmp(x_nr,"lock3",true) == 0) { new keycar = PlayerInfo[playerid][pPcarkey3]; if(keycar != 999) { new locked[256]; locked = strtok(cmdtext, idx); if(CarInfo[keycar][cLock] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,0); } } format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 0; OnPropUpdate(); return 1; } else if(CarInfo[keycar][cLock] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,1); } } format(string, sizeof(string), "~w~Vehicle~n~~r~Locked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 1; OnPropUpdate(); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Nu ai nici o masina la slot 3"); return 1; } } else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999) { SendClientMessage(playerid, COLOR_GREY," Nu ai nici o masina pentru culoare"); return 1; } if(GetPlayerMoney(playerid) < 1000) { SendClientMessage(playerid, COLOR_GREY," Nu ai destui bani sa pui culoarea.."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /v color [ColorOneID] [ColorTwoID]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Ai gresit IDul la culoare!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /v color [ColorOneID] [ColorTwoID]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Ai gresit IDul la culoare"); return 1; } new vehid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { vehid = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { vehid = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { vehid = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } if(IsPlayerInVehicle(playerid, vehid)) { CarInfo[vehid][cColorOne] = color1; CarInfo[vehid][cColorTwo] = color2; GivePlayerMoney(playerid, -1000); GameTextForPlayer(playerid, "~w~Ti-ai vopsit masina~n~~r~-$1000", 5000, 1); ChangeVehicleColor(vehid, color1, color2); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY," Nu esti in masina ta."); return 1; } } else if(strcmp(x_nr,"buy",true) == 0) { if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pLevel] < 5) { SendClientMessage(playerid, COLOR_GREY, "Iti trebuie minim level 5."); return 1; } if(PlayerInfo[playerid][pPcarkey] == 999) { } else if(PlayerInfo[playerid][pPcarkey2] == 999) { } else if(PlayerInfo[playerid][pPcarkey3] == 999) { } else { SendClientMessage(playerid, COLOR_GREY, " Deja detii 3 vehicule"); return 1; } if(CarInfo[idcar][cOwned]==1) { SendClientMessage(playerid, COLOR_GREY, "Cineva detine aceasta masina deja."); return 1; } if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue]) { if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = idcar; } else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = idcar; } else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = idcar; } else { return 1; } CarInfo[idcar][cOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999); GivePlayerMoney(playerid,-CarInfo[idcar][cValue]); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita de /v park !", 5000, 3); SendClientMessage(playerid, COLOR_LIGHTRED, "Felicitari ti-ai cumparat o masina cu succes!"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pentru manual te rog frumos scrie /vhelp"); TogglePlayerControllable(playerid, 1); DateProp(playerid); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Nu ai destui bani la tine ! "); return 1; } } } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock(1-3), sellto, color"); return 1; } } return 1; }[/pawn]
  12. Tot nu merge ( am instalat dar nu merge alte solutii va rog
  13. Salut all inatai vreu sa va spun de ce am postat aici .. Am o problema majora cu unable execut compiler la pawno deoarece cand intru si dau compile imi da aceasta eroare .. Am instalat net framework 3.5 + Nu am nicio gresala in pawno de exemplu ) sau ceva de genu e pawno verificat .. + ca nici run as administrator nu merge Va rog frumos sa ma ajutati .. pentru ca am tot urmat tutoriale si pe engleza si nu a mers .. sunt la prima incercare de compile pe windows 7
  14. Incerc si revin cu edit dupa ___________________________________________________________ Merge .. Ms mult
  15. Salut all am o problema majora .. deci am ingradit cu MTA toate factiunile iar am o problema majora zic eu .. am urmat un tutorial iar trebuia sa pun coordonatele portii inchise iar apoi deschise .. am facut tot am pus in pawno tot ce trebuia iar am pus coordonatele acolo ( coordonatele le`am aflat cu MTA ) iar cand am vrut sa dau in pawno compile .. mi`a dat eroare la coordonate .. Coordonatele le`am aflat bine zic eu + ca leam aflat cu mta asta poate fi o problema ?? Astept raspunsuri tutoriale sau sa ma ajutati va rog eu mult
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.