01.09.2012, 19:12
Hi!
I made a command in SF and the command won't work it just says: Server unknown command..
Code:
Thanks!
Maybe I just forgot some easy thing! ^^...
Edit: And it works in a GM.
I made a command in SF and the command won't work it just says: Server unknown command..
Code:
pawn Код:
public OnFilterScriptInit()
{
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,0xF00E69FF, "TEST");
return 1;
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" ");
print("----------------------------------\n");
}
#endif
Maybe I just forgot some easy thing! ^^...
Edit: And it works in a GM.