Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

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

PutPlayerInVehicle(playerid, thecar, 0);

ce este gresit?

9 answers to this question

Recommended Posts

  • 0
Posted
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!

  • 0
Posted
3 hours ago, ASGOOD said:

DU-te sub include-uri si pui "new thecar;".

C:\Users\Vlad\Desktop\test\gamemodes\rpgro.pwn(21) : fatal error 100: cannot read from file: "new thecar;"
 

  • 0
Posted (edited)
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
  • 0
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.