Very Strange Bug
#1

Hello, I got very strange bug today, when I type any command, for example /skin, it shows SERVER:UNKNOWN COMMAND, but the command works! Any suggestions?
Reply
#2

show code


//edit:
if you use filterscript add
PHP код:
//above #include
#define FILTERSCRIPT 
or remove if it is gamemode
Reply
#3

What code should I show? maybe it's the problem with this:

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (success)
{
new PID;
if(pLogin[playerid] == false)
Kick(PID);
}
if (!success)
{
SendClientMessage(playerid,COLOR_RED,"Tokios komandos nėra! Visos komandos /komandos");
}
return 0;
}
Reply
#4

Quote:
Originally Posted by VirtasVarsketis
Посмотреть сообщение
What code should I show? maybe it's the problem with this:

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (success)
{
new PID;
if(pLogin[playerid] == false)
Kick(PID);
}
if (!success)
{
SendClientMessage(playerid,COLOR_RED,"Tokios komandos nėra! Visos komandos /komandos");
}
return 0;
}
This is not a command, it makes no sense

use ZCMD
https://sampforum.blast.hk/showthread.php?tid=91354
Reply
#5

Oh you need a command? They're all in zcmd, here's one of them:
CMD:komandos(playerid, params[])
{
new BigString15[1900];
strcat(BigString15, "{0000FF}• {0000FF}/car [pavadinimas] [spalva1] [spalva2]\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/skin (Keičia skin)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}+(Pliusas) (Pataiso mašina)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/animacijos (Parodo animacijas)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/laikas0-24 (Nustato laiką)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/pagalba (Parodo pagalba)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/teleportai (Parodo serverio teleportus)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/goto [ID] (Nuteleportuoja pas kitą žaidėją)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/igoto [on/off] (Įjungia/Išjungia goto)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/count (Pradeda skaičiavimą)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/akomandos (Parodo admin komandas)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/dm1-4 (DeathMatch)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/leave (Išeiti iš DM)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/count (Paleidžia skaičiavimą)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/savprizas (Parodo prizo informacija)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/savepos (Išsaugo pozicija)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/gotopos (Nueiną į išsaugotą poziciją)\n", 1900 );
strcat(BigString15, "{FFFFFF}• {FFFFFF}/godon (Įjungia nemirtingumą)\n", 1900 );
strcat(BigString15, "{0000FF}• {0000FF}/godoff (Išjungia nemirtingumą)\n", 1900 );
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{FFFFFF}Serverio Komandos", BigString15, "Aišku","");
new PID;
if(pLogin[playerid] == false)
Kick(PID);
return 1;
}
Reply
#6

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if (success)
	{
		new PID;
		if(pLogin[playerid] == false)
		Kick(PID);
	}
	if (!success)
	{
		SendClientMessage(playerid,COLOR_RED,"Tokios komandos nėra! Visos komandos /komandos");
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)