SA-MP Forums Archive
help 1 error - 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: help 1 error (/showthread.php?tid=559241)



help 1 error - Mijata - 21.01.2015

Код:
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;
}



Re: help 1 error - xVIP3Rx - 21.01.2015

show above line 28


Re: help 1 error - Mijata - 21.01.2015

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.




Re: help 1 error - Mijata - 21.01.2015

?


Re: help 1 error - xVIP3Rx - 21.01.2015

Take a look at this, might be helpful