DaNNer
Membru-
Posts
13 -
Joined
-
Last visited
Never
DaNNer's Achievements
-
Posteaza aici commanda/comenziile de la Race sistem!
-
Cand intri in Map editor sau MTA map editor si vrei sa faci o poarta intai faci poarta pe pozitai inchis si salvezi coordonatele dupa poarta pe pozitia deschis si salvezi coordonatele dupa cand faci comanda unde ai la /opengate MoveObject (Coordonatele portii pe pozitia deschis) apoi la /closegate MoveObject ( coordonatele pe pozitia inchis)
-
Am un gm si pupa ceva timp de lucrat in el am urmatoarele Warringuri. stiu ca nu afecteaza dar eu am mania de a avea gm-ul curat fara Errors si fara Warrings. C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(18782) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(18782) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(18782) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19476) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19476) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19488) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19488) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19500) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19500) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19500) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19513) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(19513) : warning 202: number of arguments does not match definition C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(48534) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph" C:\Documents and Settings\Rebecca\Desktop\B-Zone\B-zone RPG\gamemodes\GARPG.pwn(45664) : warning 204: symbol is assigned a value that is never used: "roadblocktimer" Majoritatea Warringurilor sunt de la o comanda /crb [pawn]if(strcmp(cmd, "/crb", true) == 0) { if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /crb [iD]"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Baricazi avizibile:"); SendClientMessage(playerid, COLOR_GRAD1, "| 1: Pancarda Mica"); SendClientMessage(playerid, COLOR_GRAD1, "| 2: Parapet"); SendClientMessage(playerid, COLOR_GRAD1, "| 3: Baricada Mare"); SendClientMessage(playerid, COLOR_GRAD1, "| 3: Con"); return 1; } new rb = strval(tmp); if (rb == 1) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateObject(1459,plocx,plocy,plocz,ploca); format(string,sizeof(string),"[Atentie]: Ofiterul %s a montat Baricada(1) pe locul in care se afla, over.",(playerid)); SendRadioMessage(1,COLOR_LIGHTBLUE,string); GameTextForPlayer(playerid,"~w~Baricada ~b~Montata!",3000,1); return 1; } else if (rb == 2) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateObject(978,plocx,plocy,plocz+0.6,ploca); format(string,sizeof(string),"[Atentie]: Ofiterul %s a montat Baricada(2) pe locul in care se afla, over.",(playerid)); SendRadioMessage(1,COLOR_LIGHTBLUE,string); GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1); return 1; } else if (rb == 3) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateObject(981,plocx,plocy,plocz+0.9); format(string,sizeof(string),"[Atentie]: Ofiterul %s a montat Baricada(3) pe locul in care se afla, over.",(playerid)); SendRadioMessage(1,COLOR_LIGHTBLUE,string); GameTextForPlayer(playerid,"~w~Roadblock ~g~Placed!",3000,1); SetPlayerPos(playerid, plocx, plocy+1.3, plocz); return 1; } else if (rb == 4) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateObject(1238,plocx,plocy,plocz+0.2,ploca); format(string,sizeof(string),"[Atentie]: Ofiterul %s a montat Baricada(4) pe locul in care se afla, over.",(playerid)); SendRadioMessage(1,COLOR_LIGHTBLUE,string); GameTextForPlayer(playerid,"~w~Cone ~g~Placed!",3000,1); return 1; } /*else if (rb == 4) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateRoadblock(1425,plocx,plocy,plocz+0.6,ploca); format(string,sizeof(string),"[HQ]: Officer %s has placed a Detour Sign(4) at his position, over.",(playerid)); SendRadioMessage(1,COLOR_BLUE,string); GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1); return 1; } else if (rb == 5) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateRoadblock(3265,plocx,plocy,plocz-0.5,ploca); format(string,sizeof(string),"[HQ]: Officer %s has placed a Will Be Sign(5) at his position, over.",(playerid)); SendRadioMessage(1,COLOR_BLUE,string); GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1); return 1; } else if (rb == 6) { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateRoadblock(3091,plocx,plocy,plocz+0.5,ploca+180); format(string,sizeof(string),"[HQ]: Officer %s has placed a Line Closed Sign(6) at his position, over.",(playerid)); SendRadioMessage(1,COLOR_BLUE,string); GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1); return 1; }*/ } return 1; } else if (strcmp(cmd,"/rrb",true) == 0) { if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid)) { DeleteClosestRoadblock(playerid); format(string,sizeof(string),"[HQ]: Officer %s has removed a Roadblock, over.",(playerid)); SendRadioMessage(1,COLOR_LIGHTBLUE,string); GameTextForPlayer(playerid,"~w~Roadblock ~r~Removed!",3000,1); } return 1; } else if (strcmp(cmd,"/rrball",true) == 0) { if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid)) { if(PlayerInfo[playerid][pRank] >= 6 || IsPlayerAdmin(playerid)) // This being the default Chief rank in LA-RP change if neccesary. { DeleteAllRoadblocks(playerid); format(string,sizeof(string),"[HQ]: Officer %s has removed all Roadblocks in the area, over.",(playerid)); SendRadioMessage(1,COLOR_LIGHTBLUE,string); GameTextForPlayer(playerid,"~b~All ~w~Roadblocks ~r~Removed!",3000,1); } } return 1; }[/pawn] Iar primul Warring este de al coamnda /asellcar [pawn]if(!strcmp(cmdtext, "/asellcar", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SCM(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1339) { new vehid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, playername, sizeof(playername)); new Float:x,Float:y,Float:z; new Float:a; CarInfo[vehid][cOwned] = 0; strmid(CarInfo[vehid][cOwner], "Dealership", 0, strlen("Dealership"), 999); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); GameTextForPlayer(playerid, "~w~You have admin sold the vehicle", 10000, 3); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, a); CarInfo[vehid][cLocationx] = x; CarInfo[vehid][cLocationy] = y; CarInfo[vehid][cLocationz] = z; CarInfo[vehid][cAngle] = a; RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); OnPropUpdate(); DestroyVehicle(vehid); CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle]); format(string, sizeof(string), "[AdmWarning]: %s a folosit comanda /asellcar.",playername); ABroadCast(COLOR_LIGHTRED,string, 5); return 1; } else { SCM(playerid, COLOR_GREY, " You're not authorized to use that command !"); return 1; } } return 1; }[/pawn] Mai exact de la linia [pawn]CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle]);[/pawn]
-
Folositor tutorial pentru incepatori. +1 pozitiv.
-
Am scanat imi gaseste MISSING BRACKET: The } bracket on line 14247 does not have a pair! Am cautat linia dar nu este nici o acolada la acea linie, am luat toata chestia de acolo paote e in jurlul liniei dar nu cred. [pawn]giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(1.0, playerid, giveplayerid)) { if(KnockedDown[giveplayerid] != 1) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can not swing at yourself."); return 1; } if(PlayerInfo[giveplayerid][pSex] == 2) { SendClientMessage(playerid, COLOR_GREY, "Are you sure you want to knock down a woman?"); return 1; } if(IsPlayerInAnyVehicle(giveplayerid)) { return 1; } new giveplayername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername)); new rands = random(2)+1; format(string, sizeof(string), "* %s swings at %s and tries to knock him out.", sendername, giveplayername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ApplyAnimation(playerid,"FIGHT_D","FightD_3",4.0,0,1,1,0,0); if(rands == 1) { TogglePlayerControllable(giveplayerid, 0); ApplyAnimation(giveplayerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); SetTimerEx("ClearKnock", 20000, false, "i", giveplayerid); KnockedDown[giveplayerid] = 1; format(string, sizeof(string), "* %s succeeds to knock him down.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { format(string, sizeof(string), "* %s misses the swing and fails to knock him out.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } return 1; } else { SendClientMessage(playerid, COLOR_GREY, "Player is knocked down already."); } } else { SendClientMessage(playerid, COLOR_GREY, "Player is not near you."); } } } } return 1; } [/pawn] am scanat cu Missing Brackets finder PS: Nu prea are sens sa imi gaseasca aici pentru ca nu am umblat deloc in aceasta zona...
-
Vezi daca ai in GM #include JunkBuster Daca da atunci cum a zis si Darky fa update la Junkbuster.
-
D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3406) : error 004: function "SendIRCMessage" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3428) : error 004: function "SendIRCMessage" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3737) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3749) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3769) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3777) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4340) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4353) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4366) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4379) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4392) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4405) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4417) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4429) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4491) : error 004: function "BroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4514) : error 004: function "SendFamilyMessage" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(4852) : error 004: function "PlayerFixRadio" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(8147) : error 004: function "ABroadCast" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(8441) : error 004: function "PlayerFixRadio" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(8716) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(8727) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(8794) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(8805) : error 004: function "OOCOff" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(9117) : error 054: unmatched closing brace ("}") D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(9837) : error 004: function "ini_GetKey" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(9837) : error 033: array must be indexed (variable "key") Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Am pus totul la loc um era in GM-ul default si tot imi da.
-
Nu aveam nici o eraore si nici un waring inainte sa bag dialogurile... Plus ca dupa gm-ul dupa care am luat dialogurile ( din tutorial imi dadea la fel ca nu am inchis o apranteza dar erau inchise am cautat simbolurile al care imi da eroare si le am si pe gm-ul meu)
-
Ai hostul pe linux si tu ai bagat din pc tot ce era in folderul serverului tau. Ca sa pui un Server pe host Linux te duci pe www.sa-mp.ro la sectiunea download si iei clientul pt server linux. Pui acel client pe host dupa care adaugi pe host peste Serverul de linux adaugat folderele: GameModes , FiltreScripts , ScriptFiles, Plugins . dupa aceea intri in server.cfg de pe host si modifici gamemode0 gmutau 1, filtrescripts ( scri filtrescripturile care le ai pe serverul tau) plugins ( scri plugins-urile care le ai pe serverul tau) Editezi numele serverului, parola rcon, sloturile daca ai mai mult de 50 , adresa web a forumului ( daca ai ) Dupa poti sa ii dai drumul serverului linistit. PS:Vezi ca si din GameControl Panel trebuie sa editezi server.cfg
-
D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(2676) : error 004: function "SetPlayerCriminal" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(2681) : error 004: function "SetPlayerCriminal" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3328) : error 004: function "ClearCrime" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3329) : error 004: function "ClearFishes" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3330) : error 004: function "ClearCooking" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3331) : error 004: function "ClearGroceries" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3332) : error 004: function "ClearMarriage" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3364) : warning 225: unreachable code D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3364) : error 029: invalid expression, assumed zero D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3364) : error 004: function "JoinChannel" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3368) : error 017: undefined symbol "number" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3370) : error 004: function "JoinChannelNr" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3380) : warning 225: unreachable code D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3380) : error 029: invalid expression, assumed zero D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3380) : error 004: function "JoinChannelNr" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3384) : warning 219: local variable "string" shadows a variable at a preceding level D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3390) : error 004: function "SendIRCMessage" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3393) : error 017: undefined symbol "number" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3394) : error 017: undefined symbol "number" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3399) : error 017: undefined symbol "number" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3406) : error 017: undefined symbol "number" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3409) : error 017: undefined symbol "number" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3412) : error 004: function "SendIRCMessage" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3417) : warning 225: unreachable code D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3417) : error 029: invalid expression, assumed zero D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3417) : error 004: function "ClearCK" is not implemented D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3419) : warning 219: local variable "string" shadows a variable at a preceding level D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3421) : error 017: undefined symbol "ck" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3422) : error 017: undefined symbol "ck" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3423) : error 017: undefined symbol "ck" D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3428) : warning 225: unreachable code D:\Jocuri\Scripting\DaNNer GM\gamemodes\larp.pwn(3428) : error 029: invalid expression, assumed zero Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Am cautat Cu Perl daca am vreo { ne inchisa si nu am nici una dar imi da aceste erori si waringuri. Tin sa mentionez ca am bagat Login si Register cu Dialog ( Dupa tutorialul facut de Ice aici pe forum )
-
Multumesc, am gasit, nu era nici o coordonata bagata.
-
Am un Gamemod simplu RP, am bagat comanda de /respawn. Dupa ce dau /makeleader imi seteaza liderul iar dupa respawn ma da tot la spawn normal nu la cel al factiunii. Nu este problema la comanda /respawn pentru ca si atunci cand dau /sethp ID 0 tot la spawn normal ma da.