SERVER: UNKNOWN COMMAND why? - 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: SERVER: UNKNOWN COMMAND why? (
/showthread.php?tid=545237)
SERVER: UNKNOWN COMMAND why? -
ThunderX - 07.11.2014
when i use /plantc4 , /bomb it say SERVER: UNKNOWN COMMAND
Help please
Re: SERVER: UNKNOWN COMMAND why? -
park4bmx - 07.11.2014
the code crashes(silently) before reaching the return!
Re: SERVER: UNKNOWN COMMAND why? -
ThunderX - 07.11.2014
can you show me code i still cant fix
Re: SERVER: UNKNOWN COMMAND why? -
Ryz - 07.11.2014
Script looks complete
Re: SERVER: UNKNOWN COMMAND why? -
UltraScripter - 07.11.2014
try to open new pwn
Re: SERVER: UNKNOWN COMMAND why? -
ThunderX - 07.11.2014
i try but still not work it say SERVER: UNKNOW COMMAND
BUT WHEN I PUT CODE IN GAMEMODE IT WORK.
HOW IN GAMEMODE WORK BUT Scrip not work
question Why
Re: SERVER: UNKNOWN COMMAND why? -
ikkentim - 07.11.2014
Try to replace
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/credits", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_GREEN,"====================[CREDITS]====================");
SendClientMessage(playerid,COLOR_RED,"Credits: ThunderX AND TX-TEAM");
SendClientMessage(playerid,COLOR_GREEN,"=================================================");
return 1;
}
return 0;
}
with
Код:
CMD:credits(playerid,params[])
{
SendClientMessage(playerid,COLOR_GREEN,"====================[CREDITS]====================");
SendClientMessage(playerid,COLOR_RED,"Credits: ThunderX AND TX-TEAM");
SendClientMessage(playerid,COLOR_GREEN,"=================================================");
return 1;
}
Re: SERVER: UNKNOWN COMMAND why? -
ThunderX - 07.11.2014
still not work and when i run samp-server.exe it say
loading filterscript 'C4TX.amx'...
loaded 1 filterscript
but
pawn Код:
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("ThunderX PlantC4 IS LOADED");
print("--------------------------------------\n");
return 1;
}
not show that filterscript is running.