Y_commands small problem - 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: Y_commands small problem (
/showthread.php?tid=558168)
Y_commands small problem -
bigboy81 - 16.01.2015
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 ?
Re: Y_commands small problem -
Ironboy - 16.01.2015
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;
}
Re : Y_commands small problem -
AYOUYOU - 16.01.2015
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)
Re: Y_commands small problem -
bigboy81 - 16.01.2015
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..
Re : Y_commands small problem -
AYOUYOU - 16.01.2015
Did you try My Code?
Re: Re : Y_commands small problem -
bigboy81 - 16.01.2015
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;
}
Re: Y_commands small problem -
erminpr0 - 16.01.2015
Код:
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;
}
Re: Y_commands small problem -
bigboy81 - 16.01.2015
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
Re: Y_commands small problem -
bigboy81 - 16.01.2015
Is there anybody who know how to fix this ?