Commands Not Responding!
#1

Hi Guys,
I am making commands for my server but when I add them and try them, the commands doesn't respond no matter if I enter them correctly or incorrectly.

Video Proof

Can Anybody please help me. Your help will really be appreciated !

Regards,
Compiler.
Reply
#2

Hey there! From the video I can see that when you enter the command the server actually recognises it and doesn't return a "No such command message". I'd guess that there is a problem in the script of your command, so I'd check it for errors.
Reply
#3

This may happen when you have two command systems in one script, for example strcmp and zcmd.
Reply
#4

thats becoz Of any Bug in your scripts it happen to me see if your scrpites have any bug
Reply
#5

Show the code and we can help.. Else it will be just guesses..
Reply
#6

Show us the code
Reply
#7

Quote:
Originally Posted by lucamsx
View Post
This may happen when you have two command systems in one script, for example strcmp and zcmd.
yeah could be this...
Reply
#8

Here's the Code. I havent shown my CreateObject e.t.c lines

Code:
#include <a_samp>

#pragma tabsize 0

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BRIGHTRED 0xFF0000AA
#define C_LBLUE 	0x33CCFFFF
#define red              0xFF0000AA
#define green            0x33FF33AA


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("Stunting & Freeroam Gamemode loaded");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" M & M Freeroam / Stunting");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Stunt/Freeroam/Gangs/Housing");
    EnableStuntBonusForAll(0);
    DisableInteriorEnterExits();

return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid,-500);
GivePlayerMoney(killerid,1000);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/respawn", cmdtext, true, 10) == 0)
    {SpawnPlayer(playerid);//We will spawn the player now
    }else{
            SendClientMessage(playerid,0xAA3333AA,"Command Not Found! Use /cmds to see a list of commands.");
			return 1;
		}
return 0;
}
Reply
#9

The server didn't loaded the gamemode.
Reply
#10

What do you mean?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)