Wysłany: 2016-10-27, 20:29
Szimwu
Wiek: 33 Na forum: 4906 dni Posty: 65
Piwa : 290
Cze?? mam problem z takimi b??dami nie wiem zbytnio co z tutaj moze byc nie tak.
Kod: rpg.pwn(1072) : warning 213: tag mismatch
rpg.pwn(1078) : warning 217: loose indentation
rpg.pwn(1094) : warning 202: number of arguments does not match definition
rpg.pwn(1094) : warning 202: number of arguments does not match definition
rpg.pwn(1101) : warning 217: loose indentation
rpg.pwn(1115) : warning 213: tag mismatch
rpg.pwn(1211) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Oto Kod:
Kod: timer AutoZ[5000]()
{
new Float:X,Float:Y,Float:Z,Float:Xrand,Float:Yrand,Float:Zrand,Float:Angle;
foreach(new i : Player)
{
for(new j = 0; j != MAX_ZOMBIES; j++)
{
FCNPC_GetPosition(j,X,Y,Z);
if(!IsPlayerInRangeOfPoint(i, 40.0, X, Y, Z))
{
if(IsPlayerNPC(j))
{
new rand1=random(2),rand2=random(2);
if(rand1==0) Xrand=X+10+float(random(10));
else Xrand=X-10-float(random(10));
if(rand2==0) Yrand=Y+10+float(random(10));
else Yrand=Y-10-float(random(15));
Zrand=GetPointZPos(Xrand,Yrand,Zrand);
GetPointZPos(Xrand,Yrand,Zrand);
if((Xrand-X)>0&&(Yrand-Y)>0)Angle=atan((Yrand-Y)/(Xrand-X));
else Angle=atan((Yrand-Y)/(Xrand-X))-180;
ApplyAnimation(j,"PED","WOMAN_walkold",3.1,1,1,1,1,0,1);
FCNPC_SetAngle(j,Angle);
FCNPC_GoTo(j, Xrand, Yrand, Zrand, MOVE_TYPE_WALK, 1.0, 1);
}
}
else ClearAnimations(j);
}
}
return 1;
}
rpg.pwn(1072) : warning 213: tag mismatch
To ta linijka
Kod: FCNPC_GoTo(j, Xrand, Yrand, Zrand, MOVE_TYPE_WALK, 1.0, 1);
aa Ten error 025: function heading differs from prototype to linijka:
Kod: public FCNPC_OnChangeNode(playerid, nodeid)
{
return LosSantosNodes(nodeid) ? 1 : 0;
}
Bardzo potrzebowa? bym pomocy.
Wysłany: 2016-10-27, 20:50
Combacior
Wiek: 29 Na forum: 5796 dni Posty: 1516
Piwa : 2161
Kod: FCNPC_GoTo(j, Xrand, Yrand, Zrand, MOVE_TYPE_WALK, 1.0, 1);
Na ko?cu, ostatni parametr to bool, czyli fa?sz albo prawda. Zamiast 1 daj true.
Kod: public FCNPC_OnChangeNode(playerid, nodeid)
Callback r??ni si? od tego, co zosta?o wcze?niej u?yte przy 'forward' - sprawd? dok?adnie, tam nie ma playerid a npcid.
Kod: forward FCNPC_OnChangeNode(npcid, nodeid);
public FCNPC_OnChangeNode(npcid, nodeid)
Wysłany: 2016-10-28, 15:00
Szimwu
Wiek: 33 Na forum: 4906 dni Posty: 65
Piwa : 290
Jeszcze mam jeden problemik nie kumam o co chodzi.
Kod:
Kod: timer Key[300]()
{
new Float:x, Float:y, Float:z;
foreach(new i : Player)
{
for(new j = 0; j != MAX_ZOMBIES; j++)
{
FCNPC_GetPosition(j, x, y, z);
if(IsPlayerInRangeOfPoint(i, 2.0, x, y, z))
{
if(!FCNPC_IsDead(j))
{
FCNPC_SetKeys(j,KEY_FIRE);
}
}
}
}
return 1;
}
I mam taki error:
Kod: warning 202: number of arguments does not match definition
A linijka kt?ra to pokazuje to
Kod: FCNPC_SetKeys(j,KEY_FIRE);
Nie wiem co tutaj jest grane
Wysłany: 2016-10-28, 16:07
Combacior
Wiek: 29 Na forum: 5796 dni Posty: 1516
Piwa : 2161
Zwracasz uwag? chocia? troszeczk? na to, jak wygl?da dana funkcja? Nie wydaje mi si?
Kod: native FCNPC_SetKeys(npcid, ud_analog, lr_analog, keys);
Tagi: tag :: mismatch
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: