gabyskm96
Membru-
Posts
80 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by gabyskm96
-
am facut asa cum miai zis"PlayerInfo[playerid][pAccount] += 3000;" dar imi da niste erori fi atent: [pawn]C:\DOCUME~1\Gaby\MYDOCU~1\DOWNLO~1\job.pwn(93) : error 017: undefined symbol "PlayerInfo" C:\DOCUME~1\Gaby\MYDOCU~1\DOWNLO~1\job.pwn(93) : warning 215: expression has no effect C:\DOCUME~1\Gaby\MYDOCU~1\DOWNLO~1\job.pwn(93) : error 001: expected token: ";", but found "]" C:\DOCUME~1\Gaby\MYDOCU~1\DOWNLO~1\job.pwn(93) : error 029: invalid expression, assumed zero C:\DOCUME~1\Gaby\MYDOCU~1\DOWNLO~1\job.pwn(93) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn] linile sunt sus.
-
ok.. dar daca nu vreau sa schimb junkbusterul cum se rezolva problema asta ?
-
pai si imi recomanzi un anticheat mai bun ? :smiley:
-
uitati care este problema dupa ce termin turele si intru in ultimu checkpoint trebuie sa imi dea 3000$ dar junkbuster ii ia crezand ca sunt bani din cod.. ce pot face ? [pawn]#include <a_samp> #define COLOR_DARKGOLD 0x808000AA #define COLOR_RED 0xFF0000AA #define COLOR_YELLOW 0xFFFF00AA #define Checkpoint1 -256.0010,-1542.3809,3.9930 #define Checkpoint2 -231.8289,-1467.9810,4.9421 #define Checkpoint3 -193.9747,-1375.2502,4.7856 #define Checkpoint4 -246.0348,-1326.1063,8.9300 #define Checkpoint5 -407.1459,-1371.5518,23.6588 #define Checkpoint6 -564.7697,-1302.4977,22.5511 #define Checkpoint7 -569.0633,-1508.3352,9.1518 new combinejobrunning = 0; new info; forward GivePlayerOneExp(playerid); public OnFilterScriptInit() { AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10); // combine 1 AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10); // combine 2 AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10); // combine 3 info = CreatePickup(1239,1,-366.1941,-1440.3253,25.7266,-1); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/combine", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { SetPlayerCheckpoint(playerid, Checkpoint1, 3.0); CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0); combinejobrunning = 1; GameTextForPlayer(playerid, "~g~You started the job, good luck!", 3000, 3); new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s is now doing the Combine job.", name ); SendClientMessageToAll(COLOR_RED, string); return 1; } SendClientMessage(playerid, COLOR_RED,"You have to be in a truck to start the job"); } if (strcmp("/combineinfo", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You need the harvest the weed."); SendClientMessage(playerid, COLOR_YELLOW, "If you enter the combine, type /combine and a red marker will appear."); SendClientMessage(playerid, COLOR_YELLOW, "Just drive to the markers and you're done."); return 1; } return 0; } public OnPlayerEnterCheckpoint(playerid) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1)) { SetPlayerCheckpoint(playerid, Checkpoint2, 7.0); CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint2)) { SetPlayerCheckpoint(playerid, Checkpoint3, 7.0); CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint3)) { SetPlayerCheckpoint(playerid, Checkpoint4, 7.0); CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint4)) { SetPlayerCheckpoint(playerid, Checkpoint5, 7.0); CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint5)) { SetPlayerCheckpoint(playerid, Checkpoint6, 7.0); CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint6)) { SetPlayerCheckpoint(playerid, Checkpoint7, 7.0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint7)) { GivePlayerMoney(playerid, 3000); GameTextForPlayer(playerid, "~g~You Completed the job, well done!", 3000, 3); SetVehicleToRespawn(2); combinejobrunning = 0; DisablePlayerCheckpoint(playerid); } } } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { SendClientMessage(playerid, COLOR_RED, "You can start the combine-job with /combine"); } return 0; } public OnPlayerExitVehicle(playerid, vehicleid) { if((combinejobrunning) == 1) { combinejobrunning = 0; SendClientMessage(playerid, COLOR_RED, "You left your combine behind, get in again if you want to continue your job."); }else if((combinejobrunning) == 0){ //Nothing } } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == info) { GameTextForPlayer(playerid, "~g~Welcome at the Combine job, use /combineinfo to know more", 3000, 3); } }[/pawn]
-
Scuzati dublul post dar vad ca nimanui nu`i pasa problema :undecided:
-
pune`o in drept cu celelalte.. sa aiba 4 spatii :smiley:
-
Cum as putea schimba ca la jobul farmer sa iti dea castigul in banca ?[pawn] GivePlayerMoney(playerid, 3000); GameTextForPlayer(playerid, "~g~You Completed the job, well done!", 3000, 3); SetVehicleToRespawn(2); combinejobrunning = 0; DisablePlayerCheckpoint(playerid);[/pawn]
-
Baieti cum fac si eu sa ma vad in masina la volan.. pe unele sv e comanda "changeview" ?
-
Rezolvat! Multumesc!! (am facut si eu o cerere la sectiunea cerere script va rog sa va uitati) Si o intrebare cum as putea sa modific pretul pe care il ei la sellprods?
-
Salut Sa:Mp.ro am si eu problema zic eu cu jobul trucker... Problema este ca dupa ce ma urc in tir nu apar alea trei load,buyprod si sellprob .. gamemodu este gf :smiley: si daca dau eu buyprod etc imi apare un text.. vil voi arata in urmatoarea poza de mai jos: screen shot P.S.(jobul trucker este aproape de benzinaria aia de langa ferma) [pawn]} if(IsATruck(newcar)) { format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); SendClientMessage(playerid, COLOR_WHITE, "INFO: You can deliver Products to Businesses."); SendClientMessage(playerid, COLOR_WHITE, "INFO: Commands are /load /buyprods /sellprods"); }[/pawn] [pawn]if(strcmp(cmd, "/load", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); if(tmpcar < 186 || tmpcar > 189) { GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1); return 1; } format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); } return 1; } if(strcmp(cmd, "/buyprods", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); new compcost = 50; if(PlayerToPoint(60.0, playerid, 2787.8,-2436.3,13.7)) { if(IsATruck(tmpcar)) { if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity]) { new amount; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]"); return 1; } amount = strval(tmp); if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Can't buy less then 1 Product or more then 500 !"); return 1; } new check= PlayerHaul[tmpcar][pLoad] + amount; if(check > PlayerHaul[tmpcar][pCapasity]) { format(string, sizeof(string), " You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]); SendClientMessage(playerid, COLOR_GREY, string); return 1; } new cost = amount*compcost; if(GetPlayerMoney(playerid) >= cost) { PlayerHaul[tmpcar][pLoad] += amount; format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); GivePlayerMoney(playerid,-cost); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } else { format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } } else { format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1; } } else { SendClientMessage(playerid, TEAM_GROVE_COLOR, "This Vehicle does not deliver Products."); return 1; } } } return 1; } if(strcmp(cmd, "/sellprods", true) == 0) { new cashmade; new tmpcar; if(IsPlayerConnected(playerid)) { tmpcar = GetPlayerVehicleID(playerid); if(!IsATruck(tmpcar)) { GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1); return 1; } if(PlayerHaul[tmpcar][pLoad] == 0) { GameTextForPlayer(playerid, "~r~Truck is empty, return to the stock house", 5000, 1); format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); return 1;[/pawn] Si app castigul la jobul trucker cum il cresc ?
-
Salut! Am vazut pe mai multe servere ca poti vedea de la volan printro simpla comanda changeview parca cum as putea sa o fac si eu sa imi functioneze ?
-
Macar un tutorial sa imi dati
-
Cum pot sa adaug job-ul farmer in gamemod ca nu il am :smiley: ? imi explicati si mie mai in detaliu va multumesc!
-
bine ca miai zis eu ma uitam pe tutorialele voastre si trebuia doar: FilerScripts , GameModes , ScriptFiles , Plugins , server.cfg , samp.ban :cheesy:
-
Salut eu am 5 npc`uri(boti) pe server si as dori sa il urc pe host.. si intrebarea mea este: trebuie sa urc si folderul npcmodes ? sau doar gamemodul ?
-
Iti multumesc !! :cheesy:
-
Salut am si eu un ceas(mie imi place) care indica si ziua dar nush cum sa le trec corect la mine uneori numai luni sta..sau nu indica ziua corect [pawn]} public settime(){ new hour,minute,second; new string[256]; gettime(hour,minute,second); if (minute <= 9){format(string,25,"%d:0%d",hour,minute);} else {format(string,25,"%d:%d",hour,minute);} TextDrawSetString(Ora,string); // if (minute <= 9){format(string,25,":%d",second);} else {format(string,25,":%d",second);} TextDrawSetString(Secunde,string); // SetWorldTime(hour); new day, month, year; new weekday; getdate(day, month, year); weekday = GetWeekdayNum(day, month, year); if(weekday == 1){TextDrawSetString(Zile,"Luni");} if(weekday == 2){TextDrawSetString(Zile,"Marti");} if(weekday == 3){TextDrawSetString(Zile,"Miercuri");} if(weekday == 4){TextDrawSetString(Zile,"Joi");} if(weekday == 5){TextDrawSetString(Zile,"Vineri");} if(weekday == 6){TextDrawSetString(Zile,"Sambata");} if(weekday == 7){TextDrawSetString(Zile,"Duminica");} return 1; }[/pawn] Asta este ceasul Daca va mai trebuie ceva imi spuneti
-
Burnfire ma mai poti ajuta si pe mine sa rezolv waringurile asta ? :cheesy:
-
tot asa zice.. poate vede alt coleg de al tau si ma ajuta. ms pt tot!!! :smiley:
-
Massari acum da waringurile astea care au mai ramas ( [pawn]C:\DOCUME~1\Gaby\Desktop\SERVER~2\GAMEMO~1\Gdline.pwn(10859) : warning 209: function "JB_OnPlayerConnect" should return a value C:\DOCUME~1\Gaby\Desktop\SERVER~2\GAMEMO~1\Gdline.pwn(11318) : warning 217: loose indentation C:\DOCUME~1\Gaby\Desktop\SERVER~2\GAMEMO~1\Gdline.pwn(11326) : warning 217: loose indentation C:\DOCUME~1\Gaby\Desktop\SERVER~2\GAMEMO~1\Gdline.pwn(34603) : warning 217: loose indentation C:\DOCUME~1\Gaby\Desktop\SERVER~2\GAMEMO~1\Gdline.pwn(34620) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 15540 bytes Code size: 3787600 bytes Data size: 13050036 bytes Stack/heap size: 16384 bytes; estimated max. usage=7344 cells (29376 bytes) Total requirements:16869560 bytes 5 Warnings. [/pawn] Acum iti pun linile: linie 10859[pawn]}[/pawn] linie 11318[pawn] if(AdminDuty[playerid] == 1)[/pawn] linie 11326[pawn]if(PlayerInfo[playerid][pRdeath] == 1)[/pawn] linie 34603[pawn]if(strcmp(cmd, "/reguliadmin", true) == 0 || strcmp(cmd, "/rgad", true) == 0)[/pawn] linie 34620[pawn]if(strcmp(cmd, "/fixveh", true) == 0) // by Cristyan97[/pawn]
-
mai explicit unde? ca tot waringurile alea le da(eu am spus ca sunt incepator :grin:) [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=Includes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #include <A_samp> #include <a_npc> #include <Core> #include <Float> #include <Dini> #include <Time> #include <File> #include <Utils> #include <Morphinc> #include <Rotative> #include <Streamer> #include <progress> #include <zcmd> #include <audio> #include <foreach> #include <JunkBuster> static gTeam[MAX_PLAYERS]; #define COLOR_NICESKY 0x00C2ECFF #define SYNTAX_MESSAGE "Syntax: {FFFFFF}" #define COLOR_VIP 0x4682B4FF #define CardBank2 1342 #define CardBank 1341 #define BANKMENU2 1340 #define BANKMENU 1339[/pawn]
-
Salut cred ca vati saturat de problemele mele:))) dar va rog daca ma mai rezolvati si acum nu va mai deranjez :tongue: am urmatoarele warings si vreau sa le rezolv [pawn]C:\Documents and Settings\Gaby\Desktop\server nou\gamemodes\Gdline.pwn(10857) : warning 209: function "JB_OnPlayerConnect" should return a value C:\Documents and Settings\Gaby\Desktop\server nou\gamemodes\Gdline.pwn(11316) : warning 217: loose indentation C:\Documents and Settings\Gaby\Desktop\server nou\gamemodes\Gdline.pwn(11324) : warning 217: loose indentation C:\Documents and Settings\Gaby\Desktop\server nou\gamemodes\Gdline.pwn(34601) : warning 217: loose indentation C:\Documents and Settings\Gaby\Desktop\server nou\gamemodes\Gdline.pwn(34618) : warning 217: loose indentation C:\Documents and Settings\Gaby\Desktop\server nou\gamemodes\Gdline.pwn(66578) : warning 203: symbol is never used: "weather2" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 15540 bytes Code size: 3787600 bytes Data size: 13050032 bytes Stack/heap size: 16384 bytes; estimated max. usage=7344 cells (29376 bytes) Total requirements:16869556 bytes 6 Warnings. [/pawn] Acum va pun si linile: waring 10857[pawn]}[/pawn] waring 11316[pawn]if(AdminDuty[playerid] == 1)[/pawn] waring 11324[pawn]if(PlayerInfo[playerid][pRdeath] == 1)[/pawn] waring 34601[pawn]if(strcmp(cmd, "/reguliadmin", true) == 0 || strcmp(cmd, "/rgad", true) == 0)[/pawn] waring 34618[pawn]if(strcmp(cmd, "/fixveh", true) == 0) // by Cristyan97[/pawn] waring 66578(linia 66578 nici nu o am in gm eu am doar 66577 de linii) linia 66577 este[pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=The End=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[/pawn] Va rog sa ma rezolvati si pe mn si sa imi explicati cum le rezolv(nu uitati si voi ati fost incepatori!!) )
-
Multumesc Dany asta era trb lam deschis cu alt pawno
-
Salut am si eu gm lui teddy (fostul egammer) pe care lam mai imbunatatit si vreau si eu sa il redeschid si ma impiedica o simpla eroare [pawn]C:\DOCUME~1\Gaby\MYDOCU~1\DOWNLO~1\_WWWFI~1.RO_\GAMEMO~1\xxl.pwn(20) : fatal error 100: cannot read from file: "Rotative" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. [/pawn] Va rog sa ma ajutati si pe mine sa rezolv eroarea Sunt cel mai recunoscator !! :grin:
-
SetPlayerPos(playerid, 1529.5503,-1666.2761,5.7886,268.8874); // Warp the player