[Pomoc]1 error

Započeo mijata
25. Jan. 2015. Zaključano
279
pregleda
10
postova
mijata
4
Shot Caller
25. Jan. 2015.
Skripta koju koristim😄m
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)
Rudimental
5
OG Legend
25. Jan. 2015.

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
{
PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
}
}
else
{
GameTextForPlayer(issuerid, "~r~Team killing not allowed", 3000, 3);
}
}
return 1;
}
mijata
4
Shot Caller
25. Jan. 2015.
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
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
Rudimental
5
OG Legend
25. Jan. 2015.
Postavi te linije isto da vidimo i to
mijata
4
Shot Caller
25. Jan. 2015.
12669:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart)
arnel avdic
5
Underboss
25. Jan. 2015.
vidi vjerovatno koristiš y_ini y_less , otidji i downloaduj najnoviji y inijev include , pa probaj i pročitaj ovaj malo post http://forum.sa-mp.com/showthread.php?t=488198
mijata
4
Shot Caller
25. Jan. 2015.
aj mi posalji link naj novijeg
arnel avdic
5
Underboss
25. Jan. 2015.
nadji na netu
mijata
4
Shot Caller
25. Jan. 2015.
jel da kucam Y_Less include for 0.3z
arnel avdic
5
Underboss
25. Jan. 2015.
mijata wrote on January 25, 2015, 7:22 pm:
jel da kucam Y_Less include for 0.3z


jest

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha