Jump to content

[REZOLVAT] Problema compilare.


TSN
 Share

Recommended Posts

Username: dulcaalexandru
Problema întălnită: la compilare
Detalii despre problemă: Cand compilez cu zeex-compile imi compileaza dar imi da aceste warning-uri
Ce ai încercat să faci înainte să postezi?:nimic pentru ca nu stiu de la ce provine.
Cod sursă (recomandat pastebin.com) :
Alte detalii:

 

abiregele.pwn(14378) : warning 208: function with tag result used before definition, forcing reparse
abiregele.pwn(30622) : warning 208: function with tag result used before definition, forcing reparse
abiregele.pwn(36327) : warning 208: function with tag result used before definition, forcing reparse

-14378

function Float:GetDistanceBetweenPlayers(p1,p2) {
	new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
	if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)) return -1.00;
	GetPlayerPos(p1,x1,y1,z1);
	GetPlayerPos(p2,x2,y2,z2);
	return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}

-30622

function Float:DistanceToPlayer(playerid, targetid) {
	new Float: Pos[3], Float: distance;
	GetPlayerPos(targetid, Pos[0], Pos[1], Pos[2]);
	distance = GetPlayerDistanceFromPoint(playerid, Pos[0], Pos[1], Pos[2]);
	return distance;
}

-36327

function Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ, Float:ObjX, Float:ObjY, Float:ObjZ, Float:FrX, Float:FrY, Float:FrZ) {
	new Float:TGTDistance;
	TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));
	new Float:tmpX, Float:tmpY, Float:tmpZ;
	tmpX = FrX * TGTDistance + CamX;
	tmpY = FrY * TGTDistance + CamY;
	tmpZ = FrZ * TGTDistance + CamZ;
	return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
}

Tin sa mentionez ca daca compilez cu pawno normal nu imi arata aceste warning-uri

?imw=5000&imh=5000&ima=fit&impolicy=Lett

Link to comment
Share on other sites

Acum 14 ore, L0K3D a spus:

Incearca sa muti functiile la inceputul modului de joc. Cum ai defenit macro-ul "function"?

#define function%0(%1) forward %0(%1); public %0(%1)

?imw=5000&imh=5000&ima=fit&impolicy=Lett

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...