Jump to content

Daniel_Dani

Membru
  • Posts

    88
  • Joined

  • Last visited

    Never

Everything posted by Daniel_Dani

  1. Am public OnPlayerEnterRaceCheckpoint(playerid)
  2. Cand compilez primesc acest warning.Inainte sa bag noul streamer 2.6 nu primeam. [pawn](3250) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")[/pawn]
  3. Am o problema.. cand un jucator moare nu il da tot timpul la spital... uneori in da unde a murit. Cum as putea rezolva?
  4. Aceleasi warning [pawn] else if(IsADrugHarvest(newcar))//---- Aceasta este linia. { if(PlayerInfo[playerid][pJob] == 19) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________Ghid fermier de droguri____________"); SendClientMessage(playerid, COLOR_WHITE, "** Fermier droguri ** /startdrugharvest, /stopdrugharvest sau /exit"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________"); TogglePlayerControllable(playerid, 0); } else { SendClientMessage(playerid, COLOR_GREY, " Nu ai cheile vehiculului !"); RemovePlayerFromVehicle(playerid); } }[/pawn] [pawn]else if(IsASmuggleCar(newcar)) { if(PlayerInfo[playerid][pJob] == 20) { SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can smuggle drugs now !"); } else//--------Si aceasta { SendClientMessage(playerid, COLOR_GREY, " Nu ai cheile vehiculului !"); RemovePlayerFromVehicle(playerid); } }[/pawn]
  5. C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(16932) : warning 217: loose indentation C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(16953) : warning 217: loose indentation C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(28083) : warning 219: local variable "idcar" shadows a variable at a preceding level Cum as putea sa le rezolv?
  6. Pana la urma cum se face ca sa mearga bine..? Adica sa ramana wantedu la playerul respectiv nu la IP?
  7. Ai cumva vreao alta solutie cum as putea sa fac sa ramana wantedul dupa ce un jucator da relog si intra iar?
  8. Nu gasesc unde in ce am adaugat eu... daca imi poti spune ti-as fi recunoscator.
  9. Am adaugat in GM astea pentru a salva wantedul dupa relog. Iar cand compilez imi da don't send la pawno.. aveti idee de ce? [pawn]#define USER_WANTED_FOLDER "Users/Wanted/%s" public OnPlayerDisconnect(playerid, reason){ new WantedLevel = GetPlayerWantedLevel(playerid); new string[256]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), USER_WANTED_FOLDER, pName); if(!dini_Exists(string)){ dini_Create(string); dini_Set(string, "WantedLevel", WantedLevel); }else{ dini_Set(string, "WantedLevel", WantedLevel); } return 1; }[/pawn] [pawn]public OnPlayerConnect(playerid){ new string[256]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), USER_WANTED_FOLDER, pName); if(dini_Exists(string)){ new WantedLevel = dini_Set(string, "WantedLevel", WantedLevel); SetPlayerWantedLevel(playerid, WantedLevel); } return 1; }[/pawn]
  10. Perfect! Mersi mult pentru ajutor!
  11. De ce imi da don't send la pawno cand bag comanda asta? [pawn] //----------------------------------[ROB]----------------------------------------------- if(strcmp(cmd, "/rob", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInVehicle(playerid, 295)) { CP[playerid] = 50; SetPlayerCheckpoint(playerid, 1460.9639, -1022.6666, 23.8281, 3.0); SendClientMessage(playerid, COLOR_YELLOW,"Dute cu dubita pana in fata la banca."); } else { SendClientMessage(playerid, COLOR_GREY," Tu nu esti in Duba Roz !"); SendClientMessage(playerid, COLOR_RED,"Duba o gasesti intr-o parcare subterana din Los Santos"); } } } else { SendClientMessage(playerid, COLOR_GREY," Tu nu poti sa jefuiesti banca acum !"); RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(253); return 1; } }[/pawn]
  12. Multumesc Ice. Nu pot face in asa fel incat sa se salveze wantedul corect cand un player iese pe numele lui? Sau sa il dea la inchisoare ca si cum ar fi murit cu wanted?
  13. Am o problema la wanted.Cand dau wanted la un jucator si acela iese de pe server si intra iar cu acelasi ID ii ramane wantedu dar daca intra alt jucator intre timp cu acelasi ID ii da acestuia din urma wantedul. Va rog ajutor.
  14. [pawn]if(strcmp(cmd, "/robbank", true) == 0) { new money; money = random(100000); if(PlayerInfo[playerid][pWantedDeaths] >= 5) { SendClientMessage(playerid, COLOR_GRAD1, "You Have to big wanted level to rob the bank!"); } if(IsPlayerInRangeOfPoint(playerid,2315.2446,-1.0065,26.7422,10.0) == 1) { GivePlayerMoney(playerid, money); //Not SafeGivePlayerMoney SetPlayerWantedLevel(playerid, 5) //You can change 5 } else { SendClientMessage(playerid,COLOR_GRAD1,"You are not at the bank!"); } return 1; }[/pawn] As vrea sa fac ca aceasta comanda sa mearga numai in banca,sa includa 4 playeri adica unul da /robbank ID1 ID2 ID3 ,sa necesite un mp5 in mana pentru a o folosi si sa dea celor care jefuiesc banca wanted 10. Daca se pricepe cineva va rog ajutor.Va multumesc!
  15. Am avut si eu problema cu portile transparente de la distanta so apoi cand le deschizi se baga in pamant. Instaleaza Streamer Plugin v2.6 http://code.google.com/p/samp-streamer-plugin/downloads/list (banuiesc ca stii cum se instaleaza) Apoi le face pe toate din CreateObject in CreateDynamicObject ex: Din pdgate2 = CreateObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869); Il faci pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869); La fel pentru toate obiectele din GM.Si cand vrei sa adaugi alte obiecte faci la fel. O zi buna.
  16. Am o problema... Intru pe joc,ma fac lider la factiunea respectiva si cand dau /placeradar in masina nu zice nimic si nu se intampla nimic.
  17. Ok. Ai tot respectul meu pentru bunavointa de care ai dat dovada.
  18. Merge.A ramas doar un warning [pawn]C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21540) : warning 219: local variable "CarID" shadows a variable at a preceding level[/pawn] Daca nu incurca il las asa. Iti multumesc din suflet pentru ajutor..
  19. La fel.. Nu mai bine decat se te chinui si pe tine imi spui cum sa pun in FS ca acea comanda sa mearga numai la anumite skinuri?
  20. [pawn] C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2485) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2514) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2550) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2551) : error 004: function "SafeGivePlayerWeapon" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2578) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2918) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2929) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2941) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2945) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2957) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2961) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2965) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2969) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2973) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2977) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2981) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2985) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(2997) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3001) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3005) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3009) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3013) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3025) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3029) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3033) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(3045) : error 004: function "PlayerToPoint" is not implemented[/pawn] Off... Nu ar fi mai usor sa pun comanda pentru anumite skinuri si acelea sa fie skinurile de la Factiune Respectiva?
  21. Am scris-o asa: [pawn] if(strcmp(cmd, "/placeradar", true) == 0) { if (IsPlayerInAnyVehicle (playerid)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) new CarID = GetPlayerVehicleID (playerid); if (VehRadarID [CarID] > -1) return 1; new Float: x, Float: y, Float: z, Float: a; GetVehiclePos (CarID, x, y, z); GetVehicleZAngle (CarID, a); SendClientMessage (playerid, COLOR_YELLOW, "Radar has been added successfully."); VehRadarID [CarID] = CreateObject (367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 300.0); AttachObjectToVehicle (VehRadarID [CarID], CarID, 0.2, 0.50, 0.3, 0.0, 0.0, 90.0); for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerInVehicle (i, CarID)) { TextDrawShowForPlayer (i, RadarHud); } } } } else { SendClientMessage(playerid, COLOR_WHITE,"Ne pare rau dar nu faci parte din factiunea ...."); }[/pawn] Si zice: [pawn]C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21538) : error 003: declaration of a local variable must appear in a compound block C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21538) : error 033: array must be indexed (variable "CarID") C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21539) : error 033: array must be indexed (variable "CarID") C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21542) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21543) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21545) : error 033: array must be indexed (variable "CarID") C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21546) : error 033: array must be indexed (variable "CarID") C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21550) : error 035: argument type mismatch (argument 2)[/pawn] Am pus comanda sub /pay cum mi-ai spus :D
  22. Am incercat sa pun si imi da erorile [pawn]C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21534) : error 003: declaration of a local variable must appear in a compound block C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21534) : error 017: undefined symbol "vehid" C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21535) : error 017: undefined symbol "VehRadarID" C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21535) : error 017: undefined symbol "vehid" C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21535) : error 029: invalid expression, assumed zero C:\Documents and Settings\Dani\Desktop\Urban Life 10\gamemodes\ULRP.pwn(21535) : fatal error 107: too many error messages on one line[/pawn]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.