SA-MP Forums Archive
unknowns 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: unknowns command (/showthread.php?tid=606819)



unknowns command - hillko - 09.05.2016

the fact is that when I enter the command teleport, for some reason I wrote wrong command and + teleports me how to fix to not show unknown command


Re: unknowns command - LOCS - 09.05.2016

mabe The command dosen't exist on the script


Re: unknowns command - Dayrion - 09.05.2016

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    new 
string[180];
    
format(stringsizeof(string), "The command '%s' doesn't exist. Please check /cmds."cmdtext); // "doesn't exist" is maybe false - Replace /cmds by your help command.
    
return (!success SendClientMessage(playerid, -1string) : 1); // return : the command succeed ? No :  return a message (SendClientMessage(playerid, -1, string) OR Yes : return 1

Show us your command which is returning SERVER: Unknown command