Sari la conținut

Stefano

Membru
  • Număr conținut

    68
  • Înregistrat

  • Ultima Vizită

Reputație Comunitate

1 Neutru

Despre Stefano

  • Rang
    Membru junior

Profile Information

  • Sex
    Masculin
  • Location
    Las Vegas
  • Name in game
    Stefano

Contact Methods

Vizitatori Recenți Profil

Blocul vizitatori recenți este dezactivat și nu este arătat altor utilizatori.

  1. Stefano

    bug la textdraw gm burned

    ma ajuta cineva?
  2. Stefano

    bug la textdraw gm burned

    YCMD:buycar(playerid, params[], help) { if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_GREY, "Nu ai nivel 3!"); if(!PlayerToPoint(3.0,playerid,326.9715,-1514.7264,36.0325)) return SCM(playerid, COLOR_GREY, "Nu esti la dealership."); if(TestingModel[playerid] == 1) return 1; if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti folosi aceasta comanda!"); new x=0, dbID[180], szQuery[256]; format(szQuery, sizeof(szQuery), "SELECT * FROM `dsveh`"); new Cache: result = mysql_query(SQL, szQuery); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "ID", dbID); x++; SelectedCar[playerid][x] = strval(dbID); LastDealerCar[playerid] = strval(dbID); } cache_delete(result); TestingModel[playerid] = 0; TotalDealerCars[playerid] = x; DealerCarType[playerid] = 1; InDealer[playerid] = 1; TogglePlayerControllable(playerid, 0); SetPlayerVirtualWorld(playerid, playerid+1); SetPlayerInterior(playerid, 0); SetPlayerPosEx(playerid, -2329.9380, 185.0620, 37.8267); DealerID[playerid] = 1; DealerCarColor1[playerid] = 1; DealerCarColor2[playerid] = 1; DealerCarAngle[playerid] = -61.3200; DealerCar[playerid] = CreateVehicleEx(DSModels[DealerID[playerid]][dModel],-2472.2488, 2235.5156, 4.6536,DealerCarAngle[playerid],DealerCarColor1[playerid],DealerCarColor2[playerid],-1); SetVehicleVirtualWorld(DealerCar[playerid],playerid+1); LinkVehicleToInterior(DealerCar[playerid], 0); PutPlayerInVehicleEx(playerid, DealerCar[playerid], 0); new string[128]; format(string, sizeof(string), "Color 1: %d~n~Color 2: %d", DealerCarColor1[playerid], DealerCarColor2[playerid]); PlayerTextDrawSetString(playerid, DSTds[4], string); PlayerTextDrawShow(playerid, DSTds[4]); PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]); PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]); PlayerTextDrawSetPreviewVehCol(playerid, DSTds[2], DealerCarColor1[playerid], DealerCarColor2[playerid]); PlayerTextDrawShow(playerid, DSTds[2]); ShowDealershipTextdraws(playerid); SelectTextDraw(playerid, 0x2EA1FFFF); ShowCamera(playerid); return 1; }YCMD:buycar(playerid, params[], help) { if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_GREY, "Nu ai nivel 3!"); if(!PlayerToPoint(3.0,playerid,326.9715,-1514.7264,36.0325)) return SCM(playerid, COLOR_GREY, "Nu esti la dealership."); if(TestingModel[playerid] == 1) return 1; if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti folosi aceasta comanda!"); new x=0, dbID[180], szQuery[256]; format(szQuery, sizeof(szQuery), "SELECT * FROM `dsveh`"); new Cache: result = mysql_query(SQL, szQuery); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "ID", dbID); x++; SelectedCar[playerid][x] = strval(dbID); LastDealerCar[playerid] = strval(dbID); } cache_delete(result); TestingModel[playerid] = 0; TotalDealerCars[playerid] = x; DealerCarType[playerid] = 1; InDealer[playerid] = 1; TogglePlayerControllable(playerid, 0); SetPlayerVirtualWorld(playerid, playerid+1); SetPlayerInterior(playerid, 0); SetPlayerPosEx(playerid, -2329.9380, 185.0620, 37.8267); DealerID[playerid] = 1; DealerCarColor1[playerid] = 1; DealerCarColor2[playerid] = 1; DealerCarAngle[playerid] = -61.3200; DealerCar[playerid] = CreateVehicleEx(DSModels[DealerID[playerid]][dModel],-2472.2488, 2235.5156, 4.6536,DealerCarAngle[playerid],DealerCarColor1[playerid],DealerCarColor2[playerid],-1); SetVehicleVirtualWorld(DealerCar[playerid],playerid+1); LinkVehicleToInterior(DealerCar[playerid], 0); PutPlayerInVehicleEx(playerid, DealerCar[playerid], 0); new string[128]; format(string, sizeof(string), "Color 1: %d~n~Color 2: %d", DealerCarColor1[playerid], DealerCarColor2[playerid]); PlayerTextDrawSetString(playerid, DSTds[4], string); PlayerTextDrawShow(playerid, DSTds[4]); PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]); PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]); PlayerTextDrawSetPreviewVehCol(playerid, DSTds[2], DealerCarColor1[playerid], DealerCarColor2[playerid]); PlayerTextDrawShow(playerid, DSTds[2]); ShowDealershipTextdraws(playerid); SelectTextDraw(playerid, 0x2EA1FFFF); ShowCamera(playerid); return 1; } YCMD:buycar(playerid, params[], help) { if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_GREY, "Nu ai nivel 3!"); if(!PlayerToPoint(3.0,playerid,326.9715,-1514.7264,36.0325)) return SCM(playerid, COLOR_GREY, "Nu esti la dealership."); if(TestingModel[playerid] == 1) return 1; if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti folosi aceasta comanda!"); new x=0, dbID[180], szQuery[256]; format(szQuery, sizeof(szQuery), "SELECT * FROM `dsveh`"); new Cache: result = mysql_query(SQL, szQuery); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "ID", dbID); x++; SelectedCar[playerid][x] = strval(dbID); LastDealerCar[playerid] = strval(dbID); } cache_delete(result); TestingModel[playerid] = 0; TotalDealerCars[playerid] = x; DealerCarType[playerid] = 1; InDealer[playerid] = 1; TogglePlayerControllable(playerid, 0); SetPlayerVirtualWorld(playerid, playerid+1); SetPlayerInterior(playerid, 0); SetPlayerPosEx(playerid, -2329.9380, 185.0620, 37.8267); DealerID[playerid] = 1; DealerCarColor1[playerid] = 1; DealerCarColor2[playerid] = 1; DealerCarAngle[playerid] = -61.3200; DealerCar[playerid] = CreateVehicleEx(DSModels[DealerID[playerid]][dModel],-2472.2488, 2235.5156, 4.6536,DealerCarAngle[playerid],DealerCarColor1[playerid],DealerCarColor2[playerid],-1); SetVehicleVirtualWorld(DealerCar[playerid],playerid+1); LinkVehicleToInterior(DealerCar[playerid], 0); PutPlayerInVehicleEx(playerid, DealerCar[playerid], 0); new string[128]; format(string, sizeof(string), "Color 1: %d~n~Color 2: %d", DealerCarColor1[playerid], DealerCarColor2[playerid]); PlayerTextDrawSetString(playerid, DSTds[4], string); PlayerTextDrawShow(playerid, DSTds[4]); PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]); PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]); PlayerTextDrawSetPreviewVehCol(playerid, DSTds[2], DealerCarColor1[playerid], DealerCarColor2[playerid]); PlayerTextDrawShow(playerid, DSTds[2]); ShowDealershipTextdraws(playerid); SelectTextDraw(playerid, 0x2EA1FFFF); ShowCamera(playerid); return 1; }
  3. Stefano

    problema unknow

    am rezolvat, limita de case uitasem de ea.
  4. Stefano

    bug la textdraw gm burned

    https://imgur.com/a/lTjOPgL Nu stiu ce se intampla, nu am modificat vreoun td sau comenzile sau ceva de genu, lucrez pe gm burned, Problema a fost gasita la ruleta si ds
  5. Stefano

    Problema crash

    dau update la plugin si includeu streamer
  6. Stefano

    problema unknow

    SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [21:00:11] filterscripts = "" (string) [21:00:11] [21:00:11] Server Plugins [21:00:11] -------------- [21:00:11] Loading plugin: crashdetect.so [21:00:11] CrashDetect v4.15.1 is OK. [21:00:11] Loaded. [21:00:11] Loading plugin: streamer.so [21:00:11] *** Streamer Plugin v2.9.0 by Incognito loaded *** [21:00:11] Loaded. [21:00:11] Loading plugin: sscanf.so [21:00:11] [21:00:11] =============================== [21:00:11] sscanf plugin loaded. [21:00:11] Version: 2.8.1 [21:00:11] (c) 2012 Alex "Y_Less" Cole [21:00:11] =============================== [21:00:11] Loaded. [21:00:11] Loading plugin: mysql.so [21:00:11] >> plugin.mysql: R34 successfully loaded. [21:00:11] Loaded. [21:00:11] Loading plugin: Whirlpool.so [21:00:11] [21:00:11] ================== [21:00:11] [21:00:11] Whirlpool loaded [21:00:11] [21:00:11] ================== [21:00:11] [21:00:11] Loaded. [21:00:11] Loaded 5 plugins. [21:00:11] [21:00:11] Filterscripts [21:00:11] --------------- [21:00:11] Loaded 0 filterscripts. [21:00:12] [21:00:12] [21:00:12] [21:00:12] ======================================= [21:00:12] | | [21:00:12] | YSI version 3.09.0684 | [21:00:12] | By Alex "Y_Less" Cole | [21:00:12] | | [21:00:12] ======================================= [21:00:12] [21:00:12] [21:00:12] [21:00:12] Server: hosted [21:00:12] Server vehicles: 177 [21:00:12] Safezones: 13 [21:00:12] [debug] Run time error 4: "Array index out of bounds" [21:00:12] [debug] Accessing element at index 100 past array upper bound 99 [21:00:12] [debug] AMX backtrace: [21:00:12] [debug] #0 002978d0 in public LoadProperty () from ruffian.amx [21:00:12] [debug] #1 000a9124 in ?? () from ruffian.amx [21:00:12] [debug] #2 00027e4c in public L_AFK_OnGM () from ruffian.amx [21:00:12] [debug] #3 native CallLocalFunction () from samp03svr [21:00:12] [debug] #4 000182cc in public SSCANF_OnGameModeInit () from ruffian.amx [21:00:12] [debug] #5 0001267c in public Itter_OnGameModeInit () from ruffian.amx [21:00:12] [debug] #6 native CallLocalFunction () from samp03svr [21:00:12] [debug] #7 000117a0 in public ScriptInit_OnGameModeInit () from ruffian.amx [21:00:12] [debug] #8 00010718 in public PZone_OnGameModeInit () from ruffian.amx [21:00:12] [debug] #9 native CallLocalFunction () from samp03svr [21:00:12] [debug] #10 0000637c in public OnGameModeInit () from ruffian.amx [21:00:12] Number of vehicle models: 64 [21:00:13] Accesory loaded: 100 [21:00:13] Garages loaded: 3
  7. Stefano

    problema /attack

    am rezolvat.
  8. Stefano

    Problemă Register/Login

    spune si tu care e problema.
  9. Stefano

    problema /attack

    nu merge.
  10. Stefano

    problema /attack

    20-22
  11. Stefano

    problema /attack

    cand scriu /attack merge sa dau war, desi eu le-am setat la ora 20, si pot da la orice ora.. am incercat sa rescriu functia si degeaba code YCMD:attack(playerid, params[], help) { if(!IsAMember(playerid)) return SendClientMessage(playerid,COLOR_GREY, "Nu faci parte dintr-o mafie."); if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"You do not have rank 3."); new turf,string[100]; for(new i = 1; i <= sizeof(TurfInfo); i++) { if(IsPlayerInTurf(playerid, i) == 1) { turf = i; break; } } new hour,minute,second, year, month, day; gettime(hour,minute,second); getdate(year, month, day); new days[180]; format(days, sizeof(days), GetWeekDay(day, month, year)); if(PlayerInfo[playerid][pAdmin] < 7) { if(strcmp(days,"Saturday",true) == 0 || strcmp(days,"Sunday",true) == 0) return SCM(playerid, COLOR_LIGHTRED, "Nu se dau war-uri in weekend!"); if(hour == 20 || hour == 23) {} else return SCM(playerid, COLOR_LIGHTRED, "War-uri se pot da doar in intervalul 20:00 - 22:00!"); if(GetFactionMembersOn2(PlayerInfo[playerid][pMember]) < 2) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu sunt minim 3 membri conectati din factiunea ta!"); if(GetFactionMembersOn2(TurfInfo[turf][zOwned]) < 2) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu sunt minim 3 membri conectati din factiunea care detine teritoriul!"); } if(turf == 0) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti pe un teritoriu!"); new faction = PlayerInfo[playerid][pMember]; if(TurfInfo[turf][zOwned] == faction) return SendClientMessage(playerid, COLOR_GREY, "Nu poti ataca turful mafiei tale."); if(WarInfo[turf][wAttacker] != 0) return SendClientMessage(playerid, COLOR_WHITE, "Acest turf este deja atacat."); if(InWar[faction] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Este deja un war activ."); if(InWar[TurfInfo[turf][zOwned]] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Aceasta mafie are deja un war activ."); if(FactionDeelay[PlayerInfo[playerid][pMember]] != 0) { format(string, sizeof(string), "Poti folosi aceasta comanda peste %d minute (%d secunde).", FactionDeelay[PlayerInfo[playerid][pMember]]/60, FactionDeelay[PlayerInfo[playerid][pMember]]); SCM(playerid, COLOR_LGREEN, string); return 1; } format(string, sizeof(string), "[WAR] %s started a war with %s.",FactionName(WarInfo[turf][wAttacker]), FactionName(TurfInfo[turf][zOwned])); SendAdminMessage(COLOR_LOGS, string, 1); format(string, sizeof(string), "[WAR] %s a atacat teritoriul %d detinut de factiunea %s.",GetName(playerid),turf,FactionName(TurfInfo[turf][zOwned])); SendFactionMessage(faction,COLOR_MONEY,string); format(string, sizeof(string), "[WAR] %s (%s) a atacat teritoriul %d detinut de factiunea ta.",FactionName(WarInfo[turf][wAttacker]),GetName(playerid),turf); SendFactionMessage(TurfInfo[turf][zOwned],COLOR_MONEY,string); new query[128]; format(query,sizeof(query),"UPDATE `turfs` SET `Time`='24' WHERE `ID`='%d'",turf); mysql_query(SQL,query); TurfInfo[turf][zTime] = 24; if(PlayerInfo[playerid][pAdmin] == 7) WarInfo[turf][wTime] = 120; else WarInfo[turf][wTime] = 1200; WarInfo[turf][wAttacker] = faction; WarInfo[turf][wFaction] = TurfInfo[turf][zOwned]; worstscoreat[turf] = 0; worstmemberat[turf] = 999; bestscoreat[turf] = 0; bestmemberat[turf] = 999; worstscoredf[turf] = 0; worstmemberdf[turf] = 999; bestscoredf[turf] = 0; bestmemberdf[turf] = 999; InWar[TurfInfo[turf][zOwned]] = 1; InWar[faction] = 1; InWarTurf[faction] = turf; InWarTurf[TurfInfo[turf][zOwned]] = turf; foreach(Player, i) { if(IsPlayerLogged[i] == 1) { if(PlayerInfo[i][pMember] == faction || PlayerInfo[i][pMember] == TurfInfo[turf][zOwned]) UpdateVar(i, "WarTurf", turf); } } SetVehicle(faction, turf); SetVehicle(TurfInfo[turf][zOwned], turf); return 1; }
  12. imi zici si mie in ce consta un array?
  13. dar totusi cred ca mai merge micsorata
×

Informații Importante

Acest site foloseşte cookie–uri. Prin continuarea navigării, eşti de acord cu modul de utilizare a acestor informaţii. Pentru mai multe detalii, vezi Termeni de Utilizare și Politică Intimitate.