Unknown Command
#1

Hello I have problem.When I type any command it shows Unknown Command

Commands are scripted correctly

These are my includes
Код:
#include <a_samp>
#include <dini>
#include <dudb>
#include <pstream>
#include <zcmd>
#include <bfx_objects>
#include <angdist>
#include <sscanf2>
#include <weapon>
I use script like this
Код:
	if (strcmp("/haha", cmdtext, true, 10) == 0)
	{
	    SetPlayerPos(playerid,504.9661,11.1953,132.5);
	    SetPlayerInterior(playerid, 0);
	    return 1;
	}
Reply
#2

Perhaps use ZCMD like this
pawn Код:
CMD:haha(playerid, params[])
{
    SetPlayerPos(playerid,504.9661,11.1953,132.5);
    SetPlayerInterior(playerid, 0);
    return 1;
}
Idk if it will work but worth a try, I'm sorry if its not what you want though.
Reply
#3

Quote:
Originally Posted by Firzendxiw
Посмотреть сообщение
Perhaps use ZCMD like this
pawn Код:
CMD:haha(playerid, params[])
{
    SetPlayerPos(playerid,504.9661,11.1953,132.5);
    SetPlayerInterior(playerid, 0);
    return 1;
}
Idk if it will work but worth a try, I'm sorry if its not what you want though.
I get these error messages
Код:
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : error 029: invalid expression, assumed zero
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : error 017: undefined symbol "cmd_haha"
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : error 029: invalid expression, assumed zero
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : fatal error 107: too many error messages on one line
Reply
#4

Quote:
Originally Posted by MichaelProPlayer
Посмотреть сообщение
I get these error messages
Код:
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : error 029: invalid expression, assumed zero
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : error 017: undefined symbol "cmd_haha"
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : error 029: invalid expression, assumed zero
F:\PROGRA~1\ROCKST~1\GTASAN~1\SAMP03~1\GAMEMO~1\test.pwn(938) : fatal error 107: too many error messages on one line
Quote:
Originally Posted by Firzendxiw
Посмотреть сообщение
Perhaps use ZCMD like this
pawn Код:
CMD:haha(playerid, params[])
{
    SetPlayerPos(playerid,504.9661,11.1953,132.5);
    SetPlayerInterior(playerid, 0);
    return 1;
}
Idk if it will work but worth a try, I'm sorry if its not what you want though.
you need ZCMD include to run the script download from here
Reply
#5

He already have it, look at his includes:

pawn Код:
#include <a_samp>
#include <dini>
#include <dudb>
#include <pstream>
#include <zcmd>
#include <bfx_objects>
#include <angdist>
#include <sscanf2>
#include <weapon>
Maybe he put the command in a callback.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)