#1

when i doing /vcall the car is not coming what to do

i will show you the code

pawn Код:
CMD:vcall(playerid,params[]) {
    ShowPlayerDialog(playerid, DIALOGID0+46, DIALOG_STYLE_LIST, "Vehicle Slots","Slot 1\nSlot 2\nSlot 3\nSlot 4\nSlot 5\nSlot 6 \nSlot 7 \nSlot 8 \nSlot 9 \nSlot 10","Add","Close");
    return 1;
}
Reply
#2

Show us the OnDialogResponse callback, please.
Reply
#3

What is your Vehicle System or Show Us : dialogid == DIALOGID0+46
Reply
#4

i cant find callback and Ondialogresponse
Reply
#5

My Gamemode is SATDM
Reply
#6

LOl, You can't Compile it !!
you will receive Undefined DIALOGID0+46
Reply
#7

here it is

pawn Код:
new cash[MAX_PLAYERS];
    cash[playerid] = GetPlayerMoney(playerid);
    if(cash[playerid] >= VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost]) {
        new stringa[128];
        strmid(VehicleInfo[GetPlayerVehicleID(playerid)][owner], PlayerInfo[playerid][name], 0, strlen(PlayerInfo[playerid][name]), 255);
        VehicleInfo[GetPlayerVehicleID(playerid)][bought] = 1;
        if(PlayerInfo[playerid][vowner] == 0){
            PlayerInfo[playerid][vowner] = 1;
            PlayerInfo[playerid][vowned] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #1", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner2] == 0){
            PlayerInfo[playerid][vowner2] = 1;
            PlayerInfo[playerid][vowned2] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #2", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner3] == 0){
            PlayerInfo[playerid][vowner3] = 1;
            PlayerInfo[playerid][vowned3] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #3", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner4] == 0){
            PlayerInfo[playerid][vowner4] = 1;
            PlayerInfo[playerid][vowned4] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #4", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner5] == 0){
            PlayerInfo[playerid][vowner5] = 1;
            PlayerInfo[playerid][vowned5] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #5", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner6] == 0){
            PlayerInfo[playerid][vowner6] = 1;
            PlayerInfo[playerid][vowned6] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #6", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner7] == 0){
            PlayerInfo[playerid][vowner7] = 1;
            PlayerInfo[playerid][vowned7] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #7", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner8] == 0){
            PlayerInfo[playerid][vowner8] = 1;
            PlayerInfo[playerid][vowned8] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #8", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner9] == 0){
            PlayerInfo[playerid][vowner9] = 1;
            PlayerInfo[playerid][vowned9] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #9", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
        else if(PlayerInfo[playerid][vowner10] == 0){
            PlayerInfo[playerid][vowner10] = 1;
            PlayerInfo[playerid][vowned10] = GetPlayerVehicleID(playerid);
            format(stringa, sizeof(stringa), "You just bought this %s for $%d. In Car Calling Slot #10", VehicleInfo[GetPlayerVehicleID(playerid)][name], VehicleInfo[GetPlayerVehicleID(playerid)][vehiclecost],VehicleInfo[GetPlayerVehicleID(playerid)][name]);
            SendClientMessage(playerid, COLOR_GREEN, stringa);
        }
Reply
#8

one idea dont use dialogs just make it a simple cmd to call cars it will be easy

EDIT:Code Added

Код:
CMD:callcar(playerid,params[]) {
	new carid[128], Index;
	carid = strtok(params,Index);
	if(strval(carid) == 1) {
		callcar(playerid);
	}else if(strval(carid) == 2) {
		callcar2(playerid);
	}
	else if(strval(carid) == 3) {
		callcar3(playerid);
	}
	else if(strval(carid) == 4) {
		callcar4(playerid);
	}
	else if(strval(carid) == 5) {
		callcar5(playerid);
	}
	else if(strval(carid) == 6) {
		callcar6(playerid);
	}
	else if(strval(carid) == 7) {
		callcar7(playerid);
	}
	else if(strval(carid) == 8) {
		callcar8(playerid);
	}
	else if(strval(carid) == 9) {
		callcar9(playerid);
	}
	else if(strval(carid) == 10) {
		callcar10(playerid);
	}
	else {
		return SendClientMessage(playerid,COLOR_BLUE,"Use /callcar [vehicle id]");
	}
	return 1;
}
Reply
#9

Still same problem
Reply


Forum Jump:


Users browsing this thread: