Warnings Help
#1

I've got these two warnings, I looked around but can not find anything that helped me in case. How do I fix these warnings?

Код:
warning 202: number of arguments does not match definition
warning 217: loose indentation
Warning 202: number of arguments does not match deinition
pawn Код:
if((dialogid == AUDIO_URL) && response) // /audiourl
    {
        if(PlayerInfo[playerid][pAdmin] >= 4)
        {
            new SetPosition = GetPVarInt(playerid, "aURLSetPosition");
            new volume = GetPVarInt(playerid, "aURLvol");
            new range = GetPVarInt(playerid, "aURLrange");
            new Float:aX, Float:aY, Float:aZ;
            GetPlayerPos(playerid, aX, aY, aZ);
            new audioid = SendAudioURLToRange(inputtext,volume,SetPosition,aX,aY,aZ,range);

            if(range > 100)
            {

Warning 217: loose indentation
pawn Код:
CMD:worktolls(playerid, params[])
    {
         if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, -1, "This is an admin only command!");
         if(PlayerInfo[playerid][pAdminDuty] == 1)

        {
            if(tollstatus==1)
                {
                    new string[100];
                    format(string, sizeof(string), " City News: %s has Authorized the use of Tolls", GetPlayerNameEx(playerid));
                    OOCOff(COLOR_OOC,string);
                    tollstatus = 0;
                }
                else
                {
                    new string[100];
                    format(string, sizeof(string), " City News: %s has De-Authorized the use of Tolls", GetPlayerNameEx(playerid));
                    tollstatus = 1;
                }
        }
        else
        {
            SendClientMessage(playerid,COLOR_GRAD1," You cannot use this command");
        }
        return 1;
    }
Reply


Messages In This Thread
Warnings Help - by R9 - 03.01.2013, 09:01
Re: Warnings Help - by Konstantinos - 03.01.2013, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)