Y_commands small problem
#1

in my ycmd script this public donesn't work
this public is from my old zcmd,but if i typed non-existent command doesn't show the command is non-existent
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(!success)
	{
		SCM(playerid,COLOR_WHITE, "{FFFFFF}|{F81414}Greska{FFFFFF}|: Ukucali ste nepostojecu komandu, Koristi /report ili /askq ako vam treba pomoc!");
		PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
	}
	return 1;
}
How to make it to work ?
Reply
#2

pawn Код:
if(success == 0)
{
    SCM(playerid,COLOR_WHITE, "{FFFFFF}|{F81414}Greska{FFFFFF}|: Ukucali ste nepostojecu komandu, Koristi /report ili /askq ako vam treba pomoc!");
    PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
    return 1;
}
Reply
#3

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if (!success)
    {
               SCM(playerid,COLOR_WHITE, "{FFFFFF}|{F81414}Greska{FFFFFF}|: Ukucali ste nepostojecu komandu, Koristi /report ili /askq ako vam treba pomoc!");
               PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
    }
    return 1;
}
Try This i've Tested it and it's working (+rep)

Reply
#4

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
pawn Код:
if(success == 0)
{
    SCM(playerid,COLOR_WHITE, "{FFFFFF}|{F81414}Greska{FFFFFF}|: Ukucali ste nepostojecu komandu, Koristi /report ili /askq ako vam treba pomoc!");
    PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
    return 1;
}
Don't work..
Reply
#5

Did you try My Code?
Reply
#6

Quote:
Originally Posted by AYOUYOU
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if (!success)
    {
               SCM(playerid,COLOR_WHITE, "{FFFFFF}|{F81414}Greska{FFFFFF}|: Ukucali ste nepostojecu komandu, Koristi /report ili /askq ako vam treba pomoc!");
               PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
    }
    return 1;
}
Try This i've Tested it and it's working (+rep)

For me this doesn't work
I use command like this

Код:
YCMD:test(playerid, params[], help)
{
	#pragma unused params
	if(help) return SCM(playerid, COLOR_GREY, "Not supported");
        
        SendClientMessage(playerid, COLOR_WHITE,"hello");
        return 1;
}
Reply
#7

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(!success)
	{
		SendClientMessage(playerid, -1, "Komanda koju ste unijeli nije pronadjena, za pomoc oko komandi kucajte /pomoc");
		return 1;
	}
	return 1;
}
Reply
#8

Quote:
Originally Posted by erminpr0
Посмотреть сообщение
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(!success)
	{
		SendClientMessage(playerid, -1, "Komanda koju ste unijeli nije pronadjena, za pomoc oko komandi kucajte /pomoc");
		return 1;
	}
	return 1;
}
Ne radi
Reply
#9

Is there anybody who know how to fix this ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)