problem: commands not working
#1

hello guys one of my filterscripts seems to not work as there are no errors but.. the cmds dont work ingame :/

here is my code:
pawn Code:
#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#include <sscanf2>

#if defined FILTERSCRIPT



public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" ***************************************");
    print(" * Filterscript by thefatshizms  *");
    print(" ***************************************");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}
CMD:givecar(playerid,params[])
{
    new carid;
    new id;
    new Float:X, Float:Y, Float:Z, Float:angle;
    if(sscanf(params,"du",carid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [car id] [player id]");
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
    CreateVehicle(carid, X, Y, Z, angle, 0, 1, 60);
    PutPlayerInVehicle(id, carid, 0);
    return 1;
}
CMD:goto(playerid, params[])
{
    new id;
    new Float:X, Float:Y, Float:Z;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    GetPlayerPos(id, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z);
    return 1;
}
#endif
Reply
#2

Try removing other filterscripts.
Reply
#3

tried removing from config aswell as removing all FS from the fs folder apart from this one and still dont work
Reply
#4

Do you get any message if you use the commands?
Reply
#5

Quote:
Originally Posted by MadeMan
View Post
Do you get any message if you use the commands?
SERVER:Unkown Command
Reply
#6

2 defined filterscript?
try removing the first one
Reply
#7

Write sccanf, on the plugin line in your server.cfg.

-ChocoMuffin
Reply
#8

ye lol -_-
Reply
#9

Are you using ZCMD and strcmp at the same time.
Try removing your filterscripts too, hope this helps
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)