#1

Why i used /vcall comamnd it calls all my cars?

pawn Код:
CMD:vcall(playerid,params[]) {
    #pragma unused params
    CallVehicleToPlayer(playerid);
    CallVehicle2ToPlayer(playerid);
    CallVehicle3ToPlayer(playerid);
    CallVehicle4ToPlayer(playerid);
    CallVehicle5ToPlayer(playerid);
    CallVehicle6ToPlayer(playerid);
    CallVehicle7ToPlayer(playerid);
    CallVehicle8ToPlayer(playerid);
    CallVehicle9ToPlayer(playerid);
    CallVehicle10ToPlayer(playerid);
    CallVehicle11ToPlayer(playerid);
    CallVehicle12ToPlayer(playerid);
    CallVehicle13ToPlayer(playerid);
    CallVehicle14ToPlayer(playerid);
    CallVehicle15ToPlayer(playerid);
    return 1;
Reply
#2

Because you do call all your cars?
Reply
#3

no i like this

/vcall 1
/vcall 2 i want 1 by 1 to call my cars
/vcall 3
up to
/vcall 15
Reply
#4

post me your CallVehicleToPlayer function
Reply
#5

pawn Код:
CMD:vcall(playerid,params[]) {
    #pragma unused params
    CallVehicleToPlayer(playerid);
    CallVehicle2ToPlayer(playerid);
    CallVehicle3ToPlayer(playerid);
    CallVehicle4ToPlayer(playerid);
    CallVehicle5ToPlayer(playerid);
    CallVehicle6ToPlayer(playerid);
    CallVehicle7ToPlayer(playerid);
    CallVehicle8ToPlayer(playerid);
    CallVehicle9ToPlayer(playerid);
    CallVehicle10ToPlayer(playerid);
    CallVehicle11ToPlayer(playerid);
    CallVehicle12ToPlayer(playerid);
    CallVehicle13ToPlayer(playerid);
    CallVehicle14ToPlayer(playerid);
    CallVehicle15ToPlayer(playerid);
    return 1;
me using zcmd
Reply
#6

:facepalm:

CalLVehicleToPlayer function, not vcall command function
Reply
#7

Do you use sscanf?

Quote:
Originally Posted by SEnergy
Посмотреть сообщение
:facepalm:

CalLVehicleToPlayer function, not vcall command function
You dont need to see that...
Reply
#8

yes i use sscanf
Reply
#9

pawn Код:
CMD:vcall(playerid,params[]) {
    #pragma unused params
    CallVehicleToPlayer(playerid);
    CallVehicle2ToPlayer(playerid);
    CallVehicle3ToPlayer(playerid);
    CallVehicle4ToPlayer(playerid);
    CallVehicle5ToPlayer(playerid);
    CallVehicle6ToPlayer(playerid);
    CallVehicle7ToPlayer(playerid);
    CallVehicle8ToPlayer(playerid);
    CallVehicle9ToPlayer(playerid);
    CallVehicle10ToPlayer(playerid);
    CallVehicle11ToPlayer(playerid);
    CallVehicle12ToPlayer(playerid);
    CallVehicle13ToPlayer(playerid);
    CallVehicle14ToPlayer(playerid);
    CallVehicle15ToPlayer(playerid);
    return 1;
help please
Reply
#10

pawn Код:
CMD:vcall(playerid, params[])
{
    new vehicle;
    if(sscanf(params, "u", vehicle)) return SendClientMessage(playerid, COLOR_RED, "/vcall (1-15)");
    if(vehicle < 1 && vehicle > 15) return SendClientMessage(playerid, COLOR_RED, "/vcall (1-15)");
    {
        if(vehicle == 1) // first vehicle
        {
            CallVehicleToPlayer(playerid);
            return 1;
        }
        else if(vehicle == 2) //second vehicle etc.
        {
            CallVehicle2ToPlayer(playerid);
            return 1;
        }
    }
    return 1;
}
Let me know if this works.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)