Jump to content

calin1996

Membru
  • Posts

    177
  • Joined

  • Last visited

Everything posted by calin1996

  1. 1. Nu se cer scripturi 2. Daca dadeai un search pe google ori gaseai FS asemanator,ori tutorial Succes
  2. Daca dadeai un search gaseai 100% tutoriale ;)
  3. Am adaugat cateva in Gm ,si la bizuri si case,dar se pare ca la joburi,/buycar si altele nu mai apar,streamerul e icognito 2.6 Am adaugat recent [pawn]Create3DTextLabel("\n Apasa {00FF00}F {FFFFFF}sau {00FF00}ENTER {FFFFFF}pentru a intra/iesi",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1.0,30.0, 0, 1);[/pawn] La inceput unde sunt House si Biz,dar,daca sterg liniile apar toate la normnal,daca nu,apar doar "apasa F sau ENTER" la case si bizuri..
  4. Cum pot face dintr-un dialog LIST alegand unul din iteme,sa-mi deschida alt dialog box??
  5. Am reusit,ms de ajutor dar am gasit si a mers cu [pawn]strins[/pawn]
  6. Posteaza cate o linie de la fiecare tip de eroare
  7. Pai c evezi tu acol e doar inceputu,mai am si alte linii,si linia [pawn]ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "strcat example", string, "Close", "");[/pawn] Sunt puse toate doar ca nu-mi apare.. PAi si la compile nu imi dadea erori daca nu-l aveam??
  8. La compile nu am probleme,dar,cand dau /help imi apare titlul dialogului,si restu pauza,e gol... Linie exemplu: [pawn]new HelpString[1073] strcat( HelpString,":: CONT :: /reguli /login /stats /carstats /changepass /levelup /upgrade /askq");[/pawn] Imagine: Uploaded with ImageShack.us
  9. calin1996

    Misiuni

    Concret,ce doresti??
  10. Nu ma,deci cum e functia: [pawn]if(PlayerInfo(playerid)(pMember) == 12 || if(PlayerInfo(playerid)(pLeader) == 12 || If(PlayerInfo(playerid)(pMember) == 13 || if(PlayerInfo(playerid)(pLeader) == 13)[/pawn] Asa sa fie o enumeratie de asta de Bizuri,sa le adaug un pickup ceva la ele
  11. Cum pot face o enumeratie de bizuri de ex: [pawn]if(biz == 1||biz==2...etc) { SendClientMessage(playerid, COLOR_RED, "Astea sunt biz-uri"); }[/pawn]
  12. calin1996

    /getjob

    Posteaz-o aici sa vedem si noi ca altceva nu putem face doar din spuse...
  13. Cum pot face ca sa apara Create3DTextLabel sub bizuri,sau case,dar sa foloseasca coordonatele din cfg,fara sa pun eu fiecare text la o coordonata separata,sa atasez Create3DTextLabel sub numele bizului/casei?
  14. calin1996

    INCLUDE

    Nu,nici mie n-mi mereg,si le am puse acolo...
  15. Problema,erori: [pawn]D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(57592) : error 029: invalid expression, assumed zero D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(57749) : warning 225: unreachable code D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(57749) : error 029: invalid expression, assumed zero D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(57749) : warning 215: expression has no effect D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(57749) : error 001: expected token: ";", but found "if" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. [/pawn] Linii: [pawn]57592: if(oldkeys == KEY_SECONDARY_ATTACK))[/pawn] [pawn]57749: else if(newkeys == KEY_SECONDARY_ATTACK)[/pawn] /enter pe KEY_SECONDARY_ATTACK: [pawn]if(newkeys == KEY_SECONDARY_ATTACK) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez])) { //printf("Found House :%d",i); if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[hLock] == 0) { SetPlayerVirtualWorld(playerid, i); SetPlayerInterior(playerid,HouseInfo[hInt]); SetPlayerPos(playerid,HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz]); GameTextForPlayer(playerid, "~w~Welcome", 5000, 1); PlayerInfo[playerid][pInt] = HouseInfo[hInt]; PlayerInfo[playerid][pLocal] = i+500; return 1; } else { GameTextForPlayer(playerid, "~r~CLOSED", 5000, 1); return 1; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { //if(PlayerInfo[playerid][pLocal] == 108 || PlayerInfo[playerid][pLocal] == 109 || PlayerInfo[playerid][pLocal] == 110 || PlayerInfo[playerid][pLocal] == 111 || PlayerInfo[playerid][pLocal] == 112) if (PlayerToPoint(3, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ])) { //printf("Found House :%d",i); if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[bEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[bLocked] == 1) { GameTextForPlayer(playerid, "~r~CLOSED", 5000, 1); return 1; } if(i == 6 || i == 7 || i == 8) { OnPlayerEnterFood(playerid, 3) SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 25) { OnPlayerEnterFood(playerid, 2) SetPlayerInterior(playerid,BizzInfo[25][bInterior]); SetPlayerPos(playerid,BizzInfo[25][bExitX],BizzInfo[25][bExitY],BizzInfo[25][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[25][bInterior]; PlayerInfo[playerid][pLocal] = 25+99; SetPlayerVirtualWorld(playerid, 25+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 2) { OnPlayerEnterFood(playerid, 1) SetPlayerInterior(playerid,BizzInfo[2][bInterior]); SetPlayerPos(playerid,BizzInfo[2][bExitX],BizzInfo[2][bExitY],BizzInfo[2][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[2][bInterior]; PlayerInfo[playerid][pLocal] = 2+99; SetPlayerVirtualWorld(playerid, 2+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 24) { SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); return 1; } if(i == 5 || i == 14 || i == 15 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 16 || i == 17 || i == 19 || i == 20 || i == 21 || i == 22 || i == 23) { SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); } SafeGivePlayerMoney(playerid,-BizzInfo[bEntranceCost]); format(string, sizeof(string), "~r~-%d $~n~~w~Use /exit~n~to leave", BizzInfo[bEntranceCost]); BizzInfo[bTill] += BizzInfo[bEntranceCost]; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } if(i == 6 || i == 7 || i == 8) { OnPlayerEnterFood(playerid, 3) SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 25) { OnPlayerEnterFood(playerid, 2) SetPlayerInterior(playerid,BizzInfo[25][bInterior]); SetPlayerPos(playerid,BizzInfo[25][bExitX],BizzInfo[25][bExitY],BizzInfo[25][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[25][bInterior]; PlayerInfo[playerid][pLocal] = 25+99; SetPlayerVirtualWorld(playerid, 25+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 2) { OnPlayerEnterFood(playerid, 1) SetPlayerInterior(playerid,BizzInfo[2][bInterior]); SetPlayerPos(playerid,BizzInfo[2][bExitX],BizzInfo[2][bExitY],BizzInfo[2][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[2][bInterior]; PlayerInfo[playerid][pLocal] = 2+99; SetPlayerVirtualWorld(playerid, 2+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 5 || i == 14 || i == 15 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 16 || i == 17 || i == 19 || i == 20 || i == 21 || i == 22 || i == 23 || i == 24) { SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Use /exit~n~to leave"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed %d to enter", dood, BizzInfo[bEntranceCost], i); printf("%s", string); PayLog(string); return 1; } else { GameTextForPlayer(playerid, "~r~You don't have enough money", 5000, 1); return 1; } } } for(new i = 0; i < sizeof(SBizzInfo); i++) { if (PlayerToPoint(3, playerid,SBizzInfo[sbEntranceX], SBizzInfo[sbEntranceY], SBizzInfo[sbEntranceZ])) { if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[sbEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(SBizzInfo[sbLocked] == 1) { GameTextForPlayer(playerid, "~r~CLOSED", 5000, 1); return 1; } SafeGivePlayerMoney(playerid,-SBizzInfo[sbEntranceCost]); gSpentCash[playerid] = GetPlayerMoney(playerid); SBizzInfo[sbTill] += SBizzInfo[sbEntranceCost]; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed %d To enter %d", dood, SBizzInfo[sbEntranceCost], i); printf("%s", string); PayLog(string); OnPropUpdate(); return 1; } } else { GameTextForPlayer(playerid, "~r~You don't have enough", 5000, 1); return 1; } } } } return 1; }[/pawn] /Exit pe KEY_SECONDARY_ATTACK: [pawn] if(oldkeys == KEY_SECONDARY_ATTACK)) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz])) { if(GetPlayerVirtualWorld(playerid) == i) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 999; SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid,0); if(HouseInfo[hHel] == 1 && HouseInfo[hArm] == 1) { SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid,100.0); return 1; } if(HouseInfo[hHel] == 1) { SetPlayerHealth(playerid,100.0); return 1; } if(HouseInfo[hArm] == 1) { SetPlayerArmour(playerid,100.0); return 1; } } } } for(new i = 0; i < sizeof(BizzInfo); i++) { //printf("Bizz :%d",i); if (PlayerToPoint(3, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ])) { if(GetPlayerVirtualWorld(playerid) == i+99) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]); PlayerInfo[playerid][pLocal] = 999; SetPlayerVirtualWorld(playerid, 0); OnPlayerExitFood(playerid) } } } new carid = GetPlayerVehicleID(playerid); if (IsABus(carid)) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, carid); } if (IsASweeper(carid)) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if(IsAHarvest(carid)) { if (carid != 0) { SetVehicleToRespawn(carid); } if(FarmerPickup[playerid][0] >= 1 && FarmerPickup[playerid][0] <= 22) { FarmerPickup[playerid][0]--; } TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); FarmerVar[playerid] = 0; DisablePlayerRaceCheckpoint(playerid); } if(IsASmuggleCar(carid)) { if(carid != 0) { SetVehicleToRespawn(carid); } TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); SmugglerWork[playerid] = 0; DisablePlayerCheckpoint(playerid); } if(IsAnOwnableCar(carid) && CarInfo[carid][cOwned] == 0) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if(IsPlayerInAnyVehicle(playerid) && !engineOn[GetPlayerVehicleID(playerid)] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if(GetPlayerVehicleID(playerid) >= 112 && GetPlayerVehicleID(playerid) <= 130 || GetPlayerVehicleID(playerid) >= 135 && GetPlayerVehicleID(playerid) <= 154) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } else if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1481.0206,-1771.1138,18.7958); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 999; } else if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563)) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438); } else if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472)) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344); } else if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313)) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344); } else if(NoFuel[playerid] == 1) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); NoFuel[playerid] = 0; } } return 1; }[/pawn] REZOLVAT!! :D
  16. CAre este KEY pt enter sau F? [pawn]if(newkeys == KEY_)[/pawn]
  17. VEzi poate la "angle",la rotatie ai 0,schimba-l
  18. Problema este ca Gm-ul tau este GF edit,si unele functi nu le suporta daca sunt de mai multe ori,vezi pe unde ai modificat ultima data...
  19. Mai este un post tot ceva de genul,aceeasi problema.....
  20. La touter Tp link nu merge,e alta configuratie
  21. BA intelege Serveru ala e facut de Dragomir,de ce tetreci tu daca nici macar un string nu stii sa faci?
  22. Tu crezi ca sta cineva sa-ti mute Gm u de a2viata pe Los Santos??) EDIT: Daca reusesti sa-l pui,sau il lasi la sate,scoate-te de la credite ca nu ai facut nimic sa apari acolo ;)
×
×
  • 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.