Someone help me with this command please?
#1

Hi. Been a bit stuck on this command for a while, can someone help me out?
pawn Код:
command(points, playerid, params[])
{
    if(sscanf(params,  ""))
    {
        SendClientMessage(playerid, WHITE, "SYNTAX: /points [usage]");
        SendClientMessage(playerid, GREY, "Usages: Buy, Info, Items");
    }
    else
    {
        if(strcmp("Items", true) == 0)
        {
            SendClientMessage(playerid, GREY, "---------------------------------------------------------------------------------------------------------------------------");
            SendClientMessage(playerid, WHITE, "You can buy the following with points.");
            SendClientMessage(playerid, WHITE, "Special Houses (Under Construction, will have a command to explain");
            SendClientMessage(playerid, WHITE, "VIP Levels - 30000 each level (3 levels) | Private slot 40000 | Personal Forum Rank 30000");
            SendClientMessage(playerid, WHITE, "More coming soon! Feel free to suggest to Dr_Dre!");
            SendClientMessage(playerid, GREY, "---------------------------------------------------------------------------------------------------------------------------");
        }
        else if(strcmp("Buy", true) == 0)
        {
            SendClientMessage(playerid, GREY, "---------------------------------------------------------------------------------------------------------------------------");
            SendClientMessage(playerid, WHITE, "5,000 points - Ј1");
            SendClientMessage(playerid, WHITE, "20,000 points - Ј3");
            SendClientMessage(playerid, WHITE, "50,000 points - Ј5");
            SendClientMessage(playerid, WHITE, "100,000 points - Ј8");
            SendClientMessage(playerid, WHITE, "1,000,000 points - Ј20");
            SendClientMessage(playerid, GREY, "---------------------------------------------------------------------------------------------------------------------------");
        }
        else if(strcmp("Info", true) == 0)
        {
            SendClientMessage(playerid, GREY, "---------------------------------------------------------------------------------------------------------------------------");
            SendClientMessage(playerid, WHITE, "The point system is quite a fair one. Instead of paying for your stuff, you could put a lot of effort into gaining them");
            SendClientMessage(playerid, WHITE, "without paying. Obviously, paying is a better method as it's easier to obtain more things. You will gain points for doing");
            SendClientMessage(playerid, WHITE, "certain things. I.e. the reaction test game (word challenge) gives you a point everytime you win it with money. Also, ");
            SendClientMessage(playerid, WHITE, "things like events will give you a few too. We will keep you all updated!");
        }
    }
    return 1;
}
Cookies and Reputation are being given.
EDIT: I know the first thing someone will pick on is "if(sscanf(params, ""))", it's that line I need help with I think.
Код:
C:\Users\JB\Desktop\Callisto Fan Server\gamemodes\dmovie.pwn(20830) : error 035: argument type mismatch (argument 2)
C:\Users\JB\Desktop\Callisto Fan Server\gamemodes\dmovie.pwn(20839) : error 035: argument type mismatch (argument 2)
C:\Users\JB\Desktop\Callisto Fan Server\gamemodes\dmovie.pwn(20849) : error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)