Jump to content
  • 0

Problema cshoo.inc


Punct.

Question

Nick: Punct.

Problema: Cateva erori la un include

Erori / warnings:

\pawno\include\cshoot.inc(67) : error 010: invalid function or declaration
\pawno\include\cshoot.inc(67) : error 010: invalid function or declaration
\pawno\include\cshoot.inc(403) : error 017: undefined symbol "a@YSII_Ag"
\pawno\include\cshoot.inc(403) : error 017: undefined symbol "a@YSII_Ag"
\pawno\include\cshoot.inc(403) : error 029: invalid expression, assumed zero
\pawno\include\cshoot.inc(403) : fatal error 107: too many error messages on one line

Linii/script:

[pawn]

Itter_Create(Cows, MAX_COWS); // Linie 67

forward cowTimer();

public cowTimer()

{

if(cTimer[1] == C_MOVE_DELAY)

{

foreach(new Cows : a) // Linie 403

{

if(!IsCowDead(a))

{

new

Float:cPos[2];

if(IsObjectInRangeOfPoint(cowData[a][ObjectID],

cowData[a][Range],

cowData[a][Pos][0],

cowData[a][Pos][1],

cowData[a][Pos][2]))

{

cPos[0] = cowData[a][Pos][0] + float(randomEx(floatround(cowData[a][Range] / 2), floatround(cowData[a][Range])));

cPos[1] = cowData[a][Pos][1] + float(randomEx(floatround(cowData[a][Range] / 2), floatround(cowData[a][Range])));

MoveObject(cowData[a][ObjectID], cPos[0], cPos[1], cowData[a][Pos][2], cowData[a][speed]);

}

else

{

cPos[0] = cowData[a][Pos][0];

cPos[1] = cowData[a][Pos][1];

MoveObject(cowData[a][ObjectID], cPos[0], cPos[1], cowData[a][Pos][2], cowData[a][speed]);

}

SetCowAngleToPos(a, cPos[0], cPos[1]);

}

}

cTimer[1] = 0;

}

else cTimer[1]++;

return true;

}

[/pawn]

Ai incercat sa rezolvi singur ?: Da.. dar nu reusesc. Am gasit si pe sa-mp.com ceva, dar tot nu am reusit..

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

UP

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Sterge acel Itter_Add

si pune asta

[pawn]

forward cowTimer();

public cowTimer()

{

if(cTimer[1] == C_MOVE_DELAY)

{

for(new a = 0; a < MAX_COWS; a++) // Linie 403

{

if(!IsCowDead(a))

{

new

Float:cPos[2];

if(IsObjectInRangeOfPoint(cowData[a][ObjectID],

cowData[a][Range],

cowData[a][Pos][0],

cowData[a][Pos][1],

cowData[a][Pos][2]))

{

cPos[0] = cowData[a][Pos][0] + float(randomEx(floatround(cowData[a][Range] / 2), floatround(cowData[a][Range])));

cPos[1] = cowData[a][Pos][1] + float(randomEx(floatround(cowData[a][Range] / 2), floatround(cowData[a][Range])));

MoveObject(cowData[a][ObjectID], cPos[0], cPos[1], cowData[a][Pos][2], cowData[a][speed]);

}

else

{

cPos[0] = cowData[a][Pos][0];

cPos[1] = cowData[a][Pos][1];

MoveObject(cowData[a][ObjectID], cPos[0], cPos[1], cowData[a][Pos][2], cowData[a][speed]);

}

SetCowAngleToPos(a, cPos[0], cPos[1]);

}

}

cTimer[1] = 0;

}

else cTimer[1]++;

return true;

}[/pawn]

I'm back bitches.

Link to comment
Share on other sites

A mai ramas linia 67 cu probleme..

\pawno\include\cshoot.inc(67) : error 010: invalid function or declaration
\pawno\include\cshoot.inc(67) : error 010: invalid function or declaration

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Topic Inchis , fara reply in ultimele 48 ore.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.