SA-MP Forums Archive
Unknown 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: Unknown Command (/showthread.php?tid=338860)



Unknown Command - MichaelProPlayer - 01.05.2012

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;
	}



Re: Unknown Command - Firzendxiw - 01.05.2012

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.


Re: Unknown Command - MichaelProPlayer - 01.05.2012

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



Re: Unknown Command - doreto - 01.05.2012

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


Re: Unknown Command - ]Rafaellos[ - 01.05.2012

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.