Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 21.07.2013
Ok, so I am working on a new mining job / system, it works fine, but now the problem is, when me and a few friends go in game to test we are playing and its all working fine /mine works but then about 5 minutes gos past and when we do /mine it says SERVER: Unknown Command, I know it is not a flaw with the mining system because it gives the unknown command in every server command /kick /prison /ban ext. It does not show up [ZCMD] Test_Test: /ban in the server console.... I do not know what is going on, I need help
Re: Help with SERVER: UNKNOWN COMMAND. -
JimmyCh - 21.07.2013
Did you add return 1 to the cmd?
Like..
pawn Код:
CMD:mine(playerid, params[])
{
//code
return 1;
}
Re: Help with SERVER: UNKNOWN COMMAND. -
RALL0 - 21.07.2013
Your sscanf might be not correct, can you show us your codes?
Re: Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 21.07.2013
Here is the /mine command, I doubt it is the mine command, because when this happens, NO scripted commands work, not even /b
pawn Код:
CMD:mine(playerid, params[])
{
if(PlayerInfo[playerid][pJob] == 22 || PlayerInfo[playerid][pJob2] == 22)
{
if(IsPlayerInRangeOfPoint(playerid,10,469.50,867.63,-28.46) || IsPlayerInRangeOfPoint(playerid,10,463.02,871.85,-27.71) ||
IsPlayerInRangeOfPoint(playerid,10,459.96,882.49,-27.86) || IsPlayerInRangeOfPoint(playerid,10,465.82,889.89,-28.47))
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,10,656.39,724.26,-3.26) || IsPlayerInRangeOfPoint(playerid,10,738.61,948.88,-7.45) ||
IsPlayerInRangeOfPoint(playerid,10,506.88,968.60,-24.57))
{
if(PlayerInfo[playerid][pMineSkill] >= 26)
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not a level 2 miner +");
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,10,423.04,834.35,7.35) || IsPlayerInRangeOfPoint(playerid,10,468.08,967.21,5.53))
{
if(PlayerInfo[playerid][pMineSkill] >= 51)
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not a level 3 miner +");
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,10,495.27,780.02,-21.75))
{
if(PlayerInfo[playerid][pMineSkill] >= 101)
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not a level 4 miner +");
}
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not at the iron mines");
}
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You are not a Miner!");
return 1;
}
Re: Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 21.07.2013
I updated SSCANF and it didn't fix the problem.
Re: Help with SERVER: UNKNOWN COMMAND. -
RALL0 - 21.07.2013
Oh yeah, thats not what I meant actually, I had the same problem like this and it was because I didn't use sscanf properly I kept getting unknow command. But thats not the case you didn't use sscanf on this cmd at all.
Re: Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 21.07.2013
I do not know at all, its like ZCMD just stops working.... Could it be a ZCMD problem?
Re: Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 21.07.2013
Could
pawn Код:
[11:45:35] ==========================================
[11:45:35] | |
[11:45:35] | A new version (v3.09.0684) of YSI is |
[11:45:35] | available from: |
[11:45:35] | |
[11:45:35] | [url]www.y-less.com/YSI/YSI_1.0.zip[/url] |
[11:45:35] | |
[11:45:35] | Changelog: |
[11:45:35] | |
[11:45:35] | 1.04.0000: |
[11:45:35] | |
[11:45:35] | RC 1 for YSI 3.0. Available from: |
[11:45:35] | [url]http://www.y-less.com/YSI/YSI_3.0.rar[/url] |
[11:45:35] | - includes MANY new libraries and |
[11:45:35] | fixes, see |
[11:45:35] | [url]http://forum.sa-mp.com/showthread.php?[/url] |
[11:45:35] | p=1425938 for more information, with |
[11:45:35] | more topics and updates due over the |
[11:45:35] | next few weeks. In brief: Added |
[11:45:35] | "y_inline", "y_text", "y_users", |
[11:45:35] | "y_uvar", "y_svar", "y_remote"; |
[11:45:35] | updated "y_timers", "y_iter"; MANY |
[11:45:35] | MANY fixes and tweaks in almost every |
[11:45:35] | other library. |
[11:45:35] | |
[11:45:35] | 3.00.0000: |
[11:45:35] | |
[11:45:35] | YSI 3.0 released! Now includes the |
[11:45:35] | "y_text" library for better messages, |
[11:45:35] | and a reworked "y_classes" library. |
[11:45:35] | Largely documented here |
[11:45:35] | "http://forum.sa-mp.com/showthread.php |
[11:45:35] | ?t=321092". |
[11:45:35] | |
[11:45:35] | 3.01.0002: |
[11:45:35] | |
[11:45:35] | Small fixes to "y_text" and |
[11:45:35] | "y_classes". |
[11:45:35] | |
[11:45:35] | 3.09.0684: |
[11:45:35] | |
[11:45:35] | Reverted to old download location. |
[11:45:35] | Improved (and fixed) version checks; |
[11:45:35] | added y_bitmap, y_areas, y_races, |
[11:45:35] | y_zonenames, better documentation; |
[11:45:35] | MANY other bug fixes - see the github |
[11:45:35] | repository for more details: |
[11:45:35] | |
[11:45:35] ==========================================
be the problem?
Re: Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 21.07.2013
Its like the entire script stops working.
Re: Help with SERVER: UNKNOWN COMMAND. -
Birdkid1999 - 22.07.2013
Anyone?