Detaljan opis problema:zasto kada ovo dodam imam 1 error
Dio skripte:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid))
{
if((weaponid == 23 || weaponid == 33 || weaponid == 34) && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
GameTextForPlayer(issuerid, "~r~Headshot", 3000, 3);
GameTextForPlayer(playerid, "~r~Headshot", 3000, 3);
}
else return PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
}else {GameTextForPlayer(issuerid, "~r~Team killing not allowed", 3000, 3);}
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(10682) : warning 209: function "cmd_dskin" should return a value
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(12669) : error 025: function heading differs from prototype
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(12681) : warning 217: loose indentation
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(12684) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
linija 12669:OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart)