Jump to content

Gawitkkk

Membru
  • Posts

    235
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Gawitkkk

  1. Tot nu am reusit sa ii dau de cap..
  2. Tare greu era sa dai mai multa atentie, ti-ai fii dat seama si singur.. In loc de: public OnPlayerEnterCheckpoint(playerid) { new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0); if (cpid == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0); if (cpid2 == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0); if (cpid3 == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0); if (cpid4 == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0); if (cpid5 == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0); if (cpid6 == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0); if (cpid7 == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } return 1; } Pune: public OnPlayerEnterCheckpoint(playerid) { new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0); if (cpid == 1) { DisablePlayerCheckpoint(playerid); PlayerInfo[giveplayerid][StuntPoint] +=20; GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3); } return 1; }
  3. Salut, mai mult ca sigur nu ai editat datele de conectare la mysql. Modifica: #define SQL_HOST "localhost" #define SQL_USER "root" #define SQL_PASS "" #define SQL_DB "blown" Si la database pune numele cum ai tu trecut pe localhost sau pe host.
  4. Nick: Gawitkkk Problema: MoveObject, porti miscatoare. Erori / warnings: - Lini/script: - Ai incercat sa rezolvi singur ?: Da. Salut tuturor, am incercat sa fac un moveobject (portile de la intrare/iesire) la Police Departament din LV, unde este LVPD insa tot primesc niste erori si nu stiu cum sa le fac. Mai o problema, nu stiu cum sa fac sa se deschida de pe h, cred ca stiti la ce ma refer.
  5. Gawitkkk

    Paint Jobs

    Daca este vorba de masina personala, iti voi explica eu cum sa faci. Indiferent daca este MySQL sau .ini trebuie sa ai un "tabel" unde sa apara masinile. CarID: 1 Model: 411 Color1: 0 Color2: 3 Price: 1 Owner: Boss position etc. Trebuie sa ai un model de update si sa isi dea save la masina, trebuie actualzata comanda carcolor si sistemul de salvare a masinilor. Daca doresti imi poti da un PM si iti voi da id-ul meu de messenger si te voi ajuta cu sistemul.
  6. Am reparat problema, trebuia sa adaug la EXAM_Final doar UPDATE(playerid, pCarLicx);. Multumesc WopsS, daca nu erai tu nici nu imi trecea prin gand, ai + la reputatie.
  7. Am facut asa insa tot nu merge.
  8. In GameMode vei avea ceva de genu: public EsteManager(playerid) { if(IsPlayerConnected(playerid)) { new nume[512]; GetPlayerName(playerid, nume, sizeof(nume)); // Creator ! if((strcmp(nume, "George12", true) == 0) || (strcmp(nume, "Nume1", true) == 0) || (strcmp(nume, "Nume2", true) == 0) || (strcmp(nume, "Nume3", true) ==0)) { return 1; } } return 0; } Inlocuieste toate numele cu nick-ul tau pe care il folosesti in joc. Enjoy!
  9. Nick: Gawitkkk Problema: Salut tuturor, recent am schimbat sistemul de DMV si dupa ce am terminat testul si dau relog nu mai am permisul, stiu ca este ceva legat de MySQL.. Erori / warnings: - Lini/script: - Ai incercat sa rezolvi singur ?: Da. P.S Nu prea stiu eu cum e cu topicurile pe aici, imi pare rau daca am facut o greseala si nu am respectat ceva. Vechea comanda de exam: if(strcmp(cmd, "/exam", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pBoatLic] == 0) { if(dmvtime == 0) { if(PlayerToPoint(3.0,playerid,937.5846,-1739.2441,13.5469)) { if(GetPlayerCash(playerid) >= 5000) {} else return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}DMV: {FFFFFF}You need $5,000!"); if(!IsVehicleOccupied(boatsi)) PutPlayerInVehicle(playerid, boatsi, 0); else if(!IsVehicleOccupied(boatsi1)) PutPlayerInVehicle(playerid, boatsi1, 0); else { SendClientMessage(playerid, COLOR_WHITE, "{0099FF}Info: {FFFFFF}All the DMV boats are occupied!"); return 1; } TakingLesson[playerid] = 1; SetPlayerRaceCheckpoint(playerid,3,418.4089,-1956.2709,-0.1005, 401.8729,-2021.8424,-0.2336,7); CP[playerid] = 320; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_FADE1, "{ee5555}DMV: {a9c4e4}You'll get taxed for $5,000 if you finish the test."); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_FADE1, "{ee5555}DMV: {a9c4e4}If you want to finish the test, sail the boat into the checkpoints."); return 1; } } else { SendClientMessage(playerid, 0xee5555FF, "We can't find any instructor. Wait 5 more seconds please."); return 1; } } if(PlayerInfo[playerid][pFlyLic] == 0) { if(dmvtime == 0) { if(PlayerToPoint(3.0,playerid,1957.1649,-2183.6143,13.5469)) { if(GetPlayerCash(playerid) >= 5000) {} else return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}DMV: {FFFFFF}You need $5,000!"); if(!IsVehicleOccupied(planesi)) PutPlayerInVehicle(playerid, planesi, 0); else if(!IsVehicleOccupied(planesi1)) PutPlayerInVehicle(playerid, planesi1, 0); else { SendClientMessage(playerid, COLOR_WHITE, "{0099FF}Info: {FFFFFF}All the DMV planes are occupied!"); return 1; } TakingLesson[playerid] = 1; SetPlayerRaceCheckpoint(playerid,3,1570.0110,-2593.5493,14.0566, 1789.3186,-2593.9263,20.4397,10); CP[playerid] = 300; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_FADE1, "{ee5555}DMV: {a9c4e4}You'll get taxed for $5,000 if you finish the test."); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_FADE1, "{ee5555}DMV: {a9c4e4}If you want to finish the test, sail the boat into the checkpoints."); return 1; } } else { SendClientMessage(playerid, 0xee5555FF, "We can't find any instructor. Wait 5 more seconds please."); return 1; } } if(PlayerInfo[playerid][pCarLic] == 0) { if(dmvtime == 0) { if(PlayerToPoint(3.0,playerid, 937.4717,-1739.2224,13.5469)) { if(GetPlayerCash(playerid) >= 5000) {} else return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}DMV: {FFFFFF}You need $5,000!"); dmvtime = 5; SetPlayerPos(playerid, 360.3414,197.9407,1014.1879); SetPlayerFacingAngle(playerid, 357.9603); ApplyAnimation(playerid,"MISC","SEAT_LR",4.1,0,0,0,1,1,1); DMVTime[playerid] = 1; TogglePlayerControllable(playerid, 0); SetPlayerInterior(playerid, 3); TakingLesson[playerid] = 1; return 1; } } else { SendClientMessage(playerid, 0xee5555FF, "We can't find any instructor. Wait 5 more seconds please."); return 1; } } } return 1; } Actuala comanda de exam: if(strcmp(cmd, "/exam", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(2.0,playerid,1637.6001,-2177.4355,13.5799)) { if(PlayerInfo[playerid][pCarLic] == 0) { new bool: CarInUse[CAR_AMOUNT]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerInAnyVehicle(i)) { CarInUse[GetPlayerVehicleID(i)] = true; } } if(PlayerInfo[playerid][pCarLic] > 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your driving license is still suspended."); return 1; } if(GetPlayerCash(playerid) < 5000) { SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You don't have enough money."); return 1; } if(!CarInUse[examcar1]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar1, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar2]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar2, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar3]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar3, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar4]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar4, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar5]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar5, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar6]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar6, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else { SendClientMessage(playerid, COLOR_LIGHTRED, "* Can't start the test right now. No exam cars available."); } } else { SendClientMessage(playerid, COLOR_LIGHTRED, "You already have a driving license."); return 1; } } } return 1; } [if(strcmp(cmd, "/exam", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(2.0,playerid,1637.6001,-2177.4355,13.5799)) { if(PlayerInfo[playerid][pCarLic] == 0) { new bool: CarInUse[CAR_AMOUNT]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerInAnyVehicle(i)) { CarInUse[GetPlayerVehicleID(i)] = true; } } if(PlayerInfo[playerid][pCarLic] > 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your driving license is still suspended."); return 1; } if(GetPlayerCash(playerid) < 5000) { SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You don't have enough money."); return 1; } if(!CarInUse[examcar1]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar1, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar2]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar2, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar3]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar3, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar4]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar4, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar5]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar5, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else if(!CarInUse[examcar6]) { CP[playerid] = 1000; TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, examcar6, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use /engine to start the engine and follow the checkpoints."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Don't leave the car, you will fail the test."); SetPlayerRaceCheckpoint(playerid, 0,1642.69,-2192.15,14.89,1477.06,-2191.92,14.82, 5.0); } else { SendClientMessage(playerid, COLOR_LIGHTRED, "* Can't start the test right now. No exam cars available."); } } else { SendClientMessage(playerid, COLOR_LIGHTRED, "You already have a driving license."); return 1; } } } return 1; }
  10. Salut b?ie?i, am ?i eu o problem?, acceia fiind compilarea... Îmi d? urm?toarea eroare: D:\Jocuri\GTA - San Andreas\SA-MP\GameMode\ExcessRP\gamemodes\excessrp.pwn(12316) : error 047: array sizes do not match, or destination array is too small Eroarea îmi d? la urm?toarea linie: else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "The Tattaglia Family"; }
×
×
  • 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.