SA-MP Forums Archive
success == 0 - 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: success == 0 (/showthread.php?tid=384499)



success == 0 - xplor09edy - 12.10.2012

Heyy everyone! My server use only ZCMD, no any strcmp and i wanna if a player use a non existent command to say:
Код:
{00C0FF}This Command Don't {FFFFFF}Exist{00C0FF}.
but at my server say:
Код:
SERVER:Unknow Command.
So, how can i change unknow command to " {00C0FF}This Command Don't {FFFFFF}Exist{00C0FF}. " ?


AW: success == 0 - BiosMarcel - 12.10.2012

Send use the source code


Re: success == 0 - TzAkS. - 12.10.2012

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(success == 0)
	{
		SendClientmessage(playerid,-1, " {00C0FF}This Command Don't {FFFFFF}Exist{00C0FF}. ");
	    return 1;
	}
	return 1;
}