Jump to content
  • 0

eroare /closestcar


K0hL

Question

9 answers to this question

Recommended Posts

  • 0
4 hours ago, K0hL said:

C:\Users\Vlad\Desktop\test\gamemodes\rpgro.pwn(44690) : error 017: undefined symbol "thecar"

PutPlayerInVehicle(playerid, thecar, 0);

ce este gresit?

new thecar[aici  pui nr vehiculelor +1] ,dar daca e doar 1 poti pune doar new thecar; si aia e bft!

Link to comment
Share on other sites

  • 0
Acum 15 minute, K0hL a spus:

imi da aceasi eraoare

omule new thecar, fara include. wtf invata frate diferentele dintre variabile si includeuri.Plus ca nu o defimeati acolo ca nu e variabila globala ci variabila locala si o definesti in comandă. probabil ca ai CMD:closestcar(player,params[]){ 

new thecar;

//restul de cod

}

P.S:De curiozitate cati ani ai?

Edited by valivaly96
Link to comment
Share on other sites

  • 0

CMD:closestcar(playerid, params[]) // Inceput comanda
{ // Deschidem acolada
    if(PlayerInfo[playerid][pAdmin] < 1)return SCM(playerid, COLOR_ERROR, "Eroare: Nu esti admin"); // Verificam daca acel player are admin, si daca nu are sa ii arate mesajul de la 'AdminOnly'.
    if(IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_GREY, "Esti deja intr-un vehicul."); // Verificam daca adminul este deja intr-o masina.
    new thacar = GetClosestVehicle(playerid);
    PutPlayerInVehicle(playerid, thacar, 0); // Cand da (/closestcar) sa il pun direct in masina.
    SCM(playerid, COLOR_GREY,"Ai fost teleportat in cel mai apropiat vehicul."); // Ii arata mesajul ca a fost teleportat la masina ce mai apoate e el.
    return 1; // Se termina comanda
} // Inchidem acolada

Poftim comanda

Beauty is in the eye of the beholder

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.