help 1 error
#1

Код:
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\VELIKI UPDATE\filterscripts\cls.pwn(28) : warning 225: unreachable code
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\VELIKI UPDATE\filterscripts\cls.pwn(28) : warning 217: loose indentation
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\VELIKI UPDATE\filterscripts\cls.pwn(55) : error 025: function heading differs from prototype
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\VELIKI UPDATE\filterscripts\cls.pwn(61) : warning 202: number of arguments does not match definition
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\VELIKI UPDATE\filterscripts\cls.pwn(61) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
public OnPlayerSpawn(playerid)
{
        ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"Class selection:","Assault\nSniper(100 score required)\nClose range(300 score required)\nPyroman(500 score required)\nBig killer(1000 score required)","Choose","");
        return 1;
}
---------line 55-----------------------public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0.0);
        GameTextForPlayer(playerid, "~r~HEADSHOT!", 7000, 5); // Will display to the person who is killed.
        GameTextForPlayer(issuerid, " ~R~Headshot Kill!"); // Will display to the person who killed.
    }
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}


public OnVehicleSpawn(vehicleid)
{
        return 1;
}
Reply
#2

show above line 28
Reply
#3

i fixed 28 but now only

Quote:

D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\VELIKI UPDATE\filterscripts\cls.pwn(55) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#4

?
Reply
#5

Take a look at this, might be helpful
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)