andreiutzu961 Posted April 18, 2013 Report Share Posted April 18, 2013 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] Link to comment Share on other sites More sharing options...
Gireada Posted April 19, 2013 Report Share Posted April 19, 2013 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] Link to comment Share on other sites More sharing options...
andreiutzu961 Posted April 19, 2013 Author Report Share Posted April 19, 2013 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] Link to comment Share on other sites More sharing options...
Question
andreiutzu961
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]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts