- 0
CrashDetect eroare
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
LeOn007
Problema intalnita (descriere): Plugin-ul crashdetect gaseste erori in OtherTimer ... am incercat orice si nu stiu ce sa mai fac
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
function OtherTimer() { new string[256]; new Float:oldposx, Float:oldposy, Float:oldposz; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new vehicleid = GetPlayerVehicleID(i); if(SafeTime > 0) { SafeTime--; } if(SafeTime == 1) { if(gPlayerAccount == 1 && gPlayerLogged == 0) { new loginname[256]; new loginstring[256]; GetPlayerName(i,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{a9c4e4}Bun venit inapoi pe Reality-Gaming RPG n{a9c4e4}Cont:{008000} %s n{a9c4e4}Acest cont este inregistrat",loginname); ShowPlayerDialog(i,12346,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit"); } } if(GetPlayerState(i) == 2) { GetPlayerPos(i, TelePos[3], TelePos[4], TelePos[5]); if(TelePos[5] > 550.0) { TelePos[0] = 0.0; TelePos[1] = 0.0; } if(TelePos[0] != 0.0) { new distance = GetPlayerSpeed(i, true); if ((BusrouteEast[0] == 0 && BusrouteWest[0] == 0)) { if(gSpeedo == 2) { if(distance <10) { format(string, sizeof(string), "~n~~g~mph : ~w~%.0f",distance); } if(distance > 10 && distance < 100) { format(string, sizeof(string), "~n~~g~mph : ~w~%.0f",distance); } if(distance > 100) { format(string, sizeof(string), "~n~~g~mph : ~w~%.0f",distance); } GameTextForPlayer(i, string, 2000, 5); } } } if(TelePos[5] < 550.0 && TelePos[3] != 0.0) { TelePos[0] = TelePos[3]; TelePos[1] = TelePos[4]; } } if(PlayerInfo[pLocal] != 255 && PlayerInfo[pInt] != 0) { new house = PlayerInfo[pLocal]; GetPlayerPos(i, oldposx, oldposy, oldposz); if(oldposz != 0.0) { if(oldposz < 600.0) { if(house == 242) { SetPlayerInterior(i,0); SetPlayerPos(i,-2518.5967,-623.2701,132.7679); PlayerInfo[pInt] = 0; SetPlayerVirtualWorld(i,0); PlayerInfo[pVirWorld] = 0; PlayerInfo[pLocal] = 255; } else if(house < 175 && house != 10000) { SetPlayerPos(i, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); PlayerInfo[pLocal] = 255; SetPlayerInterior(i,0); SetPlayerVirtualWorld(i,0); PlayerInfo[pVirWorld] = 0; PlayerInfo[pInt] = 0; } } } } if(CellTime > 0) { if (CellTime == cchargetime) { CellTime = 1; if(Mobile[Mobile] == i) { CallCost = CallCost+callcost; } } CellTime = CellTime +1; if (Mobile[Mobile] == 255 && CellTime == 5) { if(IsPlayerConnected(Mobile)) { new called[MAX_PLAYER_NAME]; GetPlayerName(Mobile, called, sizeof(called)); format(string, sizeof(string), "* %s's phone rings.", called); ProxDetector(30.0, Mobile, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); RingTone[Mobile] = 10; } } } if(CellTime == 0 && CallCost > 0) { format(string, sizeof(string), "~w~The call cost~n~~r~%d EuroCent",CallCost); GameTextForPlayer(i, string, 5000, 1); new eurocenti = PlayerInfo[pEuroCent]; PlayerInfo[pEuroCent] = eurocenti - CallCost; SBizzInfo[2][sbTill] += CallCost; ExtortionSBiz(2, CallCost); CallCost = 0; } if(TransportTime > 0) { if(TransportTime >= 16) { TransportTime = 1; if(TransportDriver < 999) { if(IsPlayerConnected(TransportDriver)) { TransportCost += TransportValue[TransportDriver]; TransportCost[TransportDriver] = TransportCost; } } } TransportTime += 1; format(string, sizeof(string), "~r~%d ~w~: ~g~%s",TransportTime,DecimalPoint(TransportCost)); GameTextForPlayer(i, string, 1500, 6); if(GetPlayerMoney(i) < TransportCost) { format(string, sizeof(string), "* Ai nevoie de %s pentru a merge mai departe.", DecimalPoint(TransportCost)); SendClientMessage(i, COLOR_WHITE, string); RemovePlayerFromVehicle(i); } } if (BusrouteEast[0] != 0 || BusrouteWest[0] != 0) { if (!IsPlayerInAnyVehicle(i) || !IsABus(GetPlayerVehicleID(i))) if (vehicleid != 0) { if (!IsABus(vehicleid)) { if (BusrouteEast[0] != 0) BusrouteEnd(i, BusrouteEast[1]); else if (BusrouteWest[0] != 0) BusrouteEnd(i, BusrouteWest[1]); } } else { if (BusrouteEast[0] != 0) BusrouteEnd(i, BusrouteEast[1]); else if (BusrouteWest[0] != 0) BusrouteEnd(i, BusrouteWest[1]); } } if (IsABus(vehicleid) && GetPlayerState(i) == 2 && PlayerInfo[pJob] != 14) { SetVehicleToRespawn(vehicleid); } if(IsAnOwnableCar(vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER) { new Float:x, Float:y, Float:z; GetVehiclePos(vehicleid, x, y, z); new distance = GetDistances2(x, y, z, vPos[0][vehicleid], vPos[1][vehicleid], vPos[2][vehicleid]); vPos[0][vehicleid] = x; vPos[1][vehicleid] = y; vPos[2][vehicleid] = z; VehicleDistance[vehicleid] += distance; if (VehicleDistance[vehicleid] > 370) { CarInfo[vehicleid][odometer]++; VehicleDistance[vehicleid] = 0; } } } } return 1; }Imagini / Video (optional):
Ati incercat sa rezolvati singur?: DA :-(
Am rezolvat , mersi oricum :-j . 2 Topic Closed si nici un raspuns . Buni MG mai sunteti.
SOLVED
Edited by LeOn007rpg.reality-gaming.ro
0 answers to this question
Recommended Posts