Jump to content

gabbii

Membru
  • Posts

    150
  • Joined

  • Last visited

    Never

Everything posted by gabbii

  1. 1: Nu se cer scripturi, fs, Gm, .... 2: Io cred ca tu vrei sa tise dea totul pe tava! 3: tia aratat -IcE- tot ce trebuie fal si dupaia posteaza eventualele erori!
  2. Nu imi incarca masinile:|, ce pot face ca sa le incarce?
  3. 1: Dc ai facut dublu topic? 2: nu puteai sa dai replay in celalant topic? 3: mai cauta prin gm "NameTimer", mai este definita undeva sub alta forma!
  4. Cum vrei sa fi ajutat daca nu arati linile?
  5. Am luat acest fs cu radio dp http://forum.sa-mp.com/showthread.php?t=279953 am bagat posturile de radio pe care le vreau dar imi da eroare, ce pot face? uitati eroare C:\Users\Asus\Desktop\FSOnline_Radio_In_Vehicles\0.3d Streaming\radio_eng.pwn(112) : error 032: array index out of bounds (variable "StationText") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. uitati tot scriptul.. [pawn]#include <a_samp> #undef MAX_PLAYERS #define MAX_PLAYERS 25 forward PlayVehicleRadioForPlayer(playerid,online); forward NonChangeRadio(playerid); forward IsAVel(vehicleid); forward HideStationTitle(playerid,numberid); new VehRadio[MAX_VEHICLES]; new PassengerInCar[MAX_VEHICLES][8]; new bool:WaitForBuf[MAX_PLAYERS]; new PassengerSeat[MAX_PLAYERS]; new OldCar[MAX_PLAYERS]; enum params { Float:X,Float:Y,Title[64],URL[64] }; new RadioParams[7][params] = { {205.0,20.0,"Kiss FM: Asculti doar hituri!","http://ro-life.tk/music/radio/kissfm.m3u"}, // 1 {200.0,20.0,"Radio21 FM: Hit dupa Hit","http://ro-life.tk/music/radio/Radio21.m3u"}, //2 {220.0,20.0,"Europa FM: Cea mai buna muzica din 8 pana azi!","http://ro-life.tk/music/radio/europafm.m3u"}, //3 {260.0,20.0,"Pro FM: Lega lize JOY","http://ro-life.tk/music/radio/profm.m3u"}, //4 {205.0,20.0,"RadioZu FM: Hiturile se asculta la Zu","http://ro-life.tk/music/radio/radiozu.m3u"}, //5 {235.0,20.0,"Vibe FM: DanceFloor radio","http://ro-life.tk/music/radio/vibefm.pls"}, // 6 {270.0,20.0,"Radio Off","none"} //7 }; new Text:StationText[7]; public OnFilterScriptInit() { print("----------------------------------"); print("FS Online Radio In Vehicles Loaded"); print("Author: SDraw"); print("----------------------------------"); for(new i = 0; i < MAX_VEHICLES; i++) { VehRadio = 2; for(new s = 1; s < 8; s++) PassengerInCar = INVALID_PLAYER_ID; } for(new t = 0; t < sizeof(StationText); t++) { StationText[t] = TextDrawCreate(RadioParams[t][X],RadioParams[t][Y],RadioParams[t][Title]); TextDrawAlignment(StationText[t],0); TextDrawBackgroundColor(StationText[t],0x000000ff); TextDrawFont(StationText[t],2); TextDrawLetterSize(StationText[t],0.4,1.6); TextDrawColor(StationText[t],0x906010ff); TextDrawSetOutline(StationText[t],1); TextDrawSetProportional(StationText[t],2); TextDrawSetShadow(StationText[t],1); } return 1; } public OnFilterScriptExit() { for(new t = 0; t < sizeof(StationText); t++) TextDrawDestroy(StationText[t]); return 1; } public OnPlayerConnect(playerid) { WaitForBuf[playerid] = false; OldCar[playerid] = INVALID_VEHICLE_ID; PassengerSeat[playerid] = 0; return 0; } public OnPlayerDisconnect(playerid) { if(OldCar[playerid] != INVALID_VEHICLE_ID) PassengerInCar[OldCar[playerid]][PassengerSeat[playerid]] = INVALID_PLAYER_ID; return 0; } public OnPlayerStateChange(playerid,newstate,oldstate) { if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) { new veh = GetPlayerVehicleID(playerid); if(IsAVel(veh)) return 0; new seat = GetPlayerVehicleSeat(playerid); if(seat != 0) { PassengerInCar[veh][seat] = playerid; PassengerSeat[playerid] = seat; OldCar[playerid] = veh; } PlayVehicleRadioForPlayer(playerid,VehRadio[veh]); } if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) { new veh = GetPlayerVehicleID(playerid); if(IsAVel(veh)) return 0; StopAudioStreamForPlayer(playerid); if(OldCar[playerid] != INVALID_VEHICLE_ID) { PassengerInCar[OldCar[playerid]][PassengerSeat[playerid]] = INVALID_PLAYER_ID; OldCar[playerid] = INVALID_VEHICLE_ID; } } return 0; } public PlayVehicleRadioForPlayer(playerid,online) { if(online == 0) { StopAudioStreamForPlayer(playerid); TextDrawShowForPlayer(playerid,StationText[7]); WaitForBuf[playerid] = true; SetTimerEx("NonChangeRadio",5000,false,"i",playerid); SetTimerEx("HideStationTitle",3500,false,"id",playerid,16); return 1; } StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,RadioParams[online - 1]); TextDrawShowForPlayer(playerid,StationText[online - 1]); WaitForBuf[playerid] = true; SetTimerEx("NonChangeRadio",5000,false,"i",playerid); SetTimerEx("HideStationTitle",3500,false,"id",playerid,online - 1); return 1; } public OnPlayerKeyStateChange(playerid,newkeys,oldkeys) { if(newkeys == KEY_ACTION) { if(!IsPlayerInAnyVehicle(playerid)) return 0; if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0; new veh = GetPlayerVehicleID(playerid); if(IsAVel(veh)) return 0; if(WaitForBuf[playerid]) return SendClientMessage(playerid,0xFF0000FF,"* You can't change radio. Wait for 5 seconds."); VehRadio[veh]++; if(VehRadio[veh] == 7) VehRadio[veh] = 0; PlayVehicleRadioForPlayer(playerid,VehRadio[veh]); for(new s = 1; s < 8; s++) { if(PassengerInCar[veh] != INVALID_PLAYER_ID) PlayVehicleRadioForPlayer(PassengerInCar[veh],VehRadio[veh]); } } if(newkeys == 132) { if(!IsPlayerInAnyVehicle(playerid)) return 0; if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0; new veh = GetPlayerVehicleID(playerid); if(IsAVel(veh)) return 0; if(WaitForBuf[playerid]) return SendClientMessage(playerid,0xFF0000FF,"* You can't change radio. Wait for 5 seconds."); VehRadio[veh]--; if(VehRadio[veh] == -1) VehRadio[veh] = 16; PlayVehicleRadioForPlayer(playerid,VehRadio[veh]); for(new s = 1; s < 8; s++) { if(PassengerInCar[veh] != INVALID_PLAYER_ID) PlayVehicleRadioForPlayer(PassengerInCar[veh],VehRadio[veh]); } } return 0; } public NonChangeRadio(playerid) return WaitForBuf[playerid] = false; public HideStationTitle(playerid,numberid) return TextDrawHideForPlayer(playerid,StationText[numberid]); public IsAVel(vehicleid) { new model = GetVehicleModel(vehicleid); if(model == 481 || model == 509 || model == 510) return 1; return 0; }[/pawn] uitati si linia 112 [pawn]TextDrawShowForPlayer(playerid,StationText[7]);[/pawn]
  6. mai ai definita undeva NameTimer! sterge una din ele...
  7. serverul il ti pe pc-ul tau?
  8. tu vrei aia cu player online sau aia cu bun venit?? daca nu explica exact ce vrei de acolo!
  9. gabbii

    Car own

    incearca asta .... [pawn] public OnPlayerStateChange(playerid, newstate, oldstate) { if(GetPlayerVehicleID(playerid) == mura) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(strcmp(sendername,"mura",true)) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); TogglePlayerControllable(playa, 1); SendClientMessage(playerid,0xFF0000FF,"Nu esti proprietar!"); RemovePlayerFromVehicle(playerid); } } [/pawn]
  10. poate ai gresti altundeva si iti da warning la masini mai uitate odata peste factiunea ce noua...
  11. ai pus asa la inceputul ? [pawn] new STR1; new STR2; new STR3; new STR4; new STR5; new STR6; new STR7; new STR8; new STR9;[/pawn]
  12. foloseste toate coordonatele exemplu: [pawn]police1 = AddStaticVehicleEx(599, 616.1244, -601.7048, 17.4214, 271.5325, -1, -1, 30000);[/pawn]
  13. Aratane linile.... daca vrei ajutor!
  14. Cum pot face cand un player are mai putin de 30 viata sa execute un anim si dupa cateva secunde sa moara? Nu vreau totul mura in gura, vreau sa stiu de unde incep...
  15. gabbii

    problema...

    merci mult ![]stuntman[]!
  16. de la ce poate fi eroarea asta? C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(3796) : error 075: input line too long (after substitutions) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. [pawn]public IsACopCar(carid) { if((carid == police1) || (carid == police2) || (carid == police3) || (carid == police4) || (carid == police5) || (carid == police6) || (carid == police7) || (carid == police8) || (carid == police9) || (carid == police10) || (carid == police11) || (carid == police12) || (carid == police13) || (carid == police14) || (carid == police15) || (carid == police16) || (carid == police17) || (carid == police18) || (carid == police19) || (carid == police20) || (carid == police21) || (carid == police22) || (carid == police23)) { return 1; } return 0; }[/pawn]
  17. Cum pot face de exemplu la corleone daca nu esti membru sa te dea afara din masina?
  18. gabbii

    Cerere

    Nu ai facut cererea unde trebuie uite linku cu sectiunea tutoriale http://www.sa-mp.ro/forum/index.php/board,24.0.html
  19. pentru ca sa adaugi mai multe masini personale pe un cont nu conteaza doar comanda "buy"! trebuie sa umbli la tot sistemul de masini personale... P.S. Nu te as sfatui sa te bagi pt ca ai sansa sa il buguiesti pe tot...
  20. gata am rezolvat da acum nu mai pot intra in masini:| parca ar fi incuiate:(((((( merge sa intru in masini doar daca sunt pe /aod
  21. daca il sterg imi da erorile astea... [pawn]C:\Users\Asus\Desktop\New folder\samp03dsvr_win32\gamemodes\czgammer.pwn(4187) : error 017: undefined symbol "CarInfo" C:\Users\Asus\Desktop\New folder\samp03dsvr_win32\gamemodes\czgammer.pwn(4187) : error 036: empty statement C:\Users\Asus\Desktop\New folder\samp03dsvr_win32\gamemodes\czgammer.pwn(4187) : error 017: undefined symbol "h" C:\Users\Asus\Desktop\New folder\samp03dsvr_win32\gamemodes\czgammer.pwn(4187) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn]
  22. pai e asta [pawn]new CarInfo[237];[/pawn] il sterg?
  23. am rezolvat problema nu scosesem sitemu totoal... dar acm imi da un warning [pawn]C:\Users\Asus\Desktop\New folder\samp03dsvr_win32\gamemodes\czgammer.pwn(52333) : warning 203: symbol is never used: "CarInfo" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 10732 bytes Code size: 1879856 bytes Data size: 6496660 bytes Stack/heap size: 16384 bytes; estimated max. usage=5184 cells (20736 bytes) Total requirements: 8403632 bytes 1 Warning.[/pawn] line 52333 : [pawn]}[/pawn] e ultima linie din gm..
×
×
  • 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.