valivaly96
-
Posts
514 -
Joined
-
Last visited
-
Days Won
8
Content Type
Profiles
Forums
News
Documentation
Posts posted by valivaly96
-
-
Acum 9 ore, K0hL a spus:
si cum fac cand intra in el sa il dezactivezE?
cmd:numecomanda(playerid,params[])
{
SetPlayerCheckpoint(x,y,z,raza);//x,y,z le iei cu /save din joc sau map editor
CP[playerid]=12345;//daca nu ai definita variabila CP o definesti asa dupa includeuri: new CP[MAX_PLAYERS]
//Variabila cp o folosim ca sa verificam la callbaclul onplayerentercheckpoint daca acest checpoint este activ
return 1;
}
La onplayerentercheckpoint faci asa
if(CP[playerid]==12345) {
DisablePlayerCheckpoint(playerid);
CP[playerid]=0;
}
-
Acum 12 ore, CosminZEQ a spus:
Dialog-ul sau ce?
Comanda work, ca din cate am vazut cand dai work nu se intampla nimic
-
Acum 32 minute, CosminZEQ a spus:
Pune codul sursa
-
Acum 5 ore, K0hL a spus:
t/c, nu am inteles nimic, vreau decat sa dai o comanda si sa iti puna checkpoint, ms
cmd:numecomanda(playerid,params[])
{
SetPlayerCheckpoint(x,y,z,raza);//x,y,z le iei cu /save din joc sau map editor
return 1;
}
-
Acum 3 ore, Dennis12. a spus:
Metode antice ..
Pune un exemplu de metode "moderne" mister
-
La 02.05.2018 la 10:00, Exaton a spus:
nu am gasit nimic in gamemode sau systems este doar ala de langa minimap
Cauta in gm unde se seteaza stringul si dupa cauta dupa numele texdraw-ului in includeuri si stergel pt ca initial in loc de fps poate scrie orice pana seteaza stringul in gm
-
Acum 14 ore, Eroare_404 a spus:
Nu merge
Ce gamemode folosesti?
-
La 09.04.2018 la 14:56, Zeca a spus:
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)
SQLSTATE[HY000] [1045] Access denied for user 'zeksro_panel'@'localhost' (using password: YES)Parola este gresita
-
Acum 5 minute, Eroare_404 a spus:
Salut am și eu o problema la un gamemode bugurile sunt
1.La Apartamente le-am pus la licitație dar tot zice ca e luat de cineva
2.La accesory când cumpăr accesory și dau cancel mă da intro camera întunecoasă care nu poți sa ieșit
3.La spawn civili pot sa /cameditor
De cate ori trebuie sa ti se spuna cum sa rezolvi pe primele 2?
1. In baza de date ai Owned pe 1, punel pe 0
2.Schimba coordonatele sa nu te mai dea in acea camera
-
Acum 12 ore, Exaton a spus:
acolo e tot ce trb doar aia imi apare
Acela este un texdraw nu un dialog...scripteri lu' peste prajit. E nasol daca nu faceti diferenta intre dialog si textdraw
-
Acum 4 ore, Spongibubu a spus:
Tot nu merge.
CMD:v(playerid, params[]) { ShowPlayerVehicle(playerid); return 1; } stock ShowPlayerVehicle(playerid) { new szTitle[180], szDialog[1300], szDialog2[1300], vstatus[1024]; if(GetVehicles(playerid) == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't own any vehicles."); format(szTitle, sizeof(szTitle), "Vehicles (%d/4)", GetVehicles(playerid)); for(new i = 0; i < 5; i++) { if(PlayerInfo[playerid][pCarKey][i] > 0) { new car = PlayerInfo[playerid][pCarKey][i]; if(IsVehicleOccupied(CarInfo[car][cSpawned])) format(vstatus, sizeof(vstatus), "{FFFF00}(Occupied){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else if(CarInfo[car][cSpawned] > 0) format(vstatus, sizeof(vstatus), "{26B309}(Spawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else format(vstatus, sizeof(vstatus), "{FF0000}(Despawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); format(szDialog, sizeof(szDialog), "%s\n", vstatus); strcat(szDialog2, szDialog); } ShowPlayerDialog(playerid, DIALOG_GARAGE, DIALOG_STYLE_LIST, szTitle, szDialog2, "Ok", "Exit"); } return 1; }
Daca nu merge ce erori ai in consola cu codul modificat?
-
La 28.04.2018 la 16:02, Spongibubu a spus:
Salutare! Intâmpin o problema la comanda /v. Când scriu /v îmi spune SERVER: Unknown command.
Ce aș putea face?
Aveți aici codul:
CMD:v(playerid, params[]) { ShowPlayerVehicle(playerid); return 1; } stock ShowPlayerVehicle(playerid) { new szTitle[180], szDialog[1300], szDialog2[1300], vstatus[1024]; if(GetVehicles(playerid) == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't own any vehicles."); format(szTitle, sizeof(szTitle), "Vehicles (%d/4)", GetVehicles(playerid)); for(new i = 0; i < 5; i++) { if(PlayerInfo[playerid][pCarKey][i] != 0) { new car = PlayerInfo[playerid][pCarKey][i]; if(IsVehicleOccupied(CarInfo[car][cSpawned])) format(vstatus, sizeof(vstatus), "{FFFF00}(Occupied){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else if(CarInfo[car][cSpawned] > 0) format(vstatus, sizeof(vstatus), "{26B309}(Spawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else format(vstatus, sizeof(vstatus), "{FF0000}(Despawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); format(szDialog, sizeof(szDialog), "%s\n", vstatus); strcat(szDialog2, szDialog); } ShowPlayerDialog(playerid, DIALOG_GARAGE, DIALOG_STYLE_LIST, szTitle, szDialog2, "Ok", "Exit"); } return 1; }
O zi frumoasă vă doresc!
Inlocuieste if(PlayerInfo[playerid][pCarKey][i] != 0) cu
if(PlayerInfo[playerid][pCarKey][i] >0) sau
if(PlayerInfo[playerid][pCarKey][i] != -1)
-
1 oră în urmă, CosminZEQ a spus:
nu merge, nu gaseste
Cauta si in includeuri
-
Acum 2 ore, CosminZEQ a spus:
La gamemode-ul wexgaming scrie intruna test LS pe chat
Cum rezolv?
da find in gamemode test LS si stergi sendclientmessage
-
Acum 2 ore, Eroare_404 a spus:
La apartamente este problema ca am pus la owner The State si la value am pus 200kk si cand dau /buyapartament zice ca e cumparat de altcineva
Poze: https://imgur.com/a/Y8v7lfE https://imgur.com/a/fQiH5o9
La accesory este problema cand ma duc intr-un clothes si dau /accs ma da intro camera intunecoasa
Poze: https://imgur.com/a/91R4TLP https://imgur.com/a/KbXTl6k
La apartamente trebuie sa pui in baza de date la owned 0
si la clothes ai coordonatele gresit puse.(schimba coordonale din comanda /accs cu unele noi luate cu /save)
-
-
1 oră în urmă, andrei20141 a spus:
spune-mi de ce cod ai nevoie
Codul de la /buyvehicles, daca afisarea texdrawurilor se face prin intermediul unuei functii auxiliare puneo si pe aceea.
-
Acum 2 ore, Stack.dll a spus:
Trebuie sa definesti pCar, nu o ai definita, acolo unde o folosesti tu, si s ar puteasa fie global...
Esti total pe langa, fara suparare. Variabila este initial definita ca un vector si el cand o foloseste in loc sa o apeleze ca pCar[ceva] o apeleaza ca pCar
-
Acum 15 ore, SeNaToRuL. a spus:
Salut am o problema cu LoadSafes();
cand dau drumu la server imi da
[23:28:49] [debug] Run time error 4: "Array index out of bounds"
[23:28:49] [debug] Attempted to read/write array element at index 14 in array of size 14
[23:28:49] [debug] AMX backtrace:
[23:28:49] [debug] #0 0028b894 in ?? (14) from b-hood.amx
[23:28:49] [debug] #1 0026e314 in public LoadSafes () from b-hood.amx
[23:28:49] [debug] #2 00099444 in ?? () from b-hood.amx
[23:28:49] [debug] #3 0001f0a8 in public L_AFK_OnGM () from b-hood.amx
[23:28:49] [debug] #4 native CallLocalFunction () from samp-server.exe
[23:28:49] [debug] #5 00012f34 in public zcmd_OnGameModeInit () from b-hood.amx
[23:28:49] [debug] #6 native CallLocalFunction () from samp-server.exe
[23:28:49] [debug] #7 00012a7c in public SSCANF_OnGameModeInit () from b-hood.amx
[23:28:49] [debug] #8 0000cde4 in public Itter_OnGameModeInit () from b-hood.amx
[23:28:49] [debug] #9 native CallLocalFunction () from samp-server.exe
[23:28:49] [debug] #10 0000c0a0 in public ScriptInit_OnGameModeInit () from b-hood.amx
[23:28:50] [debug] #11 0000b024 in public PZone_OnGameModeInit () from b-hood.amx
[23:28:50] [debug] #12 native CallLocalFunction () from samp-server.exe
[23:28:50] [debug] #13 00000c88 in public OnGameModeInit () from b-hood.amx
[23:28:50] Number of vehicle models: 60
[23:28:50] [MySQL] Dealership models: 95verifica toti vectori, unul e prea mic
-
Acum 2 ore, MiritaXD a spus:
Azi am terminat sistem-ul pentru DS si din cate vad ca nu seteaza coordonatele masini(in joc)
In baza de date se actualizeaza asa cum trebuie.function insertVehicle(playerid, model, dealerid) { ////UPDATE DEALER DSVar[dealerid][dStock] --; gQuery[0] = (EOS); mysql_format(MySql, gQuery, sizeof gQuery, "UPDATE `dsCars` SET `Stock` = '%d' WHERE `Model` = '%d'", DSVar[dealerid][dStock], model); mysql_tquery(MySql, gQuery, "", ""); new idd = cache_insert_id(); ///pozitie PlayerCarsVar[idd][cLocation][1] = 388.5440; PlayerCarsVar[idd][cLocation][2] = -1522.2147; PlayerCarsVar[idd][cLocation][3] = 32.1853; ///============================== GivePlayerCash(playerid, -DSVar[dealerid][dPrice]); PlayerCarsVar[idd][cSQLID] = idd; PlayerCarsVar[idd][cModel] = model; PlayerCarsVar[idd][cColor][0] = 1; PlayerCarsVar[idd][cColor][1] = 1; strmid(PlayerCarsVar[idd][cOwner], GetName( playerid ), 0, 25, 255); PlayerCarsVar[idd][cLock] = 1; PlayerCarsVar[idd][cDays] = gettime(); PlayerCarsVar[idd][cFuel] = 100; fSCM(playerid,-1,"Ai cumparat un vehicul de tip %s.",aVehicleNames[ model -400 ]); SM(2, "Foloseste /cars(/v) pentru a vedea comenzile disponibile."); //======================================= ///Update masina in db UpdateVehicle(idd, "Color1", 1); UpdateVehicle(idd, "Color2", 1); UpdateVehicleString(idd, "Owner", GetName( playerid )); UpdateVehicle(idd, "Lock", 1); UpdateVehicle(idd, "Days", gettime()); UpdateVehicle(idd, "Fuel", 100); UpdateVehicleFloat(idd, "LocationX", 388.5440); UpdateVehicleFloat(idd, "LocationY", -1522.2147); UpdateVehicleFloat(idd, "LocationZ", 32.1853); DespawnVeh(idd); SpawnPlayerVeh(idd); //============================ return true; }
arata functia spawnplayerveh
-
Acum 2 ore, Kiran a spus:
gm-ul e burned dar nu mi se pun bani din joburi la seiful clanului, am verificat, si nu mi-a dat nici erori in pawno..
fara cod sursa pus la dispozitie nu te poate ajuta nimeni
-
La 17.04.2018 la 21:56, custura a spus:
Acestea sunt liniile(atunci cand playerul se conecteaza ar trebui sa ii seteze numele+tag)
if(PlayerData[extraid][pClan] > 0)
{
new clsetName[25];
new clanid = PlayerData[extraid][pClan];
if(ClanData[clanid][clanTag] == 1)
{
format(clsetName, sizeof(clsetName), "%s%s", ClanData[PlayerData[extraid][pClan]][clanTag], PlayerData[extraid][pUsername]);
SetPlayerName(extraid, clsetName);
}
else if(ClanData[clanid][clanTag] == 2)
{
format(clsetName, sizeof(clsetName), "%s%s", PlayerData[extraid][pUsername], ClanData[PlayerData[extraid][pClan]][clanTag]);
SetPlayerName(extraid, clsetName);
}
}Am facut o comanda sa vad daca citeste bine din baza de date, iar rezultatul este ok
poate ca extraid nu este idul curent al jucatorului in joc.Fa un debug cu SCM sau printf pt acel extraid
-
-
Acum 2 ore, Sniper88 a spus:
Pai cum rezolv eroarea pana la urma?Trebuie adaugata variabila pCar?Ca nu o am...am doar ceva gen : pCar [MAX_PLAYERS] atat..e
bun, pe randul cu eroarea in loc de pCar pui pCar[playerid] sau pCar[ i](fara acel space din fata de la "i").Cel mai indicat arata codul ca sa ne dam sena exact(dupa cum a spus si mister)
problema la job-ul trucker ajutor va rog
in Ajutor Scripting
Posted
Ce id are jobul trucker?