Jump to content

Papana

Membru
  • Posts

    334
  • Joined

  • Last visited

    Never

Everything posted by Papana

  1. Mia dat asta MISSING BRACKET: The { bracket on line 13977 does not have a pair! Result: Opening angle brackets ({): 10460 Closing angle brackets (}): 10459 1 angle brackets without pair! Fix it!
  2. pai cautaqis i nu gasesc nicaieri nicio } lipsa :@:@ mie imi dadea erorile astea si cand faceam la comanda /lotto sa fie cu playertopoint adica intrun anumit loc ... si nu lipsea nici acolo nici o } poate la comanda asta o lipsi o } dar ma uitai si nu lipseste [pawn]if(strcmp(cmd, "/v2", true) == 0 || strcmp(cmd, "/vehicle2", true) == 0) // { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle(2) [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock, color, tow, locate"); return 1; } else if(strcmp(x_nr,"sellto",true) == 0) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPhelikey]) { GetPlayerName(playerid, sendername, sizeof(sendername)); new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPhelikey]) { ownvehkey = PlayerInfo[playerid][pPhelikey]; } else { return 1; } if(strcmp(sendername, HeliInfo[ownvehkey][eOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /v2 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][pPhelikey] == 999) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /v2 sellto [playerid/PartOfName] [price]"); return 1; } new price; price = strval(tmp); if(price < 1 || price > 1500000) { 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), "* You offerd %s to buy your car for $%d .", giveplayer, price); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Car Owner %s offered you to buy his/her car for $%d (type /accept ownablecar) to buy.", playername, price); SendClientMessage(giveplayerid, COLOR_WHITE, string); OwnableCarOffer[giveplayerid] = playerid; OwnableCarID[giveplayerid] = ownvehkey; OwnableCarPrice[giveplayerid] = price; return 1; } else { SendClientMessage(playerid, COLOR_GREY, "That player already have a car! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Player is not near you ! "); return 1; } } } } else { SendClientMessage(playerid, COLOR_GREY, " This is not your car"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You have to sit at your own car to sell it"); return 1; } } else if(strcmp(x_nr,"tow",true) == 0) { if(IsPlayerConnected(playerid)) { new car = PlayerInfo[playerid][pPhelikey]; GetPlayerName(playerid, playername, sizeof(playername)); if (car != 999 && strcmp(playername, HeliInfo[PlayerInfo[playerid][pPhelikey][cOwner], true) == 0) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } if(CarTow(car)) { GameTextForPlayer(playerid, "~w~Car~n~~g~Towed~n~~r~$-1500", 5000, 1); GivePlayerCash(playerid,-1500); SetVehicleToRespawn(car); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 1500;//towcar buisness ExtortionSBiz(8, 100); SBizzInfo[8][sbProducts]--; } else { GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } } else { GameTextForPlayer(playerid, "~w~You are not a car owner", 5000, 1); } } } else if(strcmp(x_nr,"locate",true) == 0) { if(!IsPlayerConnected(playerid)) { return 1; } if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } new Float:x,Float:y,Float:z; new car = PlayerInfo[playerid][pPhelikey]; if(PlayerInfo[playerid][pPhelikey]==999) { GameTextForPlayer(playerid, "~w~You do not have a car to locate", 2500, 3); return 1; } SendClientMessage(playerid,COLOR_WHITE,"Car location is at red marker on a map"); GetVehiclePos(car, x, y, z); SetPlayerCheckpoint(playerid, x, y, z, 6); return 1; } else if(strcmp(x_nr,"park",true) == 0) { if(!IsAtDealership(playerid)) { new Float:x,Float:y,Float:z; new Float:a; new carid; new getcarid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPhelikey]) { carid = PlayerInfo[playerid][pPhelikey]; } 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) && HeliInfo[carid][cOwned] == 1) { if(PlayerInfo[playerid][pPhelikey] == 999) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(getcarid == carid) { HeliInfo[carid][cLocationx] = x; HeliInfo[carid][cLocationy] = y; HeliInfo[carid][cLocationz] = z; HeliInfo[carid][cAngle] = a; format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3); OnPropUpdate(); OnPlayerUpdateEx(playerid); DestroyVehicle(carid); CreateVehicle(HeliInfo[carid][cModel],HeliInfo[carid][cLocationx],HeliInfo[carid][cLocationy],HeliInfo[carid][cLocationz]+1.0,HeliInfo[carid][cAngle],HeliInfo[carid][cColorOne],HeliInfo[carid][cColorTwo],60000); TogglePlayerControllable(playerid, 1); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You have to sit at your own car to park it! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You can't park your car at the Dealership !"); return 1; } } else if(strcmp(x_nr,"lock",true) == 0) { new keycar = PlayerInfo[playerid][pPhelikey]; if(keycar != 999) { new locked[256]; locked = strtok(cmdtext, idx); if(HeliInfo[keycar][cLock] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,0); } } format(string, sizeof(string), "~w~%s ~g~Unlocked",HeliInfo[carkey][cDescription]); GameTextForPlayer(playerid, string, 4000, 3); HeliInfo[keycar][cLock] = 0; OnPropUpdate(); return 1; } else if(HeliInfo[keycar][eLock] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,1); } } format(string, sizeof(string), "~w~%s ~r~Locked",HeliInfo[helikey][cDescription]); GameTextForPlayer(playerid, string, 4000, 3); HeliInfo[keycar][eLock] = 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,"color",true) == 0) { if(PlayerInfo[playerid][pPhelikey] == 999 && PlayerInfo[playerid][pPhelikey2] == 999 && PlayerInfo[playerid][pPhelikey3] == 999) { SendClientMessage(playerid, COLOR_GREY," You don't have a vehicle to respray."); return 1; } if(GetPlayerCash(playerid) < 1000) { SendClientMessage(playerid, COLOR_GREY," You don't have enough money for vehicle respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /v2 color [ColorOneID] [ColorTwoID]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /v2 color [ColorOneID] [ColorTwoID]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new vehid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPhelikey]) { vehid = PlayerInfo[playerid][pPhelikey]; } else { return 1; } if(IsPlayerInVehicle(playerid, vehid)) { HeliInfo[vehid][eColorOne] = color1; HeliInfo[vehid][eColorTwo] = color2; GivePlayerCash(playerid, -1000); GameTextForPlayer(playerid, "~w~Bill for a Paint Respray~n~~r~-$1000", 5000, 1); ChangeVehicleColor(vehid, color1, color2); OnPropUpdate(); OnPlayerUpdateEx(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY," You are not in your vehicle."); return 1; } } else if(strcmp(x_nr,"buy",true) == 0) { if(IsAnOwnableHeli(idcar)) { if(PlayerInfo[playerid][pLevel] < 3) { SendClientMessage(playerid, COLOR_GREY, "You need to be level 3 to buy a vehicle!"); return 1; } if(PlayerInfo[playerid][pPhelikey] == 999) { } else { SendClientMessage(playerid, COLOR_GREY, " You already own a vehicles"); return 1; } if(HeliInfo[idcar][eOwned]==1) { SendClientMessage(playerid, COLOR_GREY, "Someone already owns this car"); return 1; } if(GetPlayerCash(playerid) >= HeliInfo[idcar][eValue]) { if(PlayerInfo[playerid][pPhelikey] == 999) { PlayerInfo[playerid][pPhelikey] = idcar; } else { return 1; } HeliInfo[idcar][eOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HeliInfo[idcar][eOwner], sendername, 0, strlen(sendername), 999); GivePlayerCash(playerid,-HeliInfo[idcar][eValue]); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /carhelp to view the vehicle manual!"); DateProp(playerid); OnPropUpdate(); OnPlayerUpdateEx(playerid); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! "); return 1; } } } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle(2) [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock, color, tow, locate"); return 1; } } return 1; }[/pawn] dami programu ala macar sunt sigur daca lipseste o } ala zice daca lipseste .. lm avut si io odata
  3. pff pai si cum sa gasesc sunt prea multe locuri ce fac iau tot gm si caut ?( parca era un program ???
  4. am facut cam tot cu ownablecar am facut ownableheli am facut si comanda de accept o mai am paia /v2 dar am dat compile inainte sa ma apuc de /v2 si uite ce erori imi da io unu am dublat tot cum trebuie am facut si pPhelikey si eInfo [eowner,elock tot] si cu heli.cfg dar imi da aceste erori [pawn]D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3100) : error 004: function "GivePlayerCash" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3129) : error 004: function "GivePlayerCash" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3165) : error 004: function "SafeResetPlayerWeapons" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3166) : error 004: function "SafeGivePlayerWeapon" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3193) : error 004: function "SafeResetPlayerWeapons" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3493) : error 004: function "SetPlayerToTeamColor" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3518) : error 004: function "SetPlayerToTeamColor" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3560) : error 004: function "SetPlayerCriminal" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3565) : error 004: function "SetPlayerCriminal" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3732) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3744) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3756) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3768) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3772) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3784) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3788) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3792) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3796) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3800) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3804) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3808) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3812) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3824) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3828) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3832) : error 004: function "PlayerToPoint" is not implemented D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(3836) : error 004: function "PlayerToPoint" is not implemented[/pawn] mi lea mai dat si cand faceam o comanda intrun anumit loc ... sau cand adaug anumite lucruri... chiar daca eram sigur ca puneam bine :| cum le rezolv ???
  5. aici [pawn]if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)[/pawn] fac asa???: [pawn]if(IsAnOwnableCar(vehicleid) && IsAnOwnableHeli(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)[/pawn]
  6. aici [pawn]public IsAnOwnableHeli(vehicleid) { if(vehicleid >= ID && vehicleid < ID) { return 1; } return 0; }[/pawn] pun idurile care sunt in joc adica id masina 400-450 adica am 50 de masini personale
  7. Deci am sistemu de masini si am /v la masina cu 1 slot si as vrea sa fac alt sistem adica ceva de genu /v2 si sa am in scriptfiles de unde sa fie alte masini [sa fie elicoptere/avioane] nume: heli.cfg si acolo sa bag datele de la vehicule ... si comenzile care le am sa fie pentru alea dar sa se si salveze masini,owner tot ma poate ajuta cineva ???? alea cu pHeli pot face si io dar nu stiu cum sa fac comenzile + save si mai ales sa le ia din heli.cfg imi explica cineva ??? COMENZII: [pawn]if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock, color, tow, locate"); return 1; } else if(strcmp(x_nr,"sellto",true) == 0) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { GetPlayerName(playerid, sendername, sizeof(sendername)); new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } 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 > 1500000) { 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), "* You offerd %s to buy your car for $%d .", giveplayer, price); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Car Owner %s offered you to buy his/her car for $%d (type /accept ownablecar) to buy.", playername, price); SendClientMessage(giveplayerid, COLOR_WHITE, string); OwnableCarOffer[giveplayerid] = playerid; OwnableCarID[giveplayerid] = ownvehkey; OwnableCarPrice[giveplayerid] = price; return 1; } else { SendClientMessage(playerid, COLOR_GREY, "That player already have a car! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Player is not near you ! "); return 1; } } } } else { SendClientMessage(playerid, COLOR_GREY, " This is not your car"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You have to sit at your own car to sell it"); return 1; } } else if(strcmp(x_nr,"tow",true) == 0) { if(IsPlayerConnected(playerid)) { new car = PlayerInfo[playerid][pPcarkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (car != 999 && strcmp(playername, CarInfo[PlayerInfo[playerid][pPcarkey]][cOwner], true) == 0) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } if(CarTow(car)) { GameTextForPlayer(playerid, "~w~Car~n~~g~Towed~n~~r~$-1500", 5000, 1); GivePlayerCash(playerid,-1500); SetVehicleToRespawn(car); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 1500;//towcar buisness ExtortionSBiz(8, 100); SBizzInfo[8][sbProducts]--; } else { GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } } else { GameTextForPlayer(playerid, "~w~You are not a car owner", 5000, 1); } } } else if(strcmp(x_nr,"locate",true) == 0) { if(!IsPlayerConnected(playerid)) { return 1; } if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } new Float:x,Float:y,Float:z; new car = PlayerInfo[playerid][pPcarkey]; if(PlayerInfo[playerid][pPcarkey]==999) { GameTextForPlayer(playerid, "~w~You do not have a car to locate", 2500, 3); return 1; } SendClientMessage(playerid,COLOR_WHITE,"Car location is at red marker on a map"); GetVehiclePos(car, x, y, z); SetPlayerCheckpoint(playerid, x, y, z, 6); return 1; } else if(strcmp(x_nr,"locate2",true) == 0) { if(!IsPlayerConnected(playerid)) { return 1; } if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } new Float:x,Float:y,Float:z; new car = PlayerInfo[playerid][pPcarkey2]; if(PlayerInfo[playerid][pPcarkey2]==999) { GameTextForPlayer(playerid, "~w~You do not have a car to locate", 2500, 3); return 1; } SendClientMessage(playerid,COLOR_WHITE,"Car location is at red marker on a map"); GetVehiclePos(car, x, y, z); SetPlayerCheckpoint(playerid, x, y, z, 6); return 1; } else if(strcmp(x_nr,"park",true) == 0) { if(!IsAtDealership(playerid)) { 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 { 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) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); 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~ You have parked your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3); OnPropUpdate(); OnPlayerUpdateEx(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 { SendClientMessage(playerid, COLOR_GREY, " You have to sit at your own car to park it! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You can't park your car at the Dealership !"); return 1; } } else if(strcmp(x_nr,"lock",true) == 0) { new keycar = PlayerInfo[playerid][pPcarkey]; new carkey = 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~%s ~g~Unlocked",CarInfo[carkey][cDescription]); 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~%s ~r~Locked",CarInfo[carkey][cDescription]); 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,"color",true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999) { SendClientMessage(playerid, COLOR_GREY," You don't have a vehicle to respray."); return 1; } if(GetPlayerCash(playerid) < 1000) { SendClientMessage(playerid, COLOR_GREY," You don't have enough money for vehicle respray."); 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, " Wrong color id!"); 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, " Wrong color id!"); 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; GivePlayerCash(playerid, -1000); GameTextForPlayer(playerid, "~w~Bill for a Paint Respray~n~~r~-$1000", 5000, 1); ChangeVehicleColor(vehid, color1, color2); OnPropUpdate(); OnPlayerUpdateEx(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY," You are not in your vehicle."); return 1; } } else if(strcmp(x_nr,"buy",true) == 0) { if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pLevel] < 3) { SendClientMessage(playerid, COLOR_GREY, "You need to be level 3 to buy a vehicle!"); return 1; } if(PlayerInfo[playerid][pPcarkey] == 999) { } else { SendClientMessage(playerid, COLOR_GREY, " You already own a vehicles"); return 1; } if(CarInfo[idcar][cOwned]==1) { SendClientMessage(playerid, COLOR_GREY, "Someone already owns this car"); return 1; } if(GetPlayerCash(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); GivePlayerCash(playerid,-CarInfo[idcar][cValue]); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /carhelp to view the vehicle manual!"); DateProp(playerid); OnPropUpdate(); OnPlayerUpdateEx(playerid); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! "); return 1; } } } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock, color, tow, locate"); return 1; } } return 1; }[/pawn] sa fie pt pHeli si ce mai trebui si aici la accept sa fie si pt heli cum am zis COMANDA ACCEPT [pawn]else if(strcmp(x_job,"ownablecar",true) == 0) { if(OwnableCarOffer[playerid] < 999) { if(OwnableCarID[playerid] == 0) { return 1; } if(OwnableCarPrice[playerid] == 0 || OwnableCarPrice[playerid] > 1500001) { return 1; } if(OwnableCarID[playerid] == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]) { } else if(OwnableCarID[playerid] == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]) { } else if(OwnableCarID[playerid] == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]) { } else { SendClientMessage(playerid, COLOR_GREY, " Offer is no longer available"); return 1; } if(GetPlayerCash(playerid) >= OwnableCarPrice[playerid]) { if(IsPlayerConnected(OwnableCarOffer[playerid])) { GetPlayerName(OwnableCarOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pPcarkey] == 999) { if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey] = 999; } else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2] = 999; } else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3] = 999; } else { SendClientMessage(playerid, COLOR_GREY, " Vehicle seller needs to be at his car !"); return 1; } format(string, sizeof(string), "* You bought a car for $%d from %s.",OwnableCarPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* %s has bought your car for $%d.",sendername,OwnableCarPrice[playerid]); SendClientMessage(OwnableCarOffer[playerid], COLOR_WHITE, string); RemovePlayerFromVehicle(OwnableCarOffer[playerid]); GivePlayerCash(playerid, - OwnableCarPrice[playerid]); GivePlayerCash(OwnableCarOffer[playerid], OwnableCarPrice[playerid]); strmid(CarInfo[OwnableCarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999); } else if(PlayerInfo[playerid][pPcarkey2] == 999) { if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]) { PlayerInfo[playerid][pPcarkey2] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey] = 999; } else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]) { PlayerInfo[playerid][pPcarkey2] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2] = 999; } else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]) { PlayerInfo[playerid][pPcarkey2] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3] = 999; } else { SendClientMessage(playerid, COLOR_GREY, " Vehicle seller needs to be at his car !"); return 1; } format(string, sizeof(string), "* You bought a car for $%d from %s.",OwnableCarPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* %s has bought your car for $%d.",sendername,OwnableCarPrice[playerid]); SendClientMessage(OwnableCarOffer[playerid], COLOR_WHITE, string); RemovePlayerFromVehicle(OwnableCarOffer[playerid]); GivePlayerCash(playerid, - OwnableCarPrice[playerid]); GivePlayerCash(OwnableCarOffer[playerid], OwnableCarPrice[playerid]); strmid(CarInfo[OwnableCarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999); } else if(PlayerInfo[playerid][pPcarkey3] == 999) { if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]) { PlayerInfo[playerid][pPcarkey3] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey] = 999; } else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]) { PlayerInfo[playerid][pPcarkey3] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2] = 999; } else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]) { PlayerInfo[playerid][pPcarkey3] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]; PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3] = 999; } else { SendClientMessage(playerid, COLOR_GREY, " Vehicle seller needs to be at his car !"); return 1; } format(string, sizeof(string), "* You bought a car for $%d from %s.",OwnableCarPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* %s has bought your car for $%d.",sendername,OwnableCarPrice[playerid]); SendClientMessage(OwnableCarOffer[playerid], COLOR_WHITE, string); RemovePlayerFromVehicle(OwnableCarOffer[playerid]); GivePlayerCash(playerid, - OwnableCarPrice[playerid]); GivePlayerCash(OwnableCarOffer[playerid], OwnableCarPrice[playerid]); strmid(CarInfo[OwnableCarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999); } else { SendClientMessage(playerid, COLOR_GREY, " You already have 3 cars ! "); return 1; } DateProp(playerid); DateProp(OwnableCarOffer[playerid]); OnPropUpdate(); OnPlayerUpdateEx(playerid); OnPlayerUpdateEx(OwnableCarOffer[playerid]); OwnableCarOffer[playerid] = 999; OwnableCarID[playerid] = 0; OwnableCarPrice[playerid] = 0; GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /vehiclehelp to view the vehicle manual!"); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Car seller is Offline !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any Ownable Car !"); return 1; } }[/pawn] am inteles ca aici se ia masinile sa fie in gm [pawn] public LoadCar() { new arrCoords[13][64]; new strFromFile2[256]; new File: file = fopen("cars.cfg", io_read); if (file) { new idx = 184; while (idx < sizeof(CarInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); CarInfo[idx][cModel] = strval(arrCoords[0]); CarInfo[idx][cLocationx] = floatstr(arrCoords[1]); CarInfo[idx][cLocationy] = floatstr(arrCoords[2]); CarInfo[idx][cLocationz] = floatstr(arrCoords[3]); CarInfo[idx][cAngle] = floatstr(arrCoords[4]); CarInfo[idx][cColorOne] = strval(arrCoords[5]); CarInfo[idx][cColorTwo] = strval(arrCoords[6]); strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255); strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255); CarInfo[idx][cValue] = strval(arrCoords[9]); strmid(CarInfo[idx][cLicense], arrCoords[10], 0, strlen(arrCoords[10]), 256); //strmid(CarInfo[idx][cLicense], arrCoords[10], 0, strlen(arrCoords[10]), 255); CarInfo[idx][cOwned] = strval(arrCoords[11]); CarInfo[idx][cLock] = strval(arrCoords[12]); printf("CarInfo: %d Owner:%s LicensePlate %s",idx,CarInfo[idx][cOwner],CarInfo[idx][cLicense]); idx++; } } return 1; } public SaveCarCoords() { new idx = 184; new File: file2; while (idx < sizeof(CarInfo)) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%s\n", CarInfo[idx][cModel], CarInfo[idx][cLocationx], CarInfo[idx][cLocationy], CarInfo[idx][cLocationz], CarInfo[idx][cAngle], CarInfo[idx][cColorOne], CarInfo[idx][cColorTwo], CarInfo[idx][cLicense]); if(idx == 0) { file2 = fopen("cars.cfg", io_write); } else { file2 = fopen("cars.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; } [/pawn] si in loc de cars.cfg pun heli.cfg dar cum fac salvare comenzi etc cum fac comenzile alea pt heli.cfg pls ajutor ( si comanda /v doar la cars.cfg iar /v2 doar la heli.cfg deci vreau cine are rabdare sami explice frumos vreau sa fac si pentru barci acelasi lucru dar daca imi explicati aici voi intelege si acolo ... va rog ajutatima (
  8. multumesc,merge mia laut ceva timp pana lam pus direct gm ) ) )
  9. am pus un sistem de /bandana dar lam bagat direct gm .. D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(167) : warning 201: redefinition of constant/macro (symbol "SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9,%10)") D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(15664) : error 017: undefined symbol "SetPlayerHoldingObject" D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(15671) : error 017: undefined symbol "SetPlayerHoldingObject" D:\Diverse\Gamemode sa-mp\samp03dsvr_R2_win32\gamemodes\roleplay.pwn(15670) : warning 204: symbol is assigned a value that is never used: "glasseid" sistem : http://pastebin.com/index/Egu9jNJa EDIT: am rezolvat mai aveam niste define inca odata pentru /ochelari )
  10. pai posteaza warning ca sa te ajute cineva
  11. pai asa e la obiecte ... nu se vad de la departare mare de la apropiere iar la CreateDynamicObject iti treabuie streamer vezi sa pui si sus #include <streamer>
  12. poate e de la host .... sau ai anumite sistemu/fs/mape care creaza lag de unde il ai hostul?
  13. Pai nu are nimic si la mine se pot crea conturi cu aceleasi litere dar de exemplu Papana papana ce are ?....
  14. nu cer fs... si nu gasesc :| cine stie sau sa-mi zica unde gasesc
  15. vreau si io anticheat peste samp 0.3d dar nu junk buster pentru ca e prea [censured by the system] are multe buguri din cate am observat ... io vreau anti cheat doar de bani...
  16. comanda nu merge ... da si mie streamer.dll io am doar .so si nu gasesc de unde sa-l iau
  17. deci am comanda if(strcmp(cmd, "/exemplu",true) == 0) { if(IsPlayerConnected(playerid)) { PlayerInfo[playerid][pAdmin] = 8; } } nu merge,nu da admin si am 2 fs cu obiecte le am in server.cfg dar nu merg si am streamer dar am streamer.so si io am windows .... o fi deasta ? mai am un streamer dar sa numeste xstreamer
  18. deci cand scriu orice comanga imi zice "Nu esti la vama " de la ce e ? ma gandesc ca poate am o comanda de 2 ori ,,, EDIT: am rezolvat
  19. inearca asa ..... ar trebui sa mearga else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit"))) { if(PlayerInfo[playerid][pRank] < 4) { SCM(playerid, COLOR_GREY, " You need Rank 4 to Give Contracts to Hitmans !"); return 0; } if(hitfound == 0) { SCM(playerid, COLOR_GREY, " There is no Hit Founded yet, use Contracts in the Portable first !"); return 0; } tmp = strtok(text, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]"); return 0; } //giveplayerid = strval(tmp); giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] != 8 || PlayerInfo[giveplayerid][pLeader] != 8) { SCM(playerid, COLOR_GREY, " That player is not a Hitman !"); return 0; } if(GoChase[giveplayerid] < 999) { SCM(playerid, COLOR_GREY, " That Hitman is already busy with a Contract !"); return 0; }
  20. scuze am uitat sa pun linile :grin: uitete tot sistemu [pawn]#include <a_samp> #include <core> #include <float> new glob0[500]; new Text:glob7D0[500]; new globFA0[500]; new glob1770[212][1] = { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Pereniel", "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", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "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", "PD Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring", "Hotring", "Bloodring", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropdust", "Stunt", "Tanker", "RoadTrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement", "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", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower", "Duneride", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "Newsvan", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Trailer", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car", "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer", "Luggage Trailer", "Stair Trailer", "Boxville", "Farm Plow", "Utility Trailer" }; public OnFilterScriptExit() { for(new var0 = 0; var0 < 500; var0++) { TextDrawHideForPlayer(var0, globFA0[var0]); TextDrawDestroy(glob0[var0]); TextDrawDestroy(glob7D0[var0]); } return 1; } public OnGameModeInit() { SetTimer("VehStateCheck", 300, true); for(new var0 = 0; var0 < 500; var0++) { globFA0[var0] = TextDrawCreate(502.0, 124.0, "-"); TextDrawFont(globFA0[var0], 1); TextDrawBackgroundColor(globFA0[var0], 0x000000FF); TextDrawLetterSize(globFA0[var0], 0.3899, 0.7999); TextDrawColor(globFA0[var0], 0xFFFFFFFF); TextDrawSetOutline(globFA0[var0], 1); TextDrawSetProportional(globFA0[var0], true); TextDrawSetShadow(globFA0[var0], 0); } for(new var0 = 0; var0 < 500; var0++) { glob0[var0] = TextDrawCreate(502.0, 136.0, "100"); TextDrawBackgroundColor(glob0[var0], 0x000000FF); TextDrawFont(glob0[var0], 1); TextDrawLetterSize(glob0[var0], 0.3899, 0.7999); TextDrawColor(glob0[var0], 0xFFFFFFFF); TextDrawSetOutline(glob0[var0], 1); TextDrawSetProportional(glob0[var0], true); TextDrawSetShadow(glob0[var0], 0); glob7D0[var0] = TextDrawCreate(502.0, 148.0, "100"); TextDrawBackgroundColor(glob7D0[var0], 0x000000FF); TextDrawFont(glob7D0[var0], 1); TextDrawLetterSize(glob7D0[var0], 0.3899, 0.7999); TextDrawColor(glob7D0[var0], 0xFF0000FF); TextDrawSetOutline(glob7D0[var0], 1); TextDrawSetProportional(glob7D0[var0], true); TextDrawSetShadow(glob7D0[var0], 0); } return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3782, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3782, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3782, 1343.1572, 15.3746); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid, glob0[playerid]); TextDrawHideForPlayer(playerid, glob7D0[playerid]); TextDrawHideForPlayer(playerid, globFA0[playerid]); return 1; } public OnPlayerDeath(playerid, killerid, reason) { TextDrawHideForPlayer(playerid, glob0[playerid]); TextDrawHideForPlayer(playerid, glob7D0[playerid]); TextDrawHideForPlayer(playerid, globFA0[playerid]); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == 1) { TextDrawHideForPlayer(playerid, glob0[playerid]); TextDrawHideForPlayer(playerid, glob7D0[playerid]); TextDrawHideForPlayer(playerid, globFA0[playerid]); } if(newstate == 3) { TextDrawShowForPlayer(playerid, glob0[playerid]); TextDrawShowForPlayer(playerid, glob7D0[playerid]); TextDrawShowForPlayer(playerid, globFA0[playerid]); } if(newstate == 7) { TextDrawShowForPlayer(playerid, glob0[playerid]); TextDrawShowForPlayer(playerid, glob7D0[playerid]); TextDrawShowForPlayer(playerid, globFA0[playerid]); } if(newstate == 2) { TextDrawShowForPlayer(playerid, glob0[playerid]); TextDrawShowForPlayer(playerid, glob7D0[playerid]); TextDrawShowForPlayer(playerid, globFA0[playerid]); } return 1; } public OnPlayerUpdate(playerid) { if(IsPlayerInAnyVehicle(playerid)) { new var0 = 0; new var1 = 0; new var2[150]; var1 = GetPlayerVehicleID(playerid); GetVehicleHealth(var1, var0); format(var2, 150, "Viata: %d %", floatround(((var0 - 250) * 100) / 750, 0)); TextDrawSetString(glob0[playerid], var2); format(var2, 150, "Viteza: %d km/h", function1544(var1)); TextDrawSetString(glob7D0[playerid], var2); } return 1; } public VehStateCheck() { for(new var0 = 0; var0 < 500; var0++) { if(IsPlayerInAnyVehicle(var0) && IsPlayerConnected(var0)) { new var1[256]; new var2 = GetPlayerVehicleID(var0); format(var1, 128, "Masina: %s", glob1770[GetVehicleModel(var2) - 400][0]); TextDrawSetString(globFA0[var0], var1); } } return 1; } Float:function1544(arg0) { new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0; GetVehicleVelocity(arg0, var0, var1, var2); return floatround(floatsqroot(floatpower(var0, 2.0) + floatpower(var1, 2.0) + floatpower(var2, 2.0)) * 200, 0); } [/pawn]
  21. am niste warnuri si erori la un spedometer dar nu stiu de la ce sunt speedometer.pwn(367) : warning 208: function with tag result used before definition, forcing reparse speedometer.pwn(12) : error 018: initialization data exceeds declared size speedometer.pwn(233) : warning 213: tag mismatch speedometer.pwn(234) : warning 213: tag mismatch speedometer.pwn(246) : warning 213: tag mismatch speedometer.pwn(247) : warning 213: tag mismatch speedometer.pwn(248) : warning 213: tag mismatch speedometer.pwn(249) : warning 213: tag mismatch speedometer.pwn(250) : warning 213: tag mismatch speedometer.pwn(251) : warning 213: tag mismatch speedometer.pwn(252) : warning 213: tag mismatch speedometer.pwn(253) : warning 213: tag mismatch speedometer.pwn(257) : warning 213: tag mismatch speedometer.pwn(258) : warning 213: tag mismatch speedometer.pwn(259) : warning 213: tag mismatch speedometer.pwn(260) : warning 213: tag mismatch speedometer.pwn(261) : warning 213: tag mismatch speedometer.pwn(262) : warning 213: tag mismatch speedometer.pwn(263) : warning 213: tag mismatch speedometer.pwn(264) : warning 213: tag mismatch speedometer.pwn(292) : warning 213: tag mismatch speedometer.pwn(294) : warning 213: tag mismatch speedometer.pwn(300) : warning 213: tag mismatch speedometer.pwn(302) : warning 213: tag mismatch speedometer.pwn(310) : warning 213: tag mismatch speedometer.pwn(312) : warning 213: tag mismatch speedometer.pwn(316) : warning 213: tag mismatch speedometer.pwn(318) : warning 213: tag mismatch speedometer.pwn(322) : warning 213: tag mismatch speedometer.pwn(324) : warning 213: tag mismatch speedometer.pwn(328) : warning 213: tag mismatch speedometer.pwn(330) : warning 213: tag mismatch speedometer.pwn(343) : warning 213: tag mismatch speedometer.pwn(344) : warning 213: tag mismatch speedometer.pwn(345) : warning 213: tag mismatch speedometer.pwn(352) : warning 235: public function lacks forward declaration (symbol "VehStateCheck") speedometer.pwn(361) : warning 213: tag mismatch Dspeedometer.pwn(371) : warning 213: tag mismatch speedometer.pwn(371) : warning 213: tag mismatch
  22. asta e linia format(str,512,"\t"COLOR_RED"Factiunile serverului\n");
  23. am facut unu asa simplu ... if(strcmp("/factions", cmdtext,true, 10) ==0) { ShowPlayerDialog(playerid,DIALOG_FACTIONS,DIALOG_STYLE_MSGBOX,"Factiunile serverului","1.Police Departament.\n 2.Federal Bureau of Investigations \n 3.National Guard \n 4.Firemen/Medics \n 5.Yakuza Family \n 6.Triads Family \n 7.Mayor \n 8.The Hitman Agency \n 9. News Reporters \n 10.Taxi Drivers \n 11.Instructors \n 12. Barzini Family \n 13.Leone family \n 14.Diablos family \n 15.Stracci Family \n 16.Tow Car Company \n 17.People Racing \n 18.The Stunters Gang \n 19.Grove Street","OK","BACK"); return 1; } sa vad acum daca merge :-? nu a det erori nimik ...
  24. mie tot imi da erorile astea :@:@ D:\Diverse\Gamemode sa-mp\Server RolePlay by Papana\gamemodes\roleplay.pwn(38934) : error 001: expected token: "-string end-", but found "-identifier-" D:\Diverse\Gamemode sa-mp\Server RolePlay by Papana\gamemodes\roleplay.pwn(38934) : warning 215: expression has no effect D:\Diverse\Gamemode sa-mp\Server RolePlay by Papana\gamemodes\roleplay.pwn(38934) : error 001: expected token: ";", but found "-string-" D:\Diverse\Gamemode sa-mp\Server RolePlay by Papana\gamemodes\roleplay.pwn(38934) : warning 215: expression has no effect D:\Diverse\Gamemode sa-mp\Server RolePlay by Papana\gamemodes\roleplay.pwn(38934) : error 001: expected token: ";", but found ")" D:\Diverse\Gamemode sa-mp\Server RolePlay by Papana\gamemodes\roleplay.pwn(38934) : fatal error 107: too many error messages on one line ete comanda: if(strcmp(cmd, "/factions", true) == 0) { if(IsPlayerConnected(playerid)) { new str[512]; format(str,512,"\t"COLOR_RED"Factiunile serverului\n"); format(str,512,"%s"white"Police Deparment\n",str); format(str,512,"%s"white"F.B.I.\n",str); format(str,512,"%s"white"SMURD\n",str); format(str,512,"%s"white"Cuneo Family\n",str); format(str,512,"%s"white"Faciune\n",str); format(str,512,"%s"white"Faciune\n",str); format(str,512,"%s"white"Faciune\n",str); format(str,512,"%s"white"Faciune\n",str); ShowPlayerDialog( playerid, 1234, DIALOG_STYLE_MSGBOX, " ", str, "Ok", "Iesi" ); } return 1; } si cum adica sa ma duc la MSGBOX ??? io am pus comanda la public onplayercommand
×
×
  • 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.