[Pomoc] Errori

Započeo CarterIV, Decembar 07, 2012, 23:56:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:GF
Detaljan opis problema: Ubacio sam kada ocu da udjem u pd da se ulazi na tipku enter i sad mi je izbacilo ove errore :S
Dio skripte:C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39734) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39747) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39811) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39826) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39842) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39857) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39872) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(39887) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(51290) : warning 217: loose indentation
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(51292) : warning 217: loose indentation
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(70077) : error 030: compound statement not closed at the end of file (started at line 37046)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno)://

To se stavlja pod OnPlayerKeyStateChange. :)

Ubacio i sada mi izbacuje error u liniji koja nepostoji :S

C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(70077) : error 030: compound statement not closed at the end of file (started at line 37162)


Citat: --Lood-- poslato Decembar 08, 2012, 09:50:47 PRE PODNE
negde si zaboravio zavorit }


otvorio si u redu 37162 i nisi zatvorio ;)

if (!IsPlayerConnected(playerid)) return 0;
Ovdje mi izbacuje taj error...
Ovo nema veze sa onim sto sam radio :S

Gle, taj kod ide po OnPlayerKeyStateChange, posto si sigurno namestao da se moze uci u prostoriju sa dugmicem, tako da si ga smestio u pogresan callback , smesti ga gde sam ti reko :)

Citat: Blaeks poslato Decembar 08, 2012, 10:47:28 PRE PODNE
Gle, taj kod ide po OnPlayerKeyStateChange, posto si sigurno namestao da se moze uci u prostoriju sa dugmicem, tako da si ga smestio u pogresan callback , smesti ga gde sam ti reko :)

Tu sam i stavio....

Postavi to ovde da vidim sta si radio.

if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
    {
        MoveDynamicObject(fbikapija1, 1277.567505, -1657.670288, 9.320267, 5.0);
        MoveDynamicObject(fbikapija2, 1277.557007, -1646.116943, 9.320267, 5.0);
        SetTimer("FBIGateClose", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Kapija ce se automatski zatvoriti za 5 sekundi.");
}
  else
    SendClientMessage(playerid, COLOR_RED,"Niste Agent.");
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
    {
        SetDynamicObjectRot(fbirampa1,0.0000, 0.0000, 270.0000);
        SetTimer("FBIRampDown1", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 5 sekundi.");
}
  else
    SendClientMessage(playerid, COLOR_RED,"Niste Agent.");
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
    {
        SetDynamicObjectRot(ramp,0.00000,0.00000,90.00000);
        SetTimer("RampDown", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 5 sekundi.");
}
  else
{
    SendClientMessage(playerid, COLOR_RED,"Niste policajac.");
    return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
    {
        SetDynamicObjectRot(asramp1,0.00000,0.00000,90.00000);
        SetDynamicObjectRot(asramp2,0.00000,0.00000,90.00000);
        SetTimer("ASRampDown", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 5 sekundi.");
}
  else
{
    SendClientMessage(playerid, COLOR_RED,"Niste djelatnik autoskole.");
    return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMayorTeam] == 1)
    {
        SetDynamicObjectRot(gradramp,0.00000,0.00000,40.00000);
        SetTimer("gradrampDown", 7000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 7 sekundi.");
}
  else
{
    SendClientMessage(playerid, COLOR_RED,"Niste gradonacelnik/njegov radnik.");
    return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4)
    {
        SetDynamicObjectRot(fdramp,0.00000,0.00000,0.00000);
        SetTimer("fdrampDown", 6000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 6 sekundi.");
}
  else
{
    SendClientMessage(playerid, COLOR_RED,"Niste Doktor/Vatrogasac.");
    return 1;
}
      return 1;
}
    if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
    {
        MoveDynamicObject(pdkapija,1597.005127, -1638.166748, 15.182871, 5.5);
        SetTimer("GateClose", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Kapija ce se automatski zatvoriti za 5 sekundi.");
}
  else
{
    SendClientMessage(playerid, COLOR_RED,"Niste policajac.");
    return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
    {
      MoveDynamicObject(pdvrata,1581.049683, -1638.064209, 12.302959, 1.5);
      SetTimer("GateClose", 5000, 0);
      SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Vrata ce se automatski zatvoriti za 5 sekundi.");
}
  else
{
    SendClientMessage(playerid, COLOR_RED,"Niste policajac.");
    return 1;
}
      return 1;
}

if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
    {
    MoveDynamicObject(fbikapija1, 1277.567505, -1657.670288, 9.320267, 5.0);
    MoveDynamicObject(fbikapija2, 1277.557007, -1646.116943, 9.320267, 5.0);
        SetTimer("FBIGateClose", 5000, 0);
    SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Kapija ce se automatski zatvoriti za 5 sekundi.");
}
  else
        SendClientMessage(playerid, COLOR_RED,"Niste Agent.");
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
    {
    SetDynamicObjectRot(fbirampa1,0.0000, 0.0000, 270.0000);
    SetTimer("FBIRampDown1", 5000, 0);
    SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 5 sekundi.");
}
  else
SendClientMessage(playerid, COLOR_RED,"Niste Agent.");
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
    {
        SetDynamicObjectRot(ramp,0.00000,0.00000,90.00000);
    SetTimer("RampDown", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 5 sekundi.");
}
  else
{
SendClientMessage(playerid, COLOR_RED,"Niste policajac.");
        return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
    {
        SetDynamicObjectRot(asramp1,0.00000,0.00000,90.00000);
    SetDynamicObjectRot(asramp2,0.00000,0.00000,90.00000);
    SetTimer("ASRampDown", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 5 sekundi.");
}
  else
{
SendClientMessage(playerid, COLOR_RED,"Niste djelatnik autoskole.");
return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMayorTeam] == 1)
    {
    SetDynamicObjectRot(gradramp,0.00000,0.00000,40.00000);
    SetTimer("gradrampDown", 7000, 0);
    SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 7 sekundi.");
}
  else
        {
SendClientMessage(playerid, COLOR_RED,"Niste gradonacelnik/njegov radnik.");
return 1;
}
      return 1;
}
if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4)
    {
    SetDynamicObjectRot(fdramp,0.00000,0.00000,0.00000);
        SetTimer("fdrampDown", 6000, 0);
    SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Rampa ce se automatski spustiti za 6 sekundi.");
}
  else
{
SendClientMessage(playerid, COLOR_RED,"Niste Doktor/Vatrogasac.");
        return 1;
}
      return 1;
}
        if(newkeys & 2)
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
    {
    MoveDynamicObject(pdkapija,1597.005127, -1638.166748, 15.182871, 5.5);
    SetTimer("GateClose", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Kapija ce se automatski zatvoriti za 5 sekundi.");
}
  else
{
SendClientMessage(playerid, COLOR_RED,"Niste policajac.");
return 1;
}
      return 1;
}
if(newkeys & 2)
{
  if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
  {
      MoveDynamicObject(pdvrata,1581.049683, -1638.064209, 12.302959, 1.5);
      SetTimer("GateClose", 5000, 0);
      SendClientMessage(playerid, COLOR_WHITE,"Indetitet potvrdjen. Vrata ce se automatski zatvoriti za 5 sekundi.");
}
  else
{
SendClientMessage(playerid, COLOR_RED,"Niste policajac.");
        return 1;
}
      return 1;
}
I  znaci ovo stavis pod OnPlayerKeyStateChange, i ne moze da bude errora zato sto sam testirao ovo sad na GF skripti.

Hvala vise nema errora :D

Ali imam sad jos jedan problem kada pridjem kapiji i pritisnem da se otvori izbaci mi onaj tekst za otvaranje ali se kapija ne pomjera :S