Major help with /atm command
#1

So I have the command made but there is a lot of things wrong with it and need help bad...

code to /atm
Код:
CMD:atm(playerid, params[])
{
    new amount, string[128];
    new me[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsPlayerNearATM(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You're not in range of any ATM at the moment.");
    if(sscanf(params, "s[16]i", params, amount))
    {
        SendClientMessage(playerid, COLOR_WHITE, "** [Usage]: /atm [withdraw/balance/deposit] [amount]");
        return 1;
    }
    if(!strcmp(params, "withdraw", true))
    {
        if(amount > PlayerInfo[playerid][pBank]) return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money in your bank account.");
        if(amount <= 0)  return SendClientMessage(playerid, COLOR_GREY, "Invalid money amount.");
        if(amount > 50000) return SendClientMessage(playerid, COLOR_GREY, "You can't deposit more than $50,000 in an ATM.");
        if(ATMTime[playerid] > 0)
        }
            format(string, sizeof(string), "You need to wait %d more seconds before using the ATM again.", ATMTime[playerid]);
            SendClientMessage(playerid, COLOR_GREY, string);
        }
        PlayerInfo[playerid][pBank] -= amount;
        GiveDodMoney(playerid, amount);
        ATMTime[playerid] = 40;
        format(me, sizeof(me), "** %s presses a button on the ATM machine and waits for a response.", RPN(playerid));
        SendNearbyMessage(playerid, 5, me, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
        SendClientMessage(playerid, COLOR_WHITE, "_________________________________");
        format(string, sizeof(string), "You have successfully withdrawn $%d from your Bank account.", amount);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        format(string, sizeof(string), "You have a total of $%d remaining in your Bank account.", PlayerInfo[playerid][pBank]);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        SetTimerEx("ATMTimer", 1000, false, "i", playerid);
    }
    else if(!strcmp(params, "deposit", true))
    {
        if(amount > PlayerInfo[playerid][pMoney]) return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money on you.");
        if(amount <= 0)  return SendClientMessage(playerid, COLOR_GREY, "Invalid money amount.");
        if(amount > 50000) return SendClientMessage(playerid, COLOR_GREY, "You can't withdraw more than $50,000 from the ATM.");
        if(ATMTime[playerid] > 0)
        }
        format(string, sizeof(string), "You need to wait %d more seconds before using the ATM again.", ATMTime[playerid]);
        SendClientMessage(playerid, COLOR_GREY, string);
    }
    PlayerInfo[playerid][pBank] += amount;
    GiveDodMoney(playerid, -amount);
    ATMTime[playerid] = 40;
    format(me, sizeof(me), "** %s presses a button on the ATM machine and waits for a response.", RPN(playerid));
    SendNearbyMessage(playerid, 5, me, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    SendClientMessage(playerid, COLOR_WHITE, "_________________________________");
    format(string, sizeof(string), "You have successfully deposit $%d into your Bank account.", amount);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have a total of $%d in your Bank account now.", PlayerInfo[playerid][pBank]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SetTimerEx("ATMTimer", 1000, false, "i", playerid);
    }
    else if(!strcmp(params, "balance", true))
    {
        format(me, sizeof(me), "** %s presses a button on the ATM machine and waits for a response.", RPN(playerid));
        SendNearbyMessage(playerid, 5, me, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
        SendClientMessage(playerid, COLOR_WHITE, "_________________________________");
        format(string, sizeof(string), "Your current Bank-account balance is: $%d.", PlayerInfo[playerid][pBank]);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }
    return 1;
}
The long list of errors.
Код:
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(1000) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4558) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4586) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4586) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4586) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4586) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4586) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4586) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4741) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4819) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4820) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4832) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4833) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 213: tag mismatch
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4968) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 213: tag mismatch
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(4970) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 213: tag mismatch
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5120) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5157) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5157) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5157) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5157) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5157) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5157) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5194) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5195) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5219) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5219) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5219) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5219) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5219) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5219) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5428) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5442) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5641) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5975) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5975) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5975) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5975) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5975) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5975) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5985) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5985) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5985) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5985) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5985) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5985) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5995) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5995) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5995) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5995) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5995) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(5995) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6005) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6005) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6005) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6005) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6005) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6005) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6015) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6015) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6015) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6015) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6015) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6015) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6025) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6025) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6025) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6025) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6025) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6025) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6101) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6101) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6101) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6101) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6101) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6101) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6121) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6121) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6121) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6121) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6121) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6121) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6131) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6131) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6131) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6131) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6131) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6131) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6141) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6141) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6141) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6141) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6141) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6141) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6151) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6151) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6151) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6151) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6151) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6151) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6161) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6161) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6161) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6161) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6161) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6161) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6171) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6171) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6171) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6171) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6171) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6171) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6247) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6247) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6247) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6247) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6247) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6247) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6440) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6440) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6440) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6440) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6440) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6440) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6449) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6449) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6449) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6449) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6449) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6449) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6463) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6463) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6463) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6463) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6463) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6463) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6475) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6475) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6475) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6475) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6475) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6475) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6487) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6487) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6487) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6487) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6487) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6487) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6506) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6506) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6506) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6506) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6506) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6506) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6521) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6521) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6521) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6521) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6521) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6521) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6541) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6542) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6544) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6544) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6544) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6544) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6544) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6544) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6597) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6612) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6635) : error 029: invalid expression, assumed zero
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6640) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6643) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6643) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6643) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6643) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6643) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6643) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6650) : warning 209: function "cmd_atm" should return a value
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6651) : error 010: invalid function or declaration
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6653) : error 010: invalid function or declaration
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6654) : error 010: invalid function or declaration
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6655) : error 010: invalid function or declaration
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6656) : error 010: invalid function or declaration
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6662) : error 017: undefined symbol "amount"
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6662) : error 021: symbol already defined: "SendClientMessage"
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6662 -- 6673) : error 010: invalid function or declaration
C:\Users\MichaelWharton\Desktop\*\Other\GTA\Server\A-RP\gamemodes\A-RP.pwn(6662 -- 6673) : fatal error 107: too many error messages on one line

Compilation aborted.
Reply
#2

Yes they are. I have took the command out and it then got no errors. put the code back in I get the errors.
Reply
#3

Your missing a braket probably (or somthing like that)

In this line you have 2 spaces before the return, try changing it to one:

if(amount <= 0)return SendClientMessage(playerid, COLOR_GREY, "Invalid money amount.");
Reply
#4

That would have nothing to do with it.
Reply
#5

probably it has to do with it..
Indenting shows whether if you've missing brackets.
It shows how clean your script are.
Reply
#6

Hmm... I guess I can try but I am not all the good at scripting yet
Reply
#7

Okay, I have fixed it... I had two brackets facing the wrong way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)