[Pomoc]Error

Započeo belmiin, Maj 29, 2012, 22:06:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:GF/Divison RP
Detaljan opis problema:ima ovaj error i nikako da ga se rijesim
Dio skripte:D:\Balkan City0.3e\Balkan City0.3e\BCRP\gamemodes\BCRP.pwn(48606) : error 021: symbol already defined: "RL_OnPlayerKeyStateChange"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Isto tako kad odem na *48606 line ima samo ovo
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new string[128];
new sendername[MAX_PLAYER_NAME];
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
new newcar = GetPlayerVehicleID(playerid);
if(newkeys == KEY_JUMP)//128
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
if(IsPlayerConnected(playerid))
{
if(!engineOn[GetPlayerVehicleID(playerid)])
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
return 1;
}
if(IsAnOwnableCar(newcar))
{
    if(PlayerInfo[playerid][pPcarkey] == newcar) { }
else if(PlayerInfo[playerid][pPcarkey2] == newcar) { }
else if(PlayerInfo[playerid][pPcarkey3] == newcar) { }
else { return 1; }
}
if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
{
return 1;
}
if(newcar == 59 || newcar == 60)
{
return 1;
}
if(newcar >= 139 && newcar <= 154)
{
    if(HireCar[playerid] != newcar)
    {
return 1;
                        }
}
if(IsAHarvest(newcar))
{
    return 1;
}
if(IsAPlane(newcar))
{
return 1;
}
if(gEngine[playerid] == 1) { return 1; }

PutPlayerInVehicle(playerid, newcar, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{C2A2DA}* {FFFFFF}%s {C2A2DA}pokusava da upali motor.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetTimerEx("StartingTheVehicle",3500,0,"i",playerid);
GameTextForPlayer(playerid, "~w~Startovanje motora...",3500,3);
gEngine[playerid] = 1;
return 1;
}
}
}
return 1;
    }
   else if(newkeys == 16)//KEY_SECONDARY_ATTACK
    {
if (GetPlayerState(playerid) == 1) CheckForWalkingTeleport(playerid);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            if(gEngine[playerid] == 0 && engineOn[newcar] == 0)
            {
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
            }
            else if(NoFuel[playerid] == 1)
{
    TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
NoFuel[playerid] = 0;
return 1;
}
        }
    }
if( newkeys == KEY_FIRE )
{
if(statsi[playerid] == 1)
{
  TextDrawDestroy(stats0[playerid]);
  TextDrawDestroy(stats1[playerid]);
  TextDrawDestroy(stats2[playerid]);
  TextDrawDestroy(stats3[playerid]);
  TextDrawDestroy(imeig[playerid]);
  TextDrawDestroy(rankorg[playerid]);
  TextDrawDestroy(satig[playerid]);
  TextDrawDestroy(levelstats[playerid]);
  TextDrawDestroy(respekt[playerid]);
  TextDrawDestroy(donator[playerid]);
  TextDrawDestroy(godine[playerid]);
  TextDrawDestroy(pol[playerid]);
  TextDrawDestroy(drzava[playerid]);
  TextDrawDestroy(posao[playerid]);
  TextDrawDestroy(orgstats[playerid]);
  TextDrawDestroy(materijalistats[playerid]);
  TextDrawDestroy(droga1[playerid]);
  TextDrawDestroy(telkred[playerid]);
  TextDrawDestroy(kucak[playerid]);
  TextDrawDestroy(stank[playerid]);
  TextDrawDestroy(firmak[playerid]);
  TextDrawDestroy(vozilok1[playerid]);
  TextDrawDestroy(vozilok2[playerid]);
  TextDrawDestroy(vozilok3[playerid]);
  TextDrawDestroy(intidstats[playerid]);
  TextDrawDestroy(bankastats[playerid]);
  TextDrawDestroy(novacstats[playerid]);
  TextDrawHideForPlayer(playerid, stats0[playerid]);
  TextDrawHideForPlayer(playerid, stats1[playerid]);
  TextDrawHideForPlayer(playerid, stats2[playerid]);
  TextDrawHideForPlayer(playerid, stats3[playerid]);
  TextDrawHideForPlayer(playerid, imeig[playerid]);
  TextDrawHideForPlayer(playerid, rankorg[playerid]);
  TextDrawHideForPlayer(playerid, satig[playerid]);
  TextDrawHideForPlayer(playerid, levelstats[playerid]);
  TextDrawHideForPlayer(playerid, respekt[playerid]);
  TextDrawHideForPlayer(playerid, donator[playerid]);
  TextDrawHideForPlayer(playerid, godine[playerid]);
  TextDrawHideForPlayer(playerid, pol[playerid]);
  TextDrawHideForPlayer(playerid, drzava[playerid]);
  TextDrawHideForPlayer(playerid, posao[playerid]);
  TextDrawHideForPlayer(playerid, orgstats[playerid]);
  TextDrawHideForPlayer(playerid, materijalistats[playerid]);
  TextDrawHideForPlayer(playerid, droga1[playerid]);
  TextDrawHideForPlayer(playerid, telkred[playerid]);
  TextDrawHideForPlayer(playerid, kucak[playerid]);
  TextDrawHideForPlayer(playerid, stank[playerid]);
  TextDrawHideForPlayer(playerid, firmak[playerid]);
  TextDrawHideForPlayer(playerid, vozilok1[playerid]);
  TextDrawHideForPlayer(playerid, vozilok2[playerid]);
  TextDrawHideForPlayer(playerid, vozilok3[playerid]);
  TextDrawHideForPlayer(playerid, intidstats[playerid]);
  TextDrawHideForPlayer(playerid, novacstats[playerid]);
  TextDrawHideForPlayer(playerid, bankastats[playerid]);
  statsi[playerid] = 0;
}
}
//if (HOLDING( KEY_SPRINT ))
//if(!IsPlayerInAnyVehicle(playerid))
//{
//if (PRESSED( KEY_JUMP ))
//if(!IsPlayerInAnyVehicle(playerid)) // funkcionise samo kad nije u vozilu
//{
//ClearAnimations(playerid);
//SendClientMessage(playerid,COLOR_WHITE,"{FFFFFF}Ne radi {0084e3}BunnyHop {FFFFFF}bices {0084e3}prisonovan!");
//GetPlayerName(playerid, sendername, sizeof(sendername));
//format(string, sizeof(string), "{FFFFFF}Igrac {FFAF00}%s {FFFFFF}pokusava da radi {FFAF00}BunnyHop.", sendername);
//SendAdminMessage(COLOR_YELLOW, string);
//}
//return 1;
//}

      if( newkeys == KEY_ACTION ) // STOJ POLICIJA TEST ZA POLICIJU [  ] CTRL
        {
        if(IsPlayerInAnyVehicle(playerid)) // funkcionise samo kad je u vozilu
               {
  if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{1E6CE1}Policija {FFFFFF}!!! {1E6CE1}Naredjujemo vam da {FFFFFF}stanete{1E6CE1}, inace cemo upotrebiti {FFFFFF}silu {1E6CE1}!", sendername);
                ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
                return 1;
               }
}
}
    if( newkeys == KEY_ACTION ) // STOJ POLICIJA TEST ZA POLICIJU [  ] CTRL
        {
              if(IsPlayerInAnyVehicle(playerid)) // funkcionise samo kad je u vozilu
               {
  if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//
        {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{1E6CE1}FBI {FFFFFF}!!! {1E6CE1}Naredjujemo vam da {FFFFFF}stanete{1E6CE1}, inace cemo upotrebiti {FFFFFF}silu {1E6CE1}!", sendername);
                ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
                return 1;
                       }
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
{
if ((newkeys==KEY_ACTION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
    {
    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
        {
        SendClientMessage(playerid,0xFFFF00AA,"{FFDD03}pokusava da zakaci auto");
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
new Float:vX,Float:vY,Float:vZ;
new Found=0;
new vid=0;
while((vid<MAX_VEHICLES)&&(!Found))
    {
    vid++;
    GetVehiclePos(vid,vX,vY,vZ);
    if  ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
        {
        Found=1;
        if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
            {
            DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
            }
        AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
        SendClientMessage(playerid,0xFFFF00AA,"{038DFF}Auto zakaceno!");
        }
        }
if  (!Found)
    {
    SendClientMessage(playerid,0xFFFF00AA,"{FFDD03}Nema auta u blizini.");
    }
    }
    }
}
///////////////////////////////////////////////////PD VRATA 2//////////////////////////////////////////
    if( newkeys == KEY_WALK ) // PD VRATA 2
{
if (IsPlayerInRangeOfPoint( playerid, 5.0, 250.5,65.400001525879,1002.5999755859))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        {
    MoveObject(pdvratac1,250.5,65.400001525879,1002.5999755859, 2.00); // kordinate otvorene kapije
                MoveObject(pdvratac2,250.5,62.599998474121,1002.5999755859, 2.00);
SetTimer("vratapdc12", 7000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"PD Vrata su otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara vrata.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
              }
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
     if( newkeys == KEY_CROUCH ) // VAGOS RAMPA
{
         if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
         {
            if (PlayerToPoint(10.0, playerid,2592.8999023438, -1057.5, 69.400001525879) | PlayerToPoint(10.0, playerid,2607.1000976563, -1057.5, 69.400001525879))
              {
              DestroyObject(VagosZatvorena1);
              DestroyObject(VagosZatvorena2);
              VagosOtvorena1 = CreateObject(968, 2592.8999023438, -1057.5, 69.400001525879, 0, 14, 0);
              VagosOtvorena2 = CreateObject(968, 2607.1000976563, -1057.5, 69.400001525879, 0, 343.99996948242, 0);
  SetTimer("vagoszatvori", 7000, 0);
              SCM(playerid, COLOR_BLUE,"Vagos Rampa je otvorena i zatvorice se za 7 sekundi.");
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string, sizeof(string), "* %s uzima daljinski i otvara rampu.", sendername);
              ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  return 1;
                     }
             }
       }
     if( newkeys == KEY_CROUCH ) // PDRAMPA
{
         if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
         {
            if (PlayerToPoint(10.0, playerid,1544.6999511719, -1630.8000488281, 13.10000038147))
              {
              DestroyObject(pdrampazatvorena);
              pdrampaotvorena = CreateObject(968, 1544.6999511719, -1630.8000488281, 13.10000038147, 0, 353.99993896484, 269.99996948242);
              SetTimer("pdrampazatvori", 7000, 0);
              SCM(playerid, COLOR_BLUE,"PD Rampa je otvorena i zatvorice se za 7 sekundi.");
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string, sizeof(string), "* %s uzima daljinski i otvara rampu.", sendername);
              ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  return 1;
                     }
             }
       }
if( newkeys == KEY_CROUCH ) // BOLNICA RAMPA
{
         if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
         {
            if (PlayerToPoint(10.0, playerid,1144.3000488281,-1292.5,13.39999961853))
              {
              DestroyObject(BolnicaRampa);
              BolnicaRampa1 = CreateObject(968, 1144.2998046875, -1292.5, 13.39999961853, 0, 347.99993896484, 0);
              SetTimer("rampazatvori", 7000, 0);
              SCM(playerid, COLOR_BLUE,"Bolnicarska Rampa je otvorena i zatvorice se za 7 sekundi.");
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string, sizeof(string), "* %s uzima daljinski i otvara rampu.", sendername);
              ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  return 1;
                     }
             }
       }
    if( newkeys == KEY_CROUCH ) // PD KAPIJA
{
if (IsPlayerInRangeOfPoint( playerid, 10.0, 1590.4000244141, -1638, 15.199999809265))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
        {
    MoveObject(kapijapd1,1597.4000244141, -1638 ,15.199999809265, 2.00); // kordinate otvorene kapije
                SetTimer("pdkapija1", 7000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"PD Kapija je otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara kapiju.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
                        }
}
}
    if( newkeys == KEY_WALK ) // PD VRATA
{
if (IsPlayerInRangeOfPoint( playerid, 5.0, 247.89999389648, 72.599998474121, 1002.5999755859))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        {
    MoveObject(pdvrata1,248.69999694824, 72.599998474121, 1002.5999755859, 2.00); // kordinate otvorene kapije
                MoveObject(pdvrata2,245.60000610352, 72.599998474121, 1002.5999755859, 2.00);
SetTimer("vratapd", 7000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"PD Vrata su otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara vrata.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
              }
}
}
if( newkeys == KEY_CROUCH ) // FBI KAPIJA
{
if (IsPlayerInRangeOfPoint( playerid, 10.0, 1286.125, -1652.1044921875, 17.460855484009))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
        {
    MoveObject(fbikapija1,1286.125,-1652.1044921875,22.710855484009, 2.00); // kordinate otvorene kapije
                SetTimer("kapijafbi1", 7000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"FBI Kapija je otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara kapiju.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
                        }
}
}
if( newkeys == KEY_CROUCH ) // Tec kapija2
{
if (IsPlayerInRangeOfPoint( playerid, 10.0, 1019.48046875, -315.0673828125, 74.313888549805))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
        {
    MoveObject(Kapija5,1015.40625,-315.087890625,74.619956970215, 2.00); // kordinate otvorene kapije
                SetTimer("Teckapija5", 7000, 0);
                SendClientMessage(playerid, COLOR_BLUE,"Garaza od LeÅ¡inara je otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara garazu.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
                        }
}
}
if( newkeys == KEY_CROUCH ) // Tec kapija1
{
if (IsPlayerInRangeOfPoint( playerid, 10.0, 1027.7431640625, -366.814453125, 75.677352905273))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
        {
    MoveObject(Kapija4,1027.7431640625,-366.814453125,80.177352905273, 2.00); //kordinate otvorene kapije
                SetTimer("Teckapija4", 7000, 0);
                SendClientMessage(playerid, COLOR_BLUE,"Kapija od LeÅ¡inara je otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara kapiju.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
                }
}
}
if( newkeys == KEY_CROUCH ) // ruska kapija1
{
if (IsPlayerInRangeOfPoint( playerid, 10.0, 1812.791015625, -2072.0380859375, 13.32569694519))   //kordinate zatvorene kapije
{
             if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
        {
    MoveObject(Kapija,1812.7734375,-2062.47265625,13.382766723633, 2.00); // kordinate otvorene kapije
                SetTimer("RuskaKapija1", 7000, 0);
                SendClientMessage(playerid, COLOR_BLUE,"Kapija Ruske Mafije je otvorena i zatvorice se za 7 sekundi.");
          GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s uzima daljinski i otvara kapiju.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
                        }
}
}
if(PRESSED(KEY_SUBMISSION))
{
    if (IsPlayerInAnyVehicle(playerid))
    {
        if (VehicleLightsOn[GetPlayerVehicleID(playerid)] == false)
        {
                GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
        UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, encode_lights(0, 0, 0, 0), tires);
                VehicleLightsOn[GetPlayerVehicleID(playerid)] = true;
                SendClientMessage(playerid, COLOR_GRAD1,"{6EF83C}[SVETLA] {FFFFFF}Upaljena !");
}
        else
        {
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
        UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, encode_lights(1, 1, 1, 1), tires);
    VehicleLightsOn[GetPlayerVehicleID(playerid)] = false;
                SendClientMessage(playerid, COLOR_GRAD1,"{F81414}[SVETLA] {FFFFFF}Ugasena !");
}
}
}
    return 1;
}

Zamjeni public public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) sa public RL_public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)










Services
Web Designing
Graphic Designing
PAWN Scripting

ne moze dobijem onda jedan WarningD:\Balkan City0.3e\Balkan City0.3e\BCRP\gamemodes\BCRP.pwn(48605) : warning 235: public function lacks forward declaration (symbol "RL_publicOnPlayerKeyStateChange")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

i ingame mi ne radi ni jedna funkcija koje ide na tastaturi nece da ulazi u zgrade nece da uplai kola nista sta se radi sa tastaturom ne radi