Jump to content
  • 0

[GF/RP] Problema comanda /v plate


Myh4yx

Question

salut am si eu o problema la comanda /v plate la prima masina care o cumpar mg sa pun numar iar la masina a 2 a nu mere zice ceva de genu : You're not in a vehicle

[pawn]         else if(strcmp(x_nr,"plate",true) == 0)

        {

            if(PlayerInfo[playerid][pPcarkey] == 999)

        {

        SCM(playerid, COLOR_GREY,"  You don't have a vehicle to respray.");

        return 1;

        }

        if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey])

        {

        new Float:x,Float:y,Float:z,Float:ang;

        GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);

        GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);

        if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_RED,"You're not in a vehicle!");

        ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Vehicle Numberplate","{00CC66}Input your new vehicle numberplate below.","Yes","Cancel");

            return 1;

        }

        else

        {

        SCM(playerid, COLOR_GREY, "  You are not in you're personal car!");

        return 1;

        }

}

else

        {

            SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]");

            SCM(playerid, COLOR_WHITE, "Available names: park, lock1,lock2, sell, sellto, color, tow1, tow2 locate1,locate2, plate");

            return 1;

        }

    }

    return 1;

}[/pawn]

Va rog ajutatima !!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

[pawn]

//1--------------

//inlocuieste

if(PlayerInfo[playerid][pPcarkey] == 999)

//cu

if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999)

//2--------------

//inlocuieste

if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey])

//cu

if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2])

[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

Atunci incarca asa

[pawn] else if(strcmp(x_nr,"plate",true) == 0)

        {

            if(PlayerInfo[playerid][pPcarkey] == 999)

        {

        SCM(playerid, COLOR_GREY,"  You don't have a vehicle to respray.");

        return 1;

        }

        else if(PlayerInfo[playerid][pPcarkey2] == 999)

        {

        SCM(playerid, COLOR_GREY,"  You don't have a vehicle to respray.");

        return 1;

        }

        if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey])

        {

        new Float:x,Float:y,Float:z,Float:ang;

        GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);

        GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);

        if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_RED,"You're not in a vehicle!");

        ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Vehicle Numberplate","{00CC66}Input your new vehicle numberplate below.","Yes","Cancel");

            return 1;

        }

        else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2])

        {

        new Float:x,Float:y,Float:z,Float:ang;

        GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);

        GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);

        if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_RED,"You're not in a vehicle!");

        ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Vehicle Numberplate","{00CC66}Input your new vehicle numberplate below.","Yes","Cancel");

            return 1;

        }

        else

        {

        SCM(playerid, COLOR_GREY, "  You are not in you're personal car!");

        return 1;

        }

}

else

        {

            SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]");

            SCM(playerid, COLOR_WHITE, "Available names: park, lock1,lock2, sell, sellto, color, tow1, tow2 locate1,locate2, plate");

            return 1;

        }

    }

    return 1;

}

}[/pawn]

gXvsYS
Link to comment
Share on other sites

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.