commands dont work
#1

All my commands dont work, it just show blank :S without error, it has worked before but it doesent work no longer after i had a update, please help

This is 1 cmd:
pawn Код:
CMD:cr(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 4)
    {
        return SendClientMessageEx(playerid, COLOR_LIGHTRED, " You are not authorized to use that command.");
    }
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
    AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
    SendClientMessage(playerid, 0xFFFFFFFF, "You have added cutter rims to your vehicle.");
    return 1;
}
Reply
#2

what update did you make?
Reply
#3

Just a update in a nother filterscript i tryed to remove the filterscript but it didnt work
Reply
#4

pawn Код:
CMD:cr(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 4)
    {
        return SendClientMessageEx(playerid, COLOR_LIGHTRED, " You are not authorized to use that command.");
    }
    else
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
        AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
        SendClientMessage(playerid, 0xFFFFFFFF, "You have added cutter rims to your vehicle.");
        return 1;
    }
Don't you have to use 'else'? I'm not sure though!
Reply
#5

No because i dont have edited something in that command and it worked before but it dont work anymore :S all the commands in the GM is fucked
Reply
#6

using the same command processor throughout the filterscript?
Reply
#7

I think I had the same problem. I thought it was a command/script problem, but then I found out I had sscanf and sscanf2(2 versions) in my includes. Just remove one of the versions and it will work fine.
I also showed a few SS'es on my own thread. It just got solved out.

https://sampforum.blast.hk/showthread.php?tid=437631

I dont know what could it be else than that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)