SA-MP Forums Archive
[Solved]Unknow command 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Solved]Unknow command problem (/showthread.php?tid=140547)



[Solved]Unknow command problem - adytzu32 - 09.04.2010

i'm testing one of my basic gps system on LVDM(no edit) but when i type a command from my fs say: "unknow command"
this is the fs :


Re: Unknow command problem - adytzu32 - 10.04.2010

help....


Re: Unknow command problem - Jeffry - 10.04.2010

Did you load the FS?


Re: Unknow command problem - adytzu32 - 10.04.2010

yes,and reloaded


Re: Unknow command problem - Jeffry - 10.04.2010

Try
to change this:
pawn Код:
if(strcmp(cmdtext, "/command", true) == 0) {
to:
pawn Код:
if(strcmp(cmd, "/command", true) == 0) {



Re: Unknow command problem - adytzu32 - 10.04.2010

Код:
error 017: undefined symbol "cmd"
i've put new cmd[256]; and now it's compiling good but doesn't work ...can you test on you gamemode please?
ps:I noticed something weird...when it's compiling say :gps.pwn.pwn has been compiled to 'gps.pwn.amx' .Maybe that's the problem?


Re: Unknow command problem - adytzu32 - 10.04.2010

solved this was the problem
Код:
'gps.pwn.pwn' has been compiled to 'gps.pwn.amx'
thanks Jeffry for help
psorry for double post,my edit doesn't work


Re: Unknow command problem - [HiC]TheKiller - 10.04.2010

Make sure you return 1 at the end of the command.


Re: Unknow command problem - Jeffry - 10.04.2010

Quote:
Originally Posted by adytzu32
solved this was the problem
Код:
'gps.pwn.pwn' has been compiled to 'gps.pwn.amx'
thanks Jeffry for help
Lol, funny mistake.
No problem.