SA-MP Forums Archive
unknown command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: unknown command (/showthread.php?tid=590151)



unknown command - Balcan Fox - 26.09.2015

Every time I use this command it says "unknown command".
Код:
CMD:salon(playerid, params[])
{
	for(new i; i<BROJ_SALONA; i++)
	{
	    if(IsPlayerInRangeOfPoint(playerid, 7, Saloni[i][0],Saloni[i][1],Saloni[i][2]))
	    {
	        if(i == 0)
	        {
	            ShowPlayerDialog(playerid, salondialog1, 5, "Sportski automobili", "Auto\tCijena\nAlpha\t$225 000\nBanshee\t$855 000\nBuffalo\t$300 000\nBullet\t$867 000\nCheetah\t$775 500\nClub\t$200 000\nEuros\t$375 000\nFlash\t$320 000\nInfernus\t$1 400 000\nJester\t$325 000\nPhoenix\t$225 000\nSabre\t$150 000\nSuper GT\t$790 000\nTurismo\t$1 800 000\nUranus\t$200 000\nZR-350\t$600 000\nHotring Racer\t$2 000 000", "Kupi", "Odustani");
		}
	    }
	}
	return 1;
}
This command works and it opens dialog if im in range of point, but no matter where I am it says unknown command.


Re: unknown command - jlalt - 26.09.2015

may this will help
PHP код:
CMD:salon(playeridparams[])
{
    for(new 
ii<BROJ_SALONAi++)
    {
        if(
IsPlayerInRangeOfPoint(playerid7Saloni[i][0],Saloni[i][1],Saloni[i][2]))
        {
            if(
== 0)
            {
                
ShowPlayerDialog(playeridsalondialog15"Sportski automobili""Auto\tCijena\nAlpha\t$225 000\nBanshee\t$855 000\nBuffalo\t$300 000\nBullet\t$867 000\nCheetah\t$775 500\nClub\t$200 000\nEuros\t$375 000\nFlash\t$320 000\nInfernus\t$1 400 000\nJester\t$325 000\nPhoenix\t$225 000\nSabre\t$150 000\nSuper GT\t$790 000\nTurismo\t$1 800 000\nUranus\t$200 000\nZR-350\t$600 000\nHotring Racer\t$2 000 000""Kupi""Odustani");
        }
        } else return 
SendClientMessage(playerid,-1,"your error message here");
    }
    return 
1;