Jump to content

Darksnow

Membru
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by Darksnow

  1. Sal baieti,nu vreau sa va innebunesc cu o chestie de asta tampita,dar eu nu ma pricep si nu stiu cum sa fac,deci cnad intru intr-o casa si incerc sa dau /exit nu merge deloc,raman blocat acolo,de ce? Aici este codul : [pawn] if(strcmp(cmd, "/exit", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { //printf("House :%d",i); if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz])) { if(HouseEntered[playerid] == i) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid,0); HouseEntered[playerid] = 255; if(HouseInfo[hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } return 1; } } } [/pawn]
  2. Sal baieti,folosesc si eu editorul ala map construction si am importat gm meu si am sters niste chestii pe aici,dar mai departe nu am idee ce sa fac,adica stiu a trebuie sa dau pe show code si etc sa iau codu de acolo sa-l pun in gm la OnPlayerConnect alea cu remove si OnGameModeInIt alea cu Create,dar eu vreau doar sa sterg acele obiecte si eu daca iau codu si il bag in gm,nu merge si ar putea sa-mi dea si erori,cum fac sa sterg acele obiecte si sa le salvez in asa fel incat sa ma conectez la server sa nu mai apara? Voi ce folositi sa stergeti obiectele si cum le importati la gm?
  3. REZOLVAT
  4. Salut baieti,am si eu 4 erori la gamemodul meu dar nu inteleg cum sa le rezolv,adica stiu ca are treaba cu niste acolade,virgule si etc,dar nu-mi dau seama unde sa le pun,nu sunt scripter,doar incep sa invat si eu,m-am uitat peste tot la ce inseamna fiecare eroare dar tot nu-mi dau seama unde sa ma uit si dupa ce,ma puteti ajuta ? Astea sunt erorile : [pawn] SGMZ.pwn(6674) : error 002: only a single statement (or expression) can follow each "case" SGMZ.pwn(6674) : error 029: invalid expression, assumed zero SGMZ.pwn(6674) : warning 215: expression has no effect SGMZ.pwn(6674) : error 001: expected token: ";", but found "]" SGMZ.pwn(6674) : fatal error 107: too many error messages on one line[/pawn] Aici este linia 6674,dar eroare poate sa fie mai sus sau mai jos,chiar n-am habar,incerc sa invat din greseli,totu are un inceput : [pawn]BusrouteWest[playerid][0]++;[/pawn] Mai jos am pus ce se afla de mai sus pana jos la sfarsit : [pawn] [6554] //BusrouteEast[playerid][0] = 0; [6555] GivePlayerCash(playerid, 47); [6556] } [6557] PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); [6558] for (new i=0; i<=MAX_PLAYERS; i++) [6559] { [6560] if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == BusrouteEast[playerid][1]) [6561] { [6562] if (BusrouteEast[0] != 0) GameTextForPlayer(i, string, 10000, 3); [6563] else GameTextForPlayer(i, string2, 10000, 3); [6564] } [6565] } [6566] GivePlayerCash(playerid, 3); [6567] return 1; [6568] } [6569] } [6570] else if (BusrouteWest[playerid][0] != 0) [6571] { [6572] if (IsPlayerInAnyVehicle(playerid)) [6573] { [6574] new nextstop[64]; [6575] BusrouteEast[playerid][0] = 0; [6576] switch(BusrouteWest[playerid][0]) [6577] { [6578] case 1: [6579] { [6580] nextstop = "Alhambra"; [6581] SetPlayerCheckpoint(playerid, 1826.8738,-1634.5306,13.5588, 5.0); [6582] AdvertiseToPlayersAtBusStop(1826.8738,-1634.5306,13.5588, 1); [6583] } [6584] case 2: [6585] { [6586] nextstop = "Glen Park"; [6587] SetPlayerCheckpoint(playerid, 1856.7260,-1211.7167,20.3898, 5.0); [6588] AdvertiseToPlayersAtBusStop(1856.7260,-1211.7167,20.3898, 1); [6589] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6590] TogglePlayerControllable(playerid, 0); [6591] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6592] } [6593] case 3: [6594] { [6595] nextstop = "Vinewood Burger"; [6596] PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); [6597] SetPlayerCheckpoint(playerid, 1208.0479,-929.9481,42.9049, 5.0); [6598] AdvertiseToPlayersAtBusStop(1208.0479,-929.9481,42.9049, 1); [6599] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6600] TogglePlayerControllable(playerid, 0); [6601] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6602] } [6603] case 4: [6604] { [6605] nextstop = "Vice Theater"; [6606] SetPlayerCheckpoint(playerid, 1119.0096,-1137.8805,23.7597, 5.0); [6607] AdvertiseToPlayersAtBusStop(1119.0096,-1137.8805,23.7597, 1); [6608] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6609] TogglePlayerControllable(playerid, 0); [6610] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6611] } [6612] case 5: [6613] { [6614] nextstop = "Bank"; [6615] SetPlayerCheckpoint(playerid, 1443.0234,-1028.7131,23.8281, 5.0); [6616] AdvertiseToPlayersAtBusStop(1443.0234,-1028.7131,23.8281, 1); [6617] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6618] TogglePlayerControllable(playerid, 0); [6619] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6620] } [6621] case 6: [6622] { [6623] nextstop = "Rodeo"; [6624] SetPlayerCheckpoint(playerid, 526.6218,-1480.9631,14.5567, 5.0); [6625] AdvertiseToPlayersAtBusStop(526.6218,-1480.9631,14.5567, 1); [6626] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6627] TogglePlayerControllable(playerid, 0); [6628] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6629] } [6630] case 7: [6631] { [6632] nextstop = "Sana Maria Beach"; [6633] SetPlayerCheckpoint(playerid, 443.9078,-1724.8008,10.0896, 5.0); [6634] AdvertiseToPlayersAtBusStop(443.9078,-1724.8008,10.0896, 1); [6635] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6636] TogglePlayerControllable(playerid, 0); [6637] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6638] } [6639] case 8: [6640] { [6641] nextstop = "Verona Beach"; [6642] SetPlayerCheckpoint(playerid, 836.2728,-1788.8121,13.9260, 5.0); [6643] AdvertiseToPlayersAtBusStop(836.2728,-1788.8121,13.9260, 1); [6644] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6645] TogglePlayerControllable(playerid, 0); [6646] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6647] } [6648] case 9: [6649] { [6650] nextstop = "Pershing Square"; [6651] SetPlayerCheckpoint(playerid, 1508.7136,-1735.5184,13.4921, 5.0); [6652] AdvertiseToPlayersAtBusStop(1508.7136,-1735.5184,13.4921, 1); [6653] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6654] TogglePlayerControllable(playerid, 0); [6655] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6656] } [6657] case 10: [6658] { [6659] nextstop = "Bus Station"; [6660] SetPlayerCheckpoint(playerid, 1203.5101,-1833.5771,13.4946, 5.0); [6661] AdvertiseToPlayersAtBusStop(1203.5101,-1833.5771,13.4946, 1); [6662] SetTimerEx("busroutestoptimer", 10000, false, "i", playerid); [6663] TogglePlayerControllable(playerid, 0); [6664] SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Trebuie sa astepti 10 secunde."); [6665] } [6666] case 11: [6667] { [6668] nextstop = "end"; [6669] TogglePlayerControllable(playerid, 0); [6670] SendClientMessage(playerid, COLOR_YELLOW, "Ruta Autobuzului terminata, foloseste /starteast or /startwest pentru o noau ruta."); [6671] SendClientMessage(playerid, COLOR_YELLOW, "Foloseste /exit sa iesi din autobuz."); [6672] DisablePlayerCheckpoint(playerid); [6673] } [6674] BusrouteWest[playerid][0]++; [6675] if (strcmp(nextstop, "end", true) != 0) [6676] { [6677] format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~r~$3 Bonus~n~~n~~g~Urmatoarea Oprire: %s", nextstop"); [6678] format(string2, sizeof(string2), "~n~~n~~n~~n~~n~~n~~n~~g~Urmatoarea Oprire: %s", nextstop"); [6679] } [6680] else [6681] { [6682] string = "~g~Sfarsitul Rutei~n~~n~~r~$50 bonus~n~~n~~w~/startwest sa continui ruta"); [6683] string2 = "~n~~g~Sfarsitul Rutei~n~~n~~w~Iesi din autobuz sau asteapta urmatoarea ruta"); [6684] //BusrouteWest[playerid][0] = 0; [6685] GivePlayerCash(playerid, 47); [6686] } [6687] PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); [6688] for (new i=0; i<=MAX_PLAYERS; i++) [6689] { [6690] if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == BusrouteWest[playerid][1]) [6691] { [6692] if (BusrouteWest[0] != 0) GameTextForPlayer(i, string, 10000, 3); [6693] else GameTextForPlayer(i, string2, 10000, 3); [6694] } [6695] } [6696] GivePlayerCash(playerid, 3); [6697] return 1; [6698] } [6699] } [6700] if (BusShowLocationC[playerid] == 1) [6701] { [6702] DisablePlayerCheckpoint(playerid); [6703] BusShowLocationC[playerid] = 0; [6704] return 1; [6705] } [6706] if(FarmerVar[playerid] == 1) [6707] { [6708] if (IsPlayerInAnyVehicle(playerid)) [6709] { [6710] new carid = GetPlayerVehicleID(playerid); [6711] new cash; [6712] cash = 1000; [6713] if(IsAHarvest(carid)) [6714] { [6715] switch(FarmerPickup[playerid][0]) [6716] { [6717] case 0: [6718] { [6719] SetPlayerCheckpoint(playerid, -205.9348,-1332.2749,10.4056, 5.0); [6720] if(JustStarted[playerid] != 0) [6721] { [6722] JustStarted[playerid] = 0; [6723] } [6724] } [6725] case 1: [6726] { [6727] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6728] if(JustStarted[playerid] != 0) [6729] { [6730] JustStarted[playerid] = 0; [6731] } [6732] } [6733] case 2: [6734] { [6735] if(JustStarted[playerid] != 1) [6736] { [6737] GivePlayerCash(playerid,1000); [6738] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6739] GameTextForPlayer(playerid, string, 5000, 1); [6740] } [6741] else [6742] { [6743] JustStarted[playerid] = 0; [6744] } [6745] SetPlayerCheckpoint(playerid, -548.5396,-1329.0653,19.6210, 5.0); [6746] } [6747] case 3: [6748] { [6749] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6750] if(JustStarted[playerid] != 0) [6751] { [6752] JustStarted[playerid] = 0; [6753] } [6754] } [6755] case 4: [6756] { [6757] if(JustStarted[playerid] != 1) [6758] { [6759] GivePlayerCash(playerid,1000); [6760] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6761] GameTextForPlayer(playerid, string, 5000, 1); [6762] } [6763] else [6764] { [6765] JustStarted[playerid] = 0; [6766] } [6767] SetPlayerCheckpoint(playerid, -370.9486,-1281.1089,29.8698, 5.0); [6768] } [6769] case 5: [6770] { [6771] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6772] if(JustStarted[playerid] != 0) [6773] { [6774] JustStarted[playerid] = 0; [6775] } [6776] } [6777] case 6: [6778] { [6779] if(JustStarted[playerid] != 1) [6780] { [6781] GivePlayerCash(playerid,1000); [6782] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6783] GameTextForPlayer(playerid, string, 5000, 1); [6784] } [6785] else [6786] { [6787] JustStarted[playerid] = 0; [6788] } [6789] SetPlayerCheckpoint(playerid, -258.3272,-1387.9211,10.1292, 5.0); [6790] } [6791] case 7: [6792] { [6793] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6794] if(JustStarted[playerid] != 0) [6795] { [6796] JustStarted[playerid] = 0; [6797] } [6898] } [6899] case 8: [6900] { [6901] if(JustStarted[playerid] != 1) [6902] { [6903] GivePlayerCash(playerid,1000); [6904] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6905] GameTextForPlayer(playerid, string, 5000, 1); [6906] } [6907] else [6909] { [6910] JustStarted[playerid] = 0; [6911] } [6912] SetPlayerCheckpoint(playerid, -288.8517,-1385.0117,9.8957, 5.0); [6913] } [6914] case 9: [6915] { [6916] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6917] if(JustStarted[playerid] != 0) [6918] { [6919] JustStarted[playerid] = 0; [6920] } [6921] } [6922] case 10: [6923] { [6924] if(JustStarted[playerid] != 1) [6925] { [6926] GivePlayerCash(playerid,1000); [6927] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6928] GameTextForPlayer(playerid, string, 5000, 1); [6929] } [6930] else [6931] { [6932] JustStarted[playerid] = 0; [6933] } [6934] SetPlayerCheckpoint(playerid, -283.1325,-1338.2822,7.4280, 5.0); [6935] } [6936] case 11: [6937] { [6938] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6939] if(JustStarted[playerid] != 0) [6940] { [6941] JustStarted[playerid] = 0; [6942] } [6943] } [6944] case 12: [6945] { [6946] if(JustStarted[playerid] != 1) [6947] { [6948] GivePlayerCash(playerid,1000); [6949] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6950] GameTextForPlayer(playerid, string, 5000, 1); [6951] } [6952] else [6953] { [6954] JustStarted[playerid] = 0; [6955] } [6956] SetPlayerCheckpoint(playerid, -224.5992,-1509.1902,7.4473, 5.0); [6957] } [6958] case 13: [6959] { [6960] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6961] if(JustStarted[playerid] != 0) [6962] { [6963] JustStarted[playerid] = 0; [6964] } [6965] } [6966] case 14: [6967] { [6968] if(JustStarted[playerid] != 1) [6969] { [6970] GivePlayerCash(playerid,1000); [6971] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6972] GameTextForPlayer(playerid, string, 5000, 1); [6973] } [6974] else [6975] { [6976] JustStarted[playerid] = 0; [6977] } [6978] SetPlayerCheckpoint(playerid, -247.2859,-1528.8744,6.5904, 5.0); [6979] } [6980] case 15: [6981] { [6982] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [6983] if(JustStarted[playerid] != 0) [6984] { [6985] JustStarted[playerid] = 0; [6986] } [6987] } [6988] case 16: [6989] { [6990] if(JustStarted[playerid] != 1) [6991] { [6992] GivePlayerCash(playerid,1000); [6993] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [6994] GameTextForPlayer(playerid, string, 5000, 1); [6995] } [6996] else [6997] { [6998] JustStarted[playerid] = 0; [6999] } [7000] SetPlayerCheckpoint(playerid, -283.9610,-1549.7180,6.4975, 5.0); [7001] } [7002] case 17: [7003] { [7004] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [7005] if(JustStarted[playerid] != 0) [7006] { [7007] JustStarted[playerid] = 0; [7008] } [7009] } [7010] case 18: [7011] { [7012] if(JustStarted[playerid] != 1) [7013] { [7014] GivePlayerCash(playerid,1000); [7015] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [7016] GameTextForPlayer(playerid, string, 5000, 1); [7017] } [7018] else [7019] { [7020] JustStarted[playerid] = 0; [7021] } [7022] SetPlayerCheckpoint(playerid, -431.6107,-1334.0961,28.6561, 5.0); [7023] } [7024] case 19: [7025] { [7026] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [7027] if(JustStarted[playerid] != 0) [7028] { [7029] JustStarted[playerid] = 0; [7030] } [7031] } [7032] case 20: [7033] { [7034] if(JustStarted[playerid] != 1) [7035] { [7036] GivePlayerCash(playerid,1000); [7037] format(string, sizeof(string), "~w~Ai primit pe transport~n~~g~$%d",cash); [7038] GameTextForPlayer(playerid, string, 5000, 1); [7039] } [7040] else [7041] { [7042] JustStarted[playerid] = 0; [7043] } [7044] SetPlayerCheckpoint(playerid, -476.4104,-1391.6769,20.4733, 5.0); [7045] } [7046] case 21: [7047] { [7048] SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); [7049] if(JustStarted[playerid] != 0) [7050] { [7051] JustStarted[playerid] = 0; [7052] } [7053] } [7054] case 22: [7055] { [7056] DisablePlayerCheckpoint(playerid); [7057] TogglePlayerControllable(playerid, 0); [7058] GameTextForPlayer(playerid, "~w~Foloseste /exit pentru a termina recolta~n~~r~Bonus 100$", 5000, 1); [7059] GivePlayerCash(playerid, 100); [7060] } [7061] } [7062] FarmerPickup[playerid][0]++; [7063] PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); [7064] } [7065] } [7066] return 1; [7067] } [/pawn] Pana raspunde cineva,o sa incerc sa rezolv eu,dar mie ca fac alte erori,totusi incerc,astept si de la voi sa vad unde trebuie sa pun.
×
×
  • 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.