SERVER: UNKNOWN COMMAND why?
#1

when i use /plantc4 , /bomb it say SERVER: UNKNOWN COMMAND

Help please
Reply
#2

the code crashes(silently) before reaching the return!
Reply
#3

can you show me code i still cant fix
Reply
#4

Script looks complete
Reply
#5

try to open new pwn
Reply
#6

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
Reply
#7

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;
}
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)