SA-MP Forums Archive
Warnings Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warnings Help (/showthread.php?tid=404453)



Warnings Help - R9 - 03.01.2013

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;
    }



Re: Warnings Help - Konstantinos - 03.01.2013

Can you specify the lines, please.