SA-MP Forums Archive
How to get rid of these? - 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: How to get rid of these? (/showthread.php?tid=344369)



How to get rid of these? - FinalxT - 20.05.2012

C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(32940) : warning 202: number of arguments does not match definition
C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(32940) : warning 202: number of arguments does not match definition
C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(32957) : error 001: expected token: ")", but found "{"
C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(33052) : warning 202: number of arguments does not match definition
C:\Users\owner\Desktop\PUre 0.3d\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(33052) : warning 202: number of arguments does not match definition
C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(9005 : warning 203: symbol is never used: "GetPizzaDistance"
C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(9005 : warning 203: symbol is never used: "MainMenuUpdateForPlayer"
C:\Users\owner\Desktop\firestorm 0.3e\firestorm 0.3e\gamemodes\FRP.pwn(9005 : warning 203: symbol is never used: "ShowMainMenuGUI"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: How to get rid of these? - doreto - 20.05.2012

When you first show as your code and error lines !!


Re: How to get rid of these? - BlackStrike - 20.05.2012

Yeah, showing the line with problems could be useful, we can't help you without that.


Re: How to get rid of these? - FinalxT - 20.05.2012

pawn Код:
}

CMD:sasp(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 287,293.7350,188.2314,1007.1719,179.0727))
        {
            ShowPlayerDialog(playerid, DIALOG_SASP, DIALOG_STYLE_LIST, "SASP: Lockers", "Toggle Duty\nEquipment\nClothing Selection\nClear Suspect", "Proceed", "Cancel");
        }
        else
        {
            SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your SASP lockers.");
        }
    }
    return 1;
}
pawn Код:
CMD:sanews(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 621.7416,-8.3904,1102.7633))
        {
            ShowPlayerDialog(playerid, DIALOG_SANEWS, DIALOG_STYLE_LIST, "SANews: Lockers", "Toggle Duty\nCamera\nKevlar Vest ($2000)\nFirst Aid Kit\n9mm ($1000)\nClothing Selection", "Proceed", "Cancel");
        }
        else
        {
            SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your SANews lockers.");
        }
    }
    return 1;
}
pawn Код:
CMD:se(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
        if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38) && GetPlayerVirtualWorld(playerid) == 20041)// SENATE Duty
        {
            ShowPlayerDialog(playerid, SEMENU, DIALOG_STYLE_LIST, "Government","Duty\nUniforms\nEquipment", "Select", "Cancel");
        }
        else
        {
            SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your Senate lockers.");
        }
    }
    return 1;
}



Re: How to get rid of these? - sniperwars - 20.05.2012

EDIT: You just posted your code as I posted my post.


Re: How to get rid of these? - Cameltoe - 20.05.2012

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
EDIT: You just posted your code as I posted my post.
It has already been pointed out anyhow..

pawn Код:
CMD:sasp(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 287, 293.7350, 188.2314))
        {
            ShowPlayerDialog(playerid, DIALOG_SASP, DIALOG_STYLE_LIST, "SASP: Lockers", "Toggle Duty\nEquipment\nClothing Selection\nClear Suspect", "Proceed", "Cancel");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You aren't in range of your SASP lockers.");
        }
    }
    return 1;
}

CMD:sanews(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 621.7416,-8.3904,1102.7633))
        {
            ShowPlayerDialog(playerid, DIALOG_SANEWS, DIALOG_STYLE_LIST, "SANews: Lockers", "Toggle Duty\nCamera\nKevlar Vest ($2000)\nFirst Aid Kit\n9mm ($1000)\nClothing Selection", "Proceed", "Cancel");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You aren't in range of your SANews lockers.");
        }
    }
    return 1;
}

CMD:se(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
        if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38) && GetPlayerVirtualWorld(playerid) == 20041)// SENATE Duty
        {
            ShowPlayerDialog(playerid, SEMENU, DIALOG_STYLE_LIST, "Government","Duty\nUniforms\nEquipment", "Select", "Cancel");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You aren't in range of your Senate lockers.");
        }
    }
    return 1;
}