Jump to content

Sancky

Membru
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by Sancky

  1. disponibil.
  2. verifica pluginurile, poate incerci sa apelezi o nativa a unui plugin care nu s-a incarcat, poti baga si crashdetect ca sa vezi exact care e problema.
  3. i won't start now to teach you the basics of programming. you can read this: https://github.com/pawn-lang/compiler/blob/master/doc/pawn-lang.pdf https://wiki.alliedmods.net/Pawn_tutorial
  4. i already said, if you have an size of 3, you will have access only to 0, 1 and 2 because the indexes are starting from 0...
  5. because you are trying to access invalid indexes from that array somewhere, but the array sizes are how they should be, just don't access invalid indexes, with size 3 you have access only to 0, 1, 2.
  6. you won't get an out of bounds error if you put 3... , also what compiler version do you use?
  7. no, because you initialised 3 indexes, you can also just let the dimension empty [] and the compiler will put the right size for it.
  8. Float:raceCheckpoints[MAX_RACE_CHECKPOINTS][6] you need to look here, this is an 2D (2 dimensions) array, first dimension is [MAX_RACE_CHECKPOINTS] and second dimension is [6], you need to replace [6] with [3] because you use only 3 indexes of that dimension in your array, or you can let the compiler do the job by just removing 6 and let the dimension empty -> []
  9. you can replace the size with 3 at the 2nd dimension if you don't need 6.
  10. because you have an size of 6 at the 2nd dimension and you initialise only 3
  11. am impresia ca sunteti prosti si vreti sa va si etalati "cunostintele"
  12. nu mg asa, la ultima valoare din array nu trb pus nimic, nu inteleg de unde scoateti prostiile astea, in + de asta deja a fost ajutat de cineva.
  13. no offense, but your script is a completely mess and doesn't have any logic.
  14. your race seems incomplete.
  15. well, you have there only one check for the first item from dialog, if you press first item which is Infernus it will start the race, otherwise no.
  16. chiar nu intereseaza pe nimeni ca e sampul mort, tot acelasi lucru e, dar atata timp cat vrei si chestii complexe si sofisticate nu s de ajuns 50 euro pe luna, acu fiecare cum cere, eu unul nu m-as baga pt atata tinand cont de calitatea pe care o ofer.
  17. startRace(playerid) { IsPlayerInRace[playerid] = 1; playerCheckpoint[playerid] = 0; SetPlayerRaceCheckpoint(playerid, 0, raceCheckpoints[ 0 ][ 0 ], raceCheckpoints[ 0 ][ 1 ], raceCheckpoints[ 0 ][ 2 ], raceCheckpoints[ 1 ][ 3 ], raceCheckpoints[ 1 ][ 4 ], raceCheckpoints[ 1 ][ 5 ], 7.0 ); SendClientMessage(playerid, -1, "POTANGINAAAAAA"); return 1; }
  18. you should set at StartRace the variable playerCheckpoint[playerid] at value 0
  19. daca iti platesti developerii cu 20€ pe luna, e clar ca nu o sa stea nimeni sa ti lucreze tie.
  20. public OnPlayerEnterRaceCheckpoint( playerid ) { if(IsPlayerInRace[playerid]) { playerCheckpoint[playerid] ++; new checkPoint = playerCheckpoint[playerid], nextPoint = playerCheckpoint[playerid] + 1; if(checkPoint == MAX_RACE_CHECKPOINTS) { DisablePlayerRaceCheckpoint(playerid); // give player reward return 1; } if( checkPoint < MAX_RACE_CHECKPOINTS - 1) SetPlayerRaceCheckpoint(playerid, 0, raceCheckpoints[checkPoint][0], raceCheckpoints[checkPoint][1], raceCheckpoints[checkPoint][2], raceCheckpoints[nextPoint][3], raceCheckpoints[nextPoint][4], raceCheckpoints[nextPoint][5], 7.0 ); else SetPlayerRaceCheckpoint(playerid, 1, raceCheckpoints[checkPoint ][0], raceCheckpoints[checkPoint][1], raceCheckpoints[checkPoint][2], 0.0, 0.0, 0.0, 7.0 ); SendClientMessage( playerid, -1, "Keep going!." ); } return 1; }
  21. you have OnPlayerEnterRaceCheckpoint callback, check somehow in that callback if its in the last race checkpoint, use DisablePlayerRaceCheckpoint and give the reward to player
  22. proiect serios dar investitii zero.
  23. astea sunt mai recente pe care le am pus aici la vanzare, daca vrei mai multe detalii, ma contactezi pe discord.
  24. Sancky#3199, am mai discutat noi acum putin timp in urma, daca imi accepti preturile, ma contactezi.
  25. n-are rost.
×
×
  • 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.