Jump to content
  • 0

Ajutor gotols


marius11

Question

Problema intalnita (descriere):Vreau cand dau /gotols sa se teleporteze si masina ce mai trebuie sa adaug la comanda
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:gotols(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 2)
    {
        SetPlayerPos(playerid, 1529.1075,-1660.6410,13.3828);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
}

Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Poftim:

CMD:gotols(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 2)
    {

        new vehicleid = GetPlayerVehicle(playerid);
        SetPlayerPos(playerid, 1529.1075,-1660.6410,13.3828);   

        SetVechilePos(vehicleid, 1529.1075,-1660.6410,13.3828);

        PutPlayerInVehicle(playerid, vehicleid, 1);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
}

Link to comment
Share on other sites

  • 0

nu merge

C:\Users\Ionut\Desktop\New folder\server_virtual_Rpg.pwn(7480) : warning 209: function "fk_OnPlayerConnect" should return a value
C:\Users\Ionut\Desktop\New folder\server_virtual_Rpg.pwn(35388) : error 017: undefined symbol "GetPlayerVehicle"
C:\Users\Ionut\Desktop\New folder\server_virtual_Rpg.pwn(35391) : error 017: undefined symbol "SetVechilePos"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Link to comment
Share on other sites

  • 0
Acum 29 minute, eror a spus:

Dute sus in gm la define-uri si pune asa 

#define GetPlayerVehicle
#define SetVechiclePos

Pentru warningul acela da-mi linia 7480

Warningul ala este de la alt ceva am adaugat #define alea 2 si tot da 

C:\Users\Ionut\Desktop\New folder\server_virtual_Rpg.pwn(35394) : error 017: undefined symbol "SetVechilePos"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

linia eroare 35394 SetVechilePos(vehicleid, 1529.1075,-1660.6410,13.3828);

Edited by marius11
Link to comment
Share on other sites

  • 0
Acum 20 minute, eror a spus:

Pai....greseala mea in loc de :

#define SetVechiclePos

Pune :  #define SetVechilePos

 

Da warning la linia  SetVechilePos(vehicleid, 1529.1075,-1660.6410,13.3828)

Si comanda se executa da tot fara masina ma tp

ce pot sa ii mai fac

C:\Users\Ionut\Desktop\New folder\server_virtual_Rpg.pwn(35394) : warning 215: expression has no effect
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          23232 bytes
Code size:          2628160 bytes
Data size:          3905360 bytes
Stack/heap size:     180000 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 6736752 bytes

2 Warnings.
 

 

 

Link to comment
Share on other sites

  • 0

 Logic ca nu se executa din moment ce este SetVechilePos in loc de SetVehiclePos

 

Uite comenda facuta corect:

 

CMD:gotols(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 2)
    {

        new vehicleid = GetPlayerVehicle(playerid);
        SetPlayerPos(playerid, 1529.1075,-1660.6410,13.3828);   

        SetVehiclePos(vehicleid, 1529.1075,-1660.6410,13.3828);

        PutPlayerInVehicle(playerid, vehicleid, 1);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
}

Acum 10 ore, eror a spus:

 Logic ca nu se executa din moment ce este SetVechilePos in loc de SetVehiclePos

 

Uite comenda facuta corect:

 

CMD:gotols(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 2)
    {

        new vehicleid = GetPlayerVehicle(playerid);
        SetPlayerPos(playerid, 1529.1075,-1660.6410,13.3828);   

        SetVehiclePos(vehicleid, 1529.1075,-1660.6410,13.3828);

        PutPlayerInVehicle(playerid, vehicleid, 1);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
}

 

 

Iar la define pui #define SetVehiclePos

 

Edited by eror
Link to comment
Share on other sites

  • 0
Guest
This topic is now closed to further replies.
×
×
  • 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.