ID Bug Help
#1

Hello , I need Help about my Server . when i do Give commands like [/give 0 cash 100] . It Won't work .. I Know It's sscanf but please give me a directlink on sscanf please . i keep searching on samp and ****** but can't still find any of them
Reply
#2

What CMD you are looking for? OR are you looking for a link to download sscanf?
Reply
#3

Click here to download the Linux version of the sscanf.
Click here to download the Windows version of the sscanf.
Reply
#4

We can see your code just incase you did it wrong or something..
Reply
#5

Quote:
Originally Posted by BenJackster
Посмотреть сообщение
Click here to download the Linux version of the sscanf.
Click here to download the Windows version of the sscanf.
After that:

I know ZCMD, if you don't know don't know how to use or what is it? Click Here for more info

Simple:

pawn Код:
//Under #include <asamp> like this-
#include <a_samp>
#include <zcmd>

//Put this code  anywhere in script
CMD:givecash(playerid, params[])
{
    new player, amount,name1[24], name2[24], string[128];
    if(!sscanf(params, "ui",player,amount))
    {
        if(playerid != player)
        {
            if(GetPlayerMoney(playerid) >= amount)
            {
                GetPlayerName(playerid, name1, 24);
                GetPlayerName(player, name2, 24);
                format(string, sizeof(string), "Server: You gaved $%d to %s.",amount,name2);
                SendClientMessage(playerid, -1, string);
                format(string, sizeof(string), "Server: %s gave you $%d!", name1, amount);
                SendClientMessage(player, -1, string);
                GivePlayerMoney(playerid, -amount);
                GivePlayerMoney(player, amount);
            }
            else return SendClientMessage(playerid, -1,"You don't have that much.");
        }
        else return SendClientMessage(playerid, -1,"You can't pay to yourself.");
    }
    else return SendClientMessage(playerid, -1,"Usage: /givecash [ID][Amount]");
    return 1;
}
PS: Power cut, sorry for late editing

====
Similar topic> Click here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)