-
Posts
145 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
News
Documentation
Posts posted by Razvan Eternity
-
-
Just now, EnCristi said:
Pai unde o fac?
Ca nu inteleg...
Lasa-te, daca nici atat nu stii sa faci :|.
-
Mai faci o variabila prin care sa stochezi banii.
-
Textul tau contine mai multe caractere decat ai setat, la new string[100]; sau cum ai tu, mareste numarul din paranteze.
-
Muta textdraw-ul.
-
Just now, serbanbujor said:
Nu, cum ar trebui sa le definesc?
Daca ai un gamemode de la 0, ai nevoie de factiuni, tot ce se termina in Ex de la sistemul de rob trebuie scos.
Iar in loc de CrimInRange trebuie sa pui functia care verifica daca jucatorul este langa un politai, sau ce trebuie sa faca.
-
3 minutes ago, serbanbujor said:
Am sters TOT sistemu de rob si nu mai am nicio eroare, cele mai multe erori dadea la functii
Pai ai functiile definite sau nu?
-
30 minutes ago, serbanbujor said:
Mai adauga o acolada la CMD:rob, jos de tot, la sfarsitul comenzii.
-
2 minutes ago, serbanbujor said:
Din cate vad, la CMD:rob ai uitat sa inchizi acolada, iar cu ce e dupa ////////////////////////////////, la ce se refera? le ai puse asa in gamemode sau le ai puse la o publica / functie?
-
2 minutes ago, serbanbujor said:
Astea nu le-am folosit deloc in sistem, da nu stiu de ce imi da acolo eroare, am folosit setint, setvw, si multe altele, va dau aici tot
if(BusinessRob[playerid] > 0) fail_rob(playerid);
function SpargeUsa(playerid) { SetPlayerPosEx(playerid, 965.8165, -53.2116, 1001.1133); SetPlayerInterior(playerid, 3); // unfreeze rob_objects[playerid][0] = CreatePlayerObject(playerid, 18872, 967.16199, -45.37270, 1000.95020, 0.00000, 0.00000, 0.00000); rob_objects[playerid][1] = CreatePlayerObject(playerid, 19422, 967.13727, -48.06918, 1000.94995, 0.00000, 0.00000, 0.00000); rob_objects[playerid][2] = CreatePlayerObject(playerid, 1518, 960.81970, -57.32470, 1001.21222, 0.00000, 0.00000, -182.10001); rob_objects[playerid][3] = CreatePlayerObject(playerid, 19893, 957.55756, -54.16825, 1001.05933, 0.00000, 0.00000, -286.61993); rob_objects[playerid][4] = CreatePlayerObject(playerid, 19578, 957.12683, -52.68953, 1001.05994, 0.00000, 0.00000, 0.00000); return 1; } function destroy_rob_objects(playerid) { for(new i = 0; i < 5; i++) { if (rob_objects[playerid][id] != 0) DestroyPlayerObject(playerid, rob_objects[playerid][id]), rob_objects[playerid][id] = 0; } return 1; } function destroy_rob_object_id(playerid, id) { if (rob_objects[playerid][i] != 0) DestroyPlayerObject(playerid, rob_objects[playerid][i]), rob_objects[playerid][i] = 0; total_objects[playerid] ++; if(total_objects[playerid] == 3) { destroy_rob_objects(playerid); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); new rand = random(3); if(rand == 0) rob_vehicle[playerid] = CreateVehicle(482, 802.3189, -609.5759, 16.2697, 0.0000, -1, -1, 100); if(rand == 1) rob_vehicle[playerid] = CreateVehicle(482, 783.8732, -1138.0397, 23.6983, -91.6800, -1, -1, 100); if(rand == 2) rob_vehicle[playerid] = CreateVehicle(482, 993.1291, -1383.4227, 13.1841, 0.0000, -1, -1, 100); PutPlayerInVehicleEx(playerid, rob_vehicle[playerid], 0); BusinessRob[playerid] = 2; RobTime[playerid] = 0; new rand2 = random(sizeof(gRandomRob)); SetPlayerCheckpoint(playerid, gRandomRob[rand2][0],gRandomRob[rand2][1],gRandomRob[rand2][2], 4.0); SendClientMessage(playerid, COLOR_ROB,"Mergi la checkpoint-ul de pe minimap pentru a ascunde banii furati."); return 1; } function fail_rob(playerid) { DestroyVehicle(rob_vehicle[playerid]); PlayerTextDrawHide(playerid, RobPTD); DisablePlayerCheckpoint(playerid); BusinessRob[playerid] = 0; RobTime[playerid] = -1; SendClientMessage(playerid, COLOR_ROB, "Rob failed. You died."); return 1; } // fail daca iese din veh CMD:rob(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need level 3 to do this."); if(PlayerInfo[playerid][pWantedLevel] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't rob a business when you have wanted."); if(PlayerInfo[playerid][pRob] >= 10 && PlayerInfo[playerid][pPremiumAccount] == 0 || PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pPremiumAccount] == 0|| PlayerInfo[playerid][pRob] >= 8 && PlayerInfo[playerid][pPremiumAccount] > 0) { if(IsACop(playerid)) return SCM(playerid,COLOR_WHITE,"{FFB870}You're a cop."); for(new i = 1; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { SetTimerEx("SpargeUsa", 5000, 0, "i", playerid); GameTextForPlayer(playerid, "~r~asteapta sa spargi usa", 5000, 4); BusinessRob[playerid] = 3; if(PlayerInfo[playerid][pPremiumAccount] == 0) { PlayerInfo[playerid][pRob] -= 10; } else if(PlayerInfo[playerid][pPremiumAccount] == 1) { PlayerInfo[playerid][pRob] -= 8; } Update(playerid,pRobx); total_objects[playerid] = 0; rob_time[playerid] = 180; PlayerTextDrawSetString(playerid, RobPTD, "loading..."); PlayerTextDrawShow(playerid, RobPTD); // virtualworld pe id casa // freeze } } } else { if(PlayerInfo[playerid][pPremiumAccount] == 0) { SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't have 10 rob points."); } else if(PlayerInfo[playerid][pPremiumAccount] == 1) { SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't have 8 rob points."); } return 1; }
rob_time[i] --; format(string, sizeof(string), "objects: %d/3~n~time left: %s", total_objects[i], CalculeazaTimp2(rob_time[i])); PlayerTextDrawSetString(i, RobPTD, string); PlayerTextDrawShow(i, RobPTD); if(rob_time[i] == 0) { PlayerTextDrawHide(i, RobPTD); SetPlayerWantedLevel(i, 6); PlayerTextDrawShow(i, WantedText[i]); new str1[256]; format(str1,sizeof(str1),"WANTED SCADE IN: ~r~%d MINUTE",wantedlost[i]/60+1); PlayerTextDrawSetString(i, WantedText[i], str1); WantedPoints[i] = 12; SetPlayerCriminal(i,255, "armed robbery"); Update(i,pWantedLevelx); DestroyDynamic3DTextLabel(WantedScris[i]); Tigaanel[i] = 1; new str2[256]; format(str2,sizeof(str2),"{FF00FF}Wanted Level: %d", PlayerInfo[i][pWantedLevel]); WantedScris[i] = CreateDynamic3DTextLabel(str2, COLOR_WHITE, 0,0, -20, 20, i); Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, WantedScris[i] , E_STREAMER_ATTACH_OFFSET_Z, 0.48); if(UsedFind[i] == 1) { UsedFind[i] = 0; DisablePlayerCheckpoint(i); foreach(Player, x) { if(IsACop(x)) { if(caser[x] == x) { cased[x] --; caser[x] = 1001; } } } } } }
Pune tot codul pe pastebin.com
-
Just now, trrandafiru said:
ProxDetector -> ProxDetectorS SetPlayerPosEx -> SetPlayerPos SetPlayerArmourEx -> SetPlayerArmour - incearca sa le folosesti pe astea, s-ar putea sa fie deja definite.
Le are definite, nu-i da eroare la sistemul de rob cica. Probabil nu a inchis o acolada sau ceva.
-
Just now, serbanbujor said:
De asta imi da eroare? Pai am stat 1h si cva sa fac, nu stii cum sa gasesc unde nu e acolada?
Uita-te pe la sistemul de rob, daca ai uitat sa inchizi o paranteza.
-
1 minute ago, serbanbujor said:
Insa eu nu inteleg, de ce nu imi da eroare unde e codu la rob?
probabil ai uitat o paranteza.
-
1 hour ago, serbanbujor said:
Am vrut sa fac un sistem de rob cum a facut edison, dar imi da urmatoarele erori:
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(9578) : error 004: function "CrimInRange" is not implemented
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(9760) : error 017: undefined symbol "SetPlayerArmourEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(9956) : error 004: function "ProxDetector" is not implemented
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10012) : error 004: function "ProxDetector" is not implemented
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10069) : error 017: undefined symbol "ShowLogin"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10090) : error 017: undefined symbol "SetPlayerArmourEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10135) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10159) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10184) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10209) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10234) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\iustin\Desktop\Grenox\gamemodes\Grenox.pwn(10282) : error 017: undefined symbol "SetPlayerPosEx"Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.Inainte sa pun robu nu-mi dadeau erorile astea
Tutorialul care a fost facut de Edison a fost facut pe Bigzone din cate am observat, functiile 'SetPlayerPosEx', 'ShowLogin', 'SetPlayerArmourEx', 'ProxDetector' si 'CrimInRange' nu sunt in gamemode-ul pe care-l ai. Incearca sa pui functiile tale.
-
On 18.03.2018 at 8:07 PM, GEORGIKAA said:
As vrea sa incep un proiect pe un gamemode insa as dori un gamemode gen sa aiba doar bazele, joburile clasice si restul de chestii basic, nu vreau sa aiba quest-uri sau ceva.. ceva mai vechi ma refer.
bigzone.
-
2 hours ago, Stefan said:
Am si eu o problema la questurile zilnice ca toate merg inafara de faza asta cand vreau sa repar un vehicul de 3 ori in pns am pus totul ok uitati poza Poza(https://imgur.com/a/g9xkD), dar se pluseaza pana la 3 daca is in zona aia nu vr asa eu vreau sa se puna 1 la fiecare reparatie si el verifica daca e in zona aia sa se pluseze nu vr asa cum rezolv?
-
4 minutes ago, Stefan said:
function FinalQuest2(playerid) {
new result2, quest2 = PlayerInfo[playerid][pQuestZ2];
if(quest2 == 0 || quest2 == 1 || quest2 == 3 || quest2 == 4) result2 = 1;
else if(quest2 == 2) result2 = 5;
else if(quest2 == 5) result2 = 30;
else if(quest2 == 6) result2 = 3;if(PlayerInfo[playerid][pQuestZProgres2] >= result2) return 1;
PlayerInfo[playerid][pQuestZProgres2] ++;
Update(playerid, pQuestZProgres2x);if(PlayerInfo[playerid][pQuestZProgres2] == result2) {
new string[128], money = 10000*PlayerInfo[playerid][pLevel] + random(5000);
format(string, sizeof(string), "Misiunea [%s] a fost terminata!", QuestName2(PlayerInfo[playerid][pQuestZ2]));
SCM(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Ai primit: $%s si un Respect Points!",FormatNumber(money));
SCM(playerid, COLOR_YELLOW, string);
GivePlayerCash(playerid, money);
PlayerInfo[playerid][pExp] ++;
Update(playerid, pRP);
Update(playerid, pCashx);
}
else {
new string2[128];
format(string2, sizeof(string2), "Progres pentru misiunea (%s), [%d/%d]", QuestName2(PlayerInfo[playerid][pQuestZ2]),PlayerInfo[playerid][pQuestZProgres2],result2);
SCM(playerid, COLOR_YELLOW, string2);
}
return 1;
}La mine e facut plusarea nush ce are ca cred ca se ia dupa raza nu + dupa hp eu vr doar dupa hp si doar 1 data sa se puna nu de mai multe ori !
-
if(PlayerInfo[playerid][pQuestZ2] == 6) { PlayerInfo[playerid][pQuestZ2Progress]++; FinalQuest2(playerid);
[ sau cum ai tu]
-
On 3/12/2018 at 12:26 AM, valivaly96 said:
linia if(i==dbid) return 1; nu face ce trebuie in loc de i ar trebui vehicle.
Deci in loc de if(i==dbid) return 1; trebuie if(vehicle==dbid) return 1;
da, greseala mea, nu am fost atent.
-
1 hour ago, Leonardo23 said:
Comanda asta vreau sa o trec pe strcmd, aveti 2 exeple, eu am trecuto rau, primul e cum arata comanda, al doilea e cum as vrea sa arate, dar nu-mi iese, nu folosesc zcmd, imi da eroare la params.
CMD:etuning(playerid, params[])
{
if(sscanf(params, "s[16]", params))
{
SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /etuning [option]");
SendClientMessage(playerid, COLOR_WHITE, "OPTIONS: x | y | z | done");
}
else if(!strcmp(params, "x", true))
{
PlayerData[playerid][EditStatus] = 1;
}
else if(!strcmp(params, "y", true))
{
PlayerData[playerid][EditStatus] = 2;
}
else if(!strcmp(params, "z", true))
{
PlayerData[playerid][EditStatus] = 3;
}
/*else if(!strcmp(params, "rx", true))
{
PlayerData[playerid][EditStatus] = 4;
}
else if(!strcmp(params, "ry", true))
{
PlayerData[playerid][EditStatus] = 5;
}
else if(!strcmp(params, "rz", true))
{
PlayerData[playerid][EditStatus] = 6;
}*/
else if(!strcmp(params, "done", true))
{
PlayerData[playerid][EditStatus] = 0;
KillTimer(PlayerData[playerid][EditingTimer]);
SaveTuning(playerid);
}
return 1;
}Aici
if(strcmp(cmd, "/etuning", true) == 0)
{
if(sscanf(cmdtext, "s[16]", text))
{
SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /etuning [option]");
SendClientMessage(playerid, COLOR_WHITE, "OPTIONS: x | y | z | done");
}
else if(!strcmp(cmdtext, "x", true))
{
PlayerData[playerid][EditStatus] = 1;
}
else if(!strcmp(params, "y", id))
{
PlayerData[playerid][EditStatus] = 2;
}
else if(!strcmp(cmdtext, "z", true))
{
PlayerData[playerid][EditStatus] = 3;
}
/*else if(!strcmp(cmdtext, "rx", true))
{
PlayerData[playerid][EditStatus] = 4;
}
else if(!strcmp(cmdtext, "ry", true))
{
PlayerData[playerid][EditStatus] = 5;
}
else if(!strcmp(cmdtext, "rz", true))
{
PlayerData[playerid][EditStatus] = 6;
}*/
else if(!strcmp(cmdtext, "done", true))
{
PlayerData[playerid][EditStatus] = 0;
KillTimer(PlayerData[playerid][EditingTimer]);
SaveTuning(playerid);
}
return 1;
} -
1 hour ago, Davidoff7776 said:
Salut! Am si eu aceasta functie pe gm burned:
function DespawnVehicle(carid) { new dbid = FindSpawnID(carid); if(CarInfo[dbid][Spawned] != 0) DestroyPlayerCar(dbid); printf("Vehicle %d despawned. [db: %d]", carid, dbid); return 1; }
si as dori sa adaug o verificare cum ca daca masina este folosita sa returneze 1 dar nu prea stiu cum sa fac asta
if(CarInfo[habar nu am ce sa scriu] = 1) return 1;
foreach(new i : Player) {
new vehicle;
vehicle = GetPlayerVehicleID(i);
if(i == dbid) return 1;
}
-
verifici daca este numele tau sa iti seteze 'Scripter X'.
-
Just now, Exaton said:
acum nu da error si cand intru pe localhost arata ca mereu daca iar vor disparea iti voi da pm ms mult de ajutor
Poti sa-mi dai +1, ca ma multumesc si cu atat, daca ai nevoie de ajutor, ma gasesti pe discord: RzNN#2890 sau un PM pe forum.
-
Just now, Exaton said:
tot asa
Ia-l de aici, ca nu pot sa-l pun pe forum: https://pastebin.com/XCBA15pQ
-
Nu stiu ce are de nu merge cu spoiler, ia-l asa:
Am uitat sa copiez iar codu, ia-l:
public LoadProperty()
{
housess = cache_num_rows();
for(new i = 0; i <= housess; i++)
{
new h = i - 1;
HouseInfo[hID] = cache_get_field_content_int(h, "ID");
HouseInfo[hEntrancex] = cache_get_field_content_float(h, "Entrancex");
HouseInfo[hEntrancey] = cache_get_field_content_float(h, "Entrancey");
HouseInfo[hEntrancez] = cache_get_field_content_float(h, "Entrancez");
HouseInfo[hExitx] = cache_get_field_content_float(h, "Exitx");
HouseInfo[hExity] = cache_get_field_content_float(h, "Exity");
HouseInfo[hExitz] = cache_get_field_content_float(h, "Exitz");
cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
HouseInfo[hValue] = cache_get_field_content_int(h, "Value");
HouseInfo[hPrice] = cache_get_field_content_int(h, "Prices");
HouseInfo[hHel] = cache_get_field_content_int(h, "Hel");
HouseInfo[hMusic] = cache_get_field_content_int(h, "Music");
HouseInfo[hInterior] = cache_get_field_content_int(h, "Interior");
HouseInfo[hInteriorType] = cache_get_field_content_int(h, "InteriorType");
HouseInfo[hLock] = cache_get_field_content_int(h, "Lockk");
HouseInfo[hOwned] = cache_get_field_content_int(h, "Owned");
HouseInfo[hRent] = cache_get_field_content_int(h, "Rent");
HouseInfo[hRentabil] = cache_get_field_content_int(h, "Rentabil");
HouseInfo[hTakings] = cache_get_field_content_int(h, "Takings");
HouseInfo[hLevel] = cache_get_field_content_int(h, "Level");
HouseInfo[hVirtual] = cache_get_field_content_int(h, "Virtual");
/*Incep garajele*/
HouseInfo[gExtX] = cache_get_field_content_float(h, "gExtX");
HouseInfo[gExtY] = cache_get_field_content_float(h, "gExtY");
HouseInfo[gExtZ] = cache_get_field_content_float(h, "gExtZ");
HouseInfo[gAngel] = cache_get_field_content_float(h, "gAngel");
HouseInfo[hgaraj] = cache_get_field_content_int(h, "garaj");
HouseInfo[gSlot] = cache_get_field_content_int(h, "gSlot");
}
for(new i = 0; i <= housess; i++)
{
OnPropTextdrawUpdate(1, i);
}
printf("[LOADING] %d houses loaded.", housess);
printf("[LOADING] %d turfs loaded.", turfsss);
}EDIT: Aparent nu merge nici asa, ia-l de aici: https://pastebin.com/XCBA15pQ
Bani pe -
in Ajutor Scripting
Posted
new Cash2[MAX_PLAYERS];