-
Posts
422 -
Joined
-
Last visited
-
Days Won
2
Community Answers
-
iSkull's post in Erori YSI v5 was marked as the answer
strcmp tine de string.inc, actualizeaza includeurile si aranjeaza-le cum trebuie
-
iSkull's post in Sistem Premium pe vehicule was marked as the answer
derapajul acela e din cauza vitezei
-
iSkull's post in Bug opencrates gamemode HPQ123 was marked as the answer
Daca pui ce am scris in edit nu o sa-ti mai dea, pentru ca de fiecare data cand se va apela functia se va reverifica acel x, in ce aveai tu, daca CrateModel era -1 in multe cazuri cum ai de fata, cand se reapela functia iti mai scadea 1 si returna -2, in ce ti-am dat eu, daca CrateModel e -1, x va ramane -1, daca e 0 se va face x -1
new amount, rand = random(100), x = !CrateModel[i] ? 0 : CrateModel[i]-1; Poti face: new amount, rand = random(100), x; if(CrateModel[i] == -1) x = -1; else x = CrateModel[i] - 1;
-
iSkull's post in Problema rent car was marked as the answer
Model
new LockRent[MAX_VEHICLES]; // definesti la inceput de gm dupa include-uri // la dialogul cu dialog_rent sau ce ai tu pe acolo imediat dupa PlayerInfo[playerid][pRentCar] = CreateVehicle pui LockRent[PlayerInfo[playerid][pRentCar]] = 0; // descuiat SetVehicleParamsEx(PlayerInfo[playerid][pRentCar], VEHICLE_PARAMS_OFF, lights, alarm, 0, bonnet, boot, 0); YCMD:lock(playerid, params[], help) { if(!PlayerInfo[playerid][pRentCar]) return 1; new string[75]; LockRent[PlayerInfo[playerid][pRentCar]] = (LockRent[PlayerInfo[playerid][pRentCar]]) ? (0) : (1); SetVehicleParamsEx(PlayerInfo[playerid][pRentCar], VEHICLE_PARAMS_OFF, lights, alarm, LockRent[PlayerInfo[playerid][pRentCar]], bonnet, boot, 0); format(string, sizeof(string), "Vehiculul de tip %s a fost %s cu succes!", getVehicleName(GetVehicleModel(PlayerInfo[playerid][pRentCar])), (LockRent[PlayerInfo[playerid][pRentCar]]) ? ("incuiat") : ("descuiat")); SendClientMessage(playerid, -1, string); return 1; } // la distrugere pui LockRent[vehicleid] = 0; -
iSkull's post in Profiler crash was marked as the answer
Inlocuieste pluginurile cu ce ti am dat, daca si cu astea iti face la fel, e de la altceva, nu are cum sa faca la fel
profiler.dll profiler.so
-
iSkull's post in probleme was marked as the answer
OnPlayerRequestClass nu este folosit deobicei pentru asa ceva, eu iti las un model cu OnPlayerConnect, nu stiu ce versiune de mysql folosesti, am incercat cat de cat sa incorporez cache-urile in scriptul meu.
Acesta este modelul: https://pastebin.com/yS8KKAYL
Sper sa te ajute
-
iSkull's post in Warning was marked as the answer
TotalFires++; FireObj[TotalFires] = CreateObject(3461, x, y, z-2.61, 0, 0, 0.0); FirePos[TotalFires][0] = x, FirePos[TotalFires][1] = y, FirePos[TotalFires][2] = z; FireHealth[TotalFires] = Health; FireHealthMax[TotalFires] = Health; #if defined Labels new string[128]; format(string, sizeof(string), "%d/%d", FireHealth[TotalFires], FireHealthMax[TotalFires]); FireText[TotalFires] = CreateDynamic3DTextLabel(string, 0xFFFFFFFFF, x, y, z, 20, 0); #endif