Jump to content
  • 0

Aceasta comanda nu exista si e trecuta in pawno fara nici o eroare


Question

Posted
if(strcmp(cmd, "/buycar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
                if(PlayerToPoint(50.0,playerid, 2114.2969,-2324.4392,30.6250))
                {
                SendClientMessage(playerid, -1, "Pentru a cumpara un vehicul personal, folositi /buycar");
                ShowPlayerDialog(playerid, DIALOG_DEALERSHIP, DIALOG_STYLE_LIST, "Masini:", "Ieftine\nMedii\nScumpe", "Select", "Cancel");
                DisablePlayerCheckpoint(playerid);
                return 1;
            }
        }
    }

Asta e comanda ..imi zice pe server ca aceasta comanda nu exista, de ce ?

9 answers to this question

Recommended Posts

  • 0
Posted

Iti recomand sa folosesti ZCMD..

 

CMD:buycar(playerid, params[] {
    if(IsPlayerConnected(playerid)) {
        if(PlayerToPoint(50.0,playerid, 2114.2969,-2324.4392,30.6250)) {
            SendClientMessage(playerid, -1, "Pentru a cumpara un vehicul personal, folositi /buycar");
            ShowPlayerDialog(playerid, DIALOG_DEALERSHIP, DIALOG_STYLE_LIST, "Masini:", "Ieftine\nMedii\nScumpe", "Select", "Cancel");
            DisablePlayerCheckpoint(playerid);
            return 1;
        }
    }
    return 1;
}

  • 0
Posted
CMD:buycar(playerid, params[] {
	if(IsPlayerConnected(playerid)) {
		if(PlayerToPoint(50.0,playerid, 2114.2969,-2324.4392,30.6250)) {
	        SendClientMessage(playerid, -1, "Pentru a cumpara un vehicul personal, folositi /buycar");
	        ShowPlayerDialog(playerid, DIALOG_DEALERSHIP, DIALOG_STYLE_LIST, "Masini:", "Ieftine\nMedii\nScumpe", "Select", "Cancel");
	        DisablePlayerCheckpoint(playerid);
        	return 1;
    	}
	}
	return 1;
}

 

  • 0
Posted

Am pus include zcmd si imi da asta

 

error 017: undefined symbol "buycar"

si ca symbol CMD is not used ( warning)

 

  • 0
Posted (edited)

incearca asa

    if(strcmp(cmd, "/buycar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
                if(PlayerToPoint(50.0,playerid, 2114.2969,-2324.4392,30.6250))
                {
                SendClientMessage(playerid, -1, "Pentru a cumpara un vehicul personal, folositi /buycar");
                ShowPlayerDialog(playerid, DIALOG_DEALERSHIP, DIALOG_STYLE_LIST, "Masini:", "Ieftine\nMedii\nScumpe", "Select", "Cancel");
                DisablePlayerCheckpoint(playerid);
                return 1;
            }
        }
        return 1;
    }
Edited by MiritaXD
  • 0
Posted

Am facut ce ai zis tu acuma nu mai arata ca nu exista comanda dar nu merge ..scriu comanda si nu se intampla nimic 

  • 0
Posted
La 11.01.2018 la 20:45, EdeR a spus:

Am facut ce ai zis tu acuma nu mai arata ca nu exista comanda dar nu merge ..scriu comanda si nu se intampla nimic 

tu vezi restrictia asta? 

if(PlayerToPoint(50.0,playerid, 2114.2969,-2324.4392,30.6250))

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.