Jump to content
  • 0

Problema simpla pentru voi.


xJhonny

Question

Salutare sunt decis sa incep sa imi fac propiul gamemode dar erorile acestea ma impiedica

 

C:\Users\sKoT\Desktop\Aplex 0.1\gamemodes\aplex.pwn(65) : error 017: undefined symbol "Checkpoint"
C:\Users\sKoT\Desktop\Aplex 0.1\gamemodes\aplex.pwn(65) : warning 215: expression has no effect
C:\Users\sKoT\Desktop\Aplex 0.1\gamemodes\aplex.pwn(65) : error 001: expected token: ";", but found "]"
C:\Users\sKoT\Desktop\Aplex 0.1\gamemodes\aplex.pwn(65) : error 029: invalid expression, assumed zero
C:\Users\sKoT\Desktop\Aplex 0.1\gamemodes\aplex.pwn(65) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Video sa vedeti mai exact: https://youtu.be/bnsGciF8LN8

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
La 07.07.2018 la 15:17, DaNl a spus:

boss, lasa randurile 63-66 aici.

  public OnPlayerConnect(playerid)
{
    Checkpoint[playerid] = 0;
    PlayerJob[playerid] = 0;
    Checkpoint[playerid] = 0;
    JobVehicle[playerid] = 0;
    return 1;
}

Link to comment
Share on other sites

  • 0
1 hour ago, Umbra said:

Daca te incurca problemele alea, nu mai incepe propriul gamemode

nu se lasa spatiu intre: new Ceva [max_players]; ci Ceva[MAX_PLAYERS]

Testeaza ce ai spus pe GRAND LARCENY sau pe ce vrei sa vezi ca nu are treaba, problema lui este ca nu a definit variabila

 

23 minutes ago, xJhonny said:

  public OnPlayerConnect(playerid)
{
    Checkpoint[playerid] = 0;
    PlayerJob[playerid] = 0;
    Checkpoint[playerid] = 0;
    JobVehicle[playerid] = 0;
    return 1;
}

Aici ai de doua ori  Checkpoint[playerid] = 0;   deci sterge unul din ele si la inceputul gamemodeului tau adauga new Checkpoint[MAX_PLAYERS];

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
Acum 22 ore, Mister a spus:

Testeaza ce ai spus pe GRAND LARCENY sau pe ce vrei sa vezi ca nu are treaba, problema lui este ca nu a definit variabila

 

Aici ai de doua ori  Checkpoint[playerid] = 0;   deci sterge unul din ele si la inceputul gamemodeului tau adauga new Checkpoint[MAX_PLAYERS];

Sunt adaugate.

new PlayerJob[MAX_PLAYERS];
new Checkpoint[MAX_PLAYERS];
new JobVehicle[MAX_PLAYERS];
new JobWorking[MAX_PLAYERS];

Link to comment
Share on other sites

  • 0
Just now, xJhonny said:

Sunt adaugate.

new PlayerJob[MAX_PLAYERS];
new Checkpoint[MAX_PLAYERS];
new JobVehicle[MAX_PLAYERS];
new JobWorking[MAX_PLAYERS];

atunci verifica sa fie cat mai sus in gamemode, pentru ca daca tu ai mai intai onplayerconnect si dupa el ai new checkpoint iti va da eroare

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.