Commands Not Responding! - 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: Commands Not Responding! (
/showthread.php?tid=597583)
Commands Not Responding! -
Compiler - 02.01.2016
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.
Re: Commands Not Responding! -
WingedFrostWolf - 02.01.2016
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.
Re: Commands Not Responding! -
lucamsx - 02.01.2016
This may happen when you have two command systems in one script, for example strcmp and zcmd.
Re: Commands Not Responding! -
RaajParker - 02.01.2016
thats becoz Of any Bug in your scripts it happen to me see if your scrpites have any bug
Re: Commands Not Responding! -
Mic_H - 02.01.2016
Show the code and we can help.. Else it will be just guesses..
Re: Commands Not Responding! -
saffierr - 02.01.2016
Show us the code
Re: Commands Not Responding! -
Joron - 02.01.2016
Quote:
Originally Posted by lucamsx
This may happen when you have two command systems in one script, for example strcmp and zcmd.
|
yeah could be this...
Re: Commands Not Responding! -
Compiler - 02.01.2016
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;
}
Re: Commands Not Responding! -
Jhayz - 02.01.2016
The server didn't loaded the gamemode.
Re: Commands Not Responding! -
Compiler - 02.01.2016
What do you mean?