SA-MP Forums Archive
Very Strange Bug - 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: Very Strange Bug (/showthread.php?tid=591404)



Very Strange Bug - VirtasVarsketis - 11.10.2015

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?


Re: Very Strange Bug - AbyssMorgan - 11.10.2015

show code


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


Re: Very Strange Bug - VirtasVarsketis - 11.10.2015

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


Re: Very Strange Bug - AbyssMorgan - 11.10.2015

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


Re: Very Strange Bug - VirtasVarsketis - 11.10.2015

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


Re: Very Strange Bug - Unte99 - 11.10.2015

Код:
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;
}