George Posted January 15, 2011 Report Share Posted January 15, 2011 salut am intampinat niste erori si nu pot sa le dau de capat!Erorile:D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1537) : error 010: invalid function or declaration D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1539) : error 010: invalid function or declaration D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1545) : error 010: invalid function or declaration D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1550) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Liniile ! public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys==KEY_FIRE) { if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Tow Car Company { if (IsPlayerInRangeOfPoint(playerid,5.0,-489.3364,-560.0742,25.5234) || IsPlayerInRangeOfPoint(playerid,5.0,-489.6522,-566.2176,24.3402)) { SetTimer("inchiderepoartatow", 6000, 0); PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960); MoveObject(poartatow1,-499.9010925293, -563.05291748047, 26.059617996216, 0.97); MoveObject(poartatow2,-479.21746826172, -562.96221923828, 26.073129653931, 0.97); SendClientMessage(playerid, COLOR_GREY,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta."); } } return 1; } return 1; } if ((newkeys==KEY_CROUCH )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828)) { SetObjectRot(bariera, 0, 0, 270); SetTimer("closelsdgate",2000,0); } } if (PlayerToPoint(15, playerid,1588.1678,-1633.8999,13.3828) || PlayerToPoint(15, playerid,1589.0842,-1641.1907,13.0884)) { MoveObject(lspdgate,1588.84, -1637.89, 7.18,2); SetTimer("closelsdgate",2000,0); } return 0; }Ma chinui de ceva timp si nu pot sa imi dau seama ce am gresit la functie ! Link to comment Share on other sites More sharing options...
Guest PlayON Posted January 15, 2011 Report Share Posted January 15, 2011 Sti ce-i funny la eroarea asta? Ca nu stiu care is liniile! Link to comment Share on other sites More sharing options...
IstuntmanI Posted January 15, 2011 Report Share Posted January 15, 2011 Daca identitai si tu, asa:public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys==KEY_FIRE) { if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Tow Car Company { if (IsPlayerInRangeOfPoint(playerid,5.0,-489.3364,-560.0742,25.5234) || IsPlayerInRangeOfPoint(playerid,5.0,-489.6522,-566.2176,24.3402)) { SetTimer("inchiderepoartatow", 6000, 0); PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960); MoveObject(poartatow1,-499.9010925293, -563.05291748047, 26.059617996216, 0.97); MoveObject(poartatow2,-479.21746826172, -562.96221923828, 26.073129653931, 0.97); SendClientMessage(playerid, COLOR_GREY,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta."); } } return 1; } return 1; } if ((newkeys==KEY_CROUCH )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828)) { SetObjectRot(bariera, 0, 0, 270); SetTimer("closelsdgate",2000,0); } } if (PlayerToPoint(15, playerid,1588.1678,-1633.8999,13.3828) || PlayerToPoint(15, playerid,1589.0842,-1641.1907,13.0884)) { MoveObject(lspdgate,1588.84, -1637.89, 7.18,2); SetTimer("closelsdgate",2000,0); } return 0; } iti dadeai seama ca ai pus 2 } return 1; Asa e corect: public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys==KEY_FIRE) { if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Tow Car Company { if (IsPlayerInRangeOfPoint(playerid,5.0,-489.3364,-560.0742,25.5234) || IsPlayerInRangeOfPoint(playerid,5.0,-489.6522,-566.2176,24.3402)) { SetTimer("inchiderepoartatow", 6000, 0); PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960); MoveObject(poartatow1,-499.9010925293, -563.05291748047, 26.059617996216, 0.97); MoveObject(poartatow2,-479.21746826172, -562.96221923828, 26.073129653931, 0.97); SendClientMessage(playerid, COLOR_GREY,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta."); } } return 1; } if ((newkeys==KEY_CROUCH )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828)) { SetObjectRot(bariera, 0, 0, 270); SetTimer("closelsdgate",2000,0); } } if (PlayerToPoint(15, playerid,1588.1678,-1633.8999,13.3828) || PlayerToPoint(15, playerid,1589.0842,-1641.1907,13.0884)) { MoveObject(lspdgate,1588.84, -1637.89, 7.18,2); SetTimer("closelsdgate",2000,0); } return 0; } Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted January 17, 2011 Report Share Posted January 17, 2011 Nu inteleg rostu la PlayPlayerSound....pune o muzica din gta san andreeas din acelea ...de la radio adik cand deschizi poarta porneste muzica sau cum=)) New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
Guest PlayON Posted January 17, 2011 Report Share Posted January 17, 2011 TheBoss" post="50620" timestamp="1295287983"]Nu inteleg rostu la PlayPlayerSound....pune o muzica din gta san andreeas din acelea ...de la radio adik cand deschizi poarta porneste muzica sau cum=))Chiar esti da Boss da Prost.PlayerPlaySound /= PlayerPlayMusic(Nu exista asa ceva)Functia aia da play la un sunet din San Andreas. Nu neaparat muzica. Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted January 17, 2011 Report Share Posted January 17, 2011 Chiar esti da Boss da Prost.PlayerPlaySound /= PlayerPlayMusic(Nu exista asa ceva)Functia aia da play la un sunet din San Andreas. Nu neaparat muzica.sI TRB SA MA FACI prost?Nam stiut si eu presupun ca nici tu nu stiai mai demult..cand erai la inceput nu toti sunt scripteri.. New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
Guest PlayON Posted January 17, 2011 Report Share Posted January 17, 2011 TheBoss" post="50628" timestamp="1295289005"]sI TRB SA MA FACI prost?Nam stiut si eu presupun ca nici tu nu stiai mai demult..cand erai la inceput nu toti sunt scripteri..Asa era melodia boratiilor aia de manelari.Si nu suport astia cu nume care contine Boss best Bo$$ si toate cocalariile. Link to comment Share on other sites More sharing options...
Question
George
salut am intampinat niste erori si nu pot sa le dau de capat!
Erorile:
Liniile !Ma chinui de ceva timp si nu pot sa imi dau seama ce am gresit la functie !
Link to comment
Share on other sites
6 answers to this question
Recommended Posts