Creating new commands doesnt work? (strange) Example inside...
#1

pawn Код:
CMD:test(playerid, params[])
{
    if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");

    new string[128], giveplayerid;
    if(sscanf(params, "us[128]", giveplayerid, string)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /test [playerid] [message]");
   
    SendClientMessage(playerid, COLOUR_GREEN, "THIS WORKS!!");
    return 1;
}
I can't any longer create new commands, such as the one above. It returns success = 0 under on command performed for EVERY new command I create. Perhaps something to do with 0.3d? I've upgraded client etc, version is 0.3d as well as server is 0.3d.
That command was created as a test and fails to work...
Reply
#2

Show us the last command that worked
Reply
#3

All commands work except the latest ones, this is last one I coded. Works perfectly.

pawn Код:
CMD:gmx(playerid, params[])
{
    if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");

    new reason[128], time;
    if(AdminLevel[playerid] < 3) return SendClientMessage(playerid, COLOUR_GREY, "You are not authorized to use this command.");
    if(sscanf(params, "ds[128]", time, reason)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /gmx [time till restart] [reason]");
    if(time < 1 ||time > 60) return SendClientMessage(playerid, COLOUR_GREY, "Time must be between 1 minute and 1 hour.");
    format(reason, sizeof(reason), "Admin %s has initiated a Server Restart in %d minutes [Reason: %s]", GetNameEx(playerid), time, reason);
    SendClientMessageToAll(0x95FFB4FF, reason);
    GMXTIME = time;
    return 1;
}
Reply
#4

it looks fine. I have created more than 70 commands with zcmd on 0.3d without any problem. Are you sure that, that is the last command that worked?
Reply
#5

Yes, almost 100 certain, I have a feeling it might be sscanf..... Did you upgrade yours?
Reply
#6

Sorry I'm mistaken, the last command I made is this: /hstoreweapon (doesnt work) going to comment and see if this is the issue.
pawn Код:
/*CMD:hstoreweapon(playerid, params[])
{
    if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");
    if(HouseOwned[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You don't have a house.");
    new slot, houseid, weapon[32];
    if(sscanf(params, "ds[32]", slot, weapon)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /hstoreweapon [slot] [weapon]");
    if(GetPlayerHouseID(playerid) < 1)return SendClientMessage(playerid, COLOUR_GREY, "You don't own this house.");
    if(HouseWS1[houseid] || HouseWS2[houseid] || HouseWS3[houseid] >= 1) return SendClientMessage(playerid, COLOUR_GREY, "That slot is already occupied.");
    if(slot < 1 || slot > 3) return SendClientMessage(playerid, COLOUR_GREY, "Invalid slot (1-3).");

    houseid = GetPlayerHouseID(playerid);
    new weaponstored, ammostored, string[128];
    if(!IsPlayerInRangeOfPoint(playerid, 30.0, HouseEntX[houseid], HouseEntY[houseid], HouseEntZ[houseid]))return SendClientMessage(playerid, COLOUR_GREY, "You're not inside your house.");
    {
        if(GetPlayerInterior(playerid) == HouseInt[houseid])
        {
            if(strcmp(weapon, "9mm", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][2] == 22 && PlayerWeaponAmmo[playerid][2] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a 9mm in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][2];
                        ammostored = PlayerWeaponAmmo[playerid][2];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][2]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][2];
                        ammostored = PlayerWeaponAmmo[playerid][2];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][2]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][2];
                        ammostored = PlayerWeaponAmmo[playerid][2];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][2]);
                    }
                    format(string,sizeof(string), "* %s stores a 9mm in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "desert eagle", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][2] == 24 && PlayerWeaponAmmo[playerid][2] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a desert eagle in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][2];
                        ammostored = PlayerWeaponAmmo[playerid][2];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][2]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][2];
                        ammostored = PlayerWeaponAmmo[playerid][2];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][2]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][2];
                        ammostored = PlayerWeaponAmmo[playerid][2];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][2]);
                    }
                    format(string,sizeof(string), "* %s stores a desert eagle in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "shotgun", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][3] == 25 && PlayerWeaponAmmo[playerid][3] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a shotgun in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][3];
                        ammostored = PlayerWeaponAmmo[playerid][3];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][3]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][3];
                        ammostored = PlayerWeaponAmmo[playerid][3];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][3]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][3];
                        ammostored = PlayerWeaponAmmo[playerid][3];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][3]);
                    }
                    format(string,sizeof(string), "* %s stores a shotgun in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "spas12", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][3] == 27 && PlayerWeaponAmmo[playerid][3] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a spas 12 in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][3];
                        ammostored = PlayerWeaponAmmo[playerid][3];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][3]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][3];
                        ammostored = PlayerWeaponAmmo[playerid][3];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][3]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][3];
                        ammostored = PlayerWeaponAmmo[playerid][3];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][3]);
                    }
                    format(string,sizeof(string), "* %s stores a spas 12 in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "mp5", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][4] == 29 && PlayerWeaponAmmo[playerid][4] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a spas 12 in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    format(string,sizeof(string), "* %s stores an mp5 in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "ak47", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][5] == 30 && PlayerWeaponAmmo[playerid][5] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored an AK-47 in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][5]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][5]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][5]);
                    }
                    format(string,sizeof(string), "* %s stores an AK-47 in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "m4", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][5] == 31 && PlayerWeaponAmmo[playerid][5] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored an M4 in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][5]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][5]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][5]);
                    }
                    format(string,sizeof(string), "* %s stores an M4 in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "rifle", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][6] == 33 && PlayerWeaponAmmo[playerid][6] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a Rifle in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][6];
                        ammostored = PlayerWeaponAmmo[playerid][6];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][6]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][5];
                        ammostored = PlayerWeaponAmmo[playerid][5];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][6]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][6];
                        ammostored = PlayerWeaponAmmo[playerid][6];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][6]);
                    }
                    format(string,sizeof(string), "* %s stores a rifle in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "sniper", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][6] == 34 && PlayerWeaponAmmo[playerid][6] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a Sniper in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][6];
                        ammostored = PlayerWeaponAmmo[playerid][6];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][6]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][6];
                        ammostored = PlayerWeaponAmmo[playerid][6];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][6]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][6];
                        ammostored = PlayerWeaponAmmo[playerid][6];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][6]);
                    }
                    format(string,sizeof(string), "* %s stores a sniper rifle in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "uzi", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][4] == 28 && PlayerWeaponAmmo[playerid][4] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored an UZI in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    format(string,sizeof(string), "* %s stores an uzi in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                }
            }
            else if(strcmp(weapon, "tec9", true, strlen(weapon)) == 0)
            {
                if(PlayerWeapons[playerid][4] == 32 && PlayerWeaponAmmo[playerid][4] >= 1)
                {
                    SendClientMessage(playerid, COLOUR_GREY, "You have stored a tec 9 in your house.");
                    if(slot == 1)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS1",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA1",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    if(slot == 2)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS2",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA2",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    if(slot == 3)
                    {
                        weaponstored = PlayerWeapons[playerid][4];
                        ammostored = PlayerWeaponAmmo[playerid][4];
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWS3",weaponstored,"houses");
                        MySQL_SetInteger(HouseSQLID[houseid], "HouseWA3",ammostored,"houses");
                        RemovePlayerWeapon(playerid, PlayerWeapons[playerid][4]);
                    }
                    format(string,sizeof(string), "* %s stores a tec 9 in their house.", GetNameEx(playerid));
                    ProxDetector(30.0, playerid, string, COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE,COLOUR_PURPLE);
                    }
                }
            }
        }
    return 1;
}
*/
Reply
#7

Commented it, made no difference in the slightest. I even commented the sscanf part of CMD:test and it STILL didnt work.
Reply
#8

Did it worked after commenting?

Edit: I am using sscanf 0.3d and having no problem. The only thing it can cause that is the return 0 or return false
Reply
#9

but there isnt anything that returns 0;
Reply
#10

Things that can cause problems are:

1) Using more than 1 command processor [For example, zcmd and dcmd]
2) return 0 or return false [It will stop the command being triggered and will return false instead]
3) Obsolete plugins or includes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)