[Solved]Unknow command problem
#1

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 :
Reply
#2

help....
Reply
#3

Did you load the FS?
Reply
#4

yes,and reloaded
Reply
#5

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

Код:
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?
Reply
#7

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
Reply
#8

Make sure you return 1 at the end of the command.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)