Jump to content

Question

Posted

Deci am niste erori banale dar nu le dau de cap :| le-am inversat modificat si degeaba :|

linia

[pawn]static SetPlayerLookAt(playerid,Float:x,Float:y)[/pawn]

eroare

[pawn](119) : error 001: expected token: ";", but found "static"[/pawn]

//=========================================================

linia

[pawn]if(!OnFly (playerid)) && StartFly(playerid)[/pawn] cred ca nu e aranjata bn :|

Eroare

[pawn](55258) : error 012: invalid function call, not a valid address

(55258) : error 001: expected token: ";", but found ")"

(55258) : error 029: invalid expression, assumed zero

(55258) : fatal error 107: too many error messages on one line[/pawn]

2 answers to this question

Recommended Posts

Posted

La prima eroare pune asa

[pawn]static SetPlayerLookAt(playerid,Float:x,Float:y);[/pawn]

Iar la a doua pune asa

[pawn]if(!(OnFly (playerid) && StartFly(playerid)))[/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

Ce mi-ai dat u acolo nu e bun :( imi da aceleasi erori......

iti postez toata functia poate asa iti dai seama  ...

primele eroari

[pawn](119) : error 001: expected token: ";", but found "static"[/pawn]

[pawn]

linia cu eroare static SetPlayerLookAt(playerid,Float:x,Float:y) {

new Float:Px, Float:Py, Float: Pa;

GetPlayerPos(playerid, Px, Py, Pa);

Pa = floatabs(atan((y-Py)/(x-Px)));

if (x <= Px && y >= Py) Pa = floatsub(180.0, Pa);

else if (x < Px && y < Py) Pa = floatadd(Pa, 180.0);

else if (x >= Px && y <= Py) Pa = floatsub(360.0, Pa);

Pa = floatsub(Pa, 90.0);

if (Pa >= 360.0)

Pa = floatsub(Pa, 360.0);

SetPlayerFacingAngle(playerid, Pa);

return;

}[/pawn]

si a 2a

[pawn](55258) : error 012: invalid function call, not a valid address

(55258) : error 001: expected token: ";", but found ")"

(55258) : error 029: invalid expression, assumed zero

(55258) : fatal error 107: too many error messages on one line[/pawn]

[pawn]    new string[128], OnFly , StartFly;

if(PRESSED(KEY_SUBMISSION))

{

if(IsPlayerConnected(playerid) && !IsPlayerInAnyVehicle(playerid))

{

if(AdminDuty[playerid] && PlayerInfo[playerid][pAdmin] >= 1337)

{

linia cu eroare if(!(OnFly (playerid)) && StartFly(playerid))

else StopFly(playerid);

}

}

}[/pawn]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.