Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Dane poslato Septembar 02, 2011, 17:40:14 POSLE PODNE

Naslov: [Pomoc]Oko komande /ah
Poruka od: Dane poslato Septembar 02, 2011, 17:40:14 POSLE PODNE
Skripta koju koristim:Noxicus
Detaljan opis problema:Počeo sam stavljati komandu /ah u dialog ali sam počeo dobivati neke errore i nisam je još cijelu dovršio ali sam negdje pogriješio i dobio errore ako itko može pomoći...
Dio skripte:

OnDialogResponse:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == ahdialog)
{
    switch(listitem)
{
                          case 0:
                             {
          if (PlayerInfo[playerid][pAdmin] >= 1)
          {
                          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
      SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN DUZNOST | /aon /aoff ");
          SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN CHAT | /ao, /a(dmin) chat, /cnn");
        SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN KOMANDE | /check, /setint, /goto, /ubij, /respawncar, /headovi, /sethp, /setarmor");
                              SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN KOMANDE | /kick, /upozori, /ban, /utisaj, /prison, /jail");
  SendClientMessage(playerid, COLOR_GREEN, "================================================================");
                              return 1;
}
                          case 1:
                             {
                              if (PlayerInfo[playerid][pAdmin] >= 2)
                              {
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
      SendClientMessage(playerid, COLOR_GRAD2,"| [2] ADMIN | /freeze, /unfreeze, /bigears, /recon, /setteam, /cnn, /skydive");
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
                              return 1;
}
                          case 2:
                             {
                              if (PlayerInfo[playerid][pAdmin] >= 3)
          {
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
      SendClientMessage(playerid, COLOR_GRAD3,"| [3] ADMIN | /noooc, /fourdive, /sp, /endround, /mark, /gotomark, /gotols, /gotolv, /gotosf");
      SendClientMessage(playerid, COLOR_GRAD4,"| [3] ADMIN | /getcar, /gotocar, /oldcar, /gethere, /setvirtual");
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
   return 1;
     }
                        }
               }
        }


Komanda:
COMMAND:ah(playerid, params[])
{
    ShowPlayerDialog(playerid, ahdialog, DIALOG_STYLE_LIST, "Admin Panel", "Admin Level 1\nAdmin Level 2\nAdmin Level 3\nAdmin Level 4\nAdmin Level 5\nHead Admin", "Odaberi", "Izadji");
    return 1;
}


Define:

//------------------------------ Dialozi maximalni ID dialogu je 32767 ------------------------------
#define ahdialog 10010

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: Narco_VK poslato Septembar 02, 2011, 17:54:29 POSLE PODNE
nismo mi madionicari da znamo koji su erori..
postaj ih tu..
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: Dane poslato Septembar 02, 2011, 18:00:07 POSLE PODNE
Evo errori ali od includa kad compilam dobijem te errore:
C:\Documents and Settings\Dejan\Desktop\Noxicus\pawno\include\G_ObjectsRot.inc(91) : error 004: function "OnObjectRotated" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(4679) : error 017: undefined symbol "SaveBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5004) : error 017: undefined symbol "IsVehicleRCVehicle"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5013) : error 017: undefined symbol "IsVehicleRCVehicle"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5734) : error 017: undefined symbol "CheckRPName"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5788) : error 004: function "CreateTunedCar" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5879) : error 004: function "CreateTunedHeli" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6752) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6764) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6789) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6795) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6815) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6821) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6825) : error 017: undefined symbol "MotoSave"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6835) : error 004: function "endrace" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6839) : error 004: function "ReadyRefresh" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6848) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6850) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6851) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6852) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6854) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(7112) : error 017: undefined symbol "D_SetPlayerHealth"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8474) : error 017: undefined symbol "SaveSBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8526) : error 017: undefined symbol "SaveSBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8581) : error 017: undefined symbol "SaveSBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8625) : error 017: undefined symbol "SaveSBusiness"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: CasTro ã‹¡ poslato Septembar 02, 2011, 18:07:11 POSLE PODNE
mislim da je to { }

neparan broj negdje
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: ‹Fox› poslato Septembar 02, 2011, 18:10:27 POSLE PODNE
ovo ti je cijeli ondialogresponse ili samo dio?
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: Dane poslato Septembar 02, 2011, 18:11:19 POSLE PODNE
Samo dio te komande za OnDialogReponse...
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: Narco_VK poslato Septembar 02, 2011, 18:24:00 POSLE PODNE
Citat: Dane poslato Septembar 02, 2011, 18:00:07 POSLE PODNE
Evo errori ali od includa kad compilam dobijem te errore:
C:\Documents and Settings\Dejan\Desktop\Noxicus\pawno\include\G_ObjectsRot.inc(91) : error 004: function "OnObjectRotated" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(4679) : error 017: undefined symbol "SaveBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5004) : error 017: undefined symbol "IsVehicleRCVehicle"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5013) : error 017: undefined symbol "IsVehicleRCVehicle"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5734) : error 017: undefined symbol "CheckRPName"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5788) : error 004: function "CreateTunedCar" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(5879) : error 004: function "CreateTunedHeli" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6752) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6764) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6789) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6795) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6815) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6821) : error 004: function "SetVehicleParamsForAll" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6825) : error 017: undefined symbol "MotoSave"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6835) : error 004: function "endrace" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6839) : error 004: function "ReadyRefresh" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6848) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6850) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6851) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6852) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(6854) : error 004: function "ab" is not implemented
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(7112) : error 017: undefined symbol "D_SetPlayerHealth"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8474) : error 017: undefined symbol "SaveSBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8526) : error 017: undefined symbol "SaveSBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8581) : error 017: undefined symbol "SaveSBusiness"
C:\Documents and Settings\Dejan\Desktop\Noxicus\gamemodes\RLRP.pwn(8625) : error 017: undefined symbol "SaveSBusiness"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


pogledaj koliko imas otvorenih a koliko zatvorenih..(zagrada: {}
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: Dane poslato Septembar 02, 2011, 18:27:28 POSLE PODNE
Šta u cijelom modu?Ili u tome includu jbt neda mi se brojat jer to je greška u GM-u šta sam radio kad ništa ne radim bude dobro al kad počnem i dobijem te errore...
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: vlado_plavsic poslato Septembar 02, 2011, 18:47:19 POSLE PODNE
Citat: Dane poslato Septembar 02, 2011, 18:27:28 POSLE PODNE
Šta u cijelom modu?Ili u tome includu jbt neda mi se brojat jer to je greška u GM-u šta sam radio kad ništa ne radim bude dobro al kad počnem i dobijem te errore...

Omfg,Znas li ti uopste sta je include?! o.O

Imas 7 otvorenih zagrada ( { ) a 6 zatvorenih zagrada ( } )
Zaboravio si negde da dodas }
Pronadji gde nisi zatvorio i dodaj
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: dragan12 poslato Septembar 02, 2011, 20:47:35 POSLE PODNE
    if(dialogid == ahdialog)
{
    switch(listitem)
{
                          case 0:
                             {
          if (PlayerInfo[playerid][pAdmin] >= 1)
          {
                          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
      SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN DUZNOST | /aon /aoff ");
          SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN CHAT | /ao, /a(dmin) chat, /cnn");
        SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN KOMANDE | /check, /setint, /goto, /ubij, /respawncar, /headovi, /sethp, /setarmor");
                              SendClientMessage(playerid, COLOR_GRAD1, "| [1] ADMIN KOMANDE | /kick, /upozori, /ban, /utisaj, /prison, /jail");
  SendClientMessage(playerid, COLOR_GREEN, "================================================================");
                              return 1;
}
}
                          case 1:
                             {
                              if (PlayerInfo[playerid][pAdmin] >= 2)
                              {
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
      SendClientMessage(playerid, COLOR_GRAD2,"| [2] ADMIN | /freeze, /unfreeze, /bigears, /recon, /setteam, /cnn, /skydive");
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
                              return 1;
}
}
                          case 2:
                             {
                              if (PlayerInfo[playerid][pAdmin] >= 3)
          {
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
      SendClientMessage(playerid, COLOR_GRAD3,"| [3] ADMIN | /noooc, /fourdive, /sp, /endround, /mark, /gotomark, /gotols, /gotolv, /gotosf");
      SendClientMessage(playerid, COLOR_GRAD4,"| [3] ADMIN | /getcar, /gotocar, /oldcar, /gethere, /setvirtual");
          SendClientMessage(playerid, COLOR_GREEN, "================================================================");
   return 1;
     }
                        }
               }
        }

Kod case 0 i case 1 fali ti } zagrada. Eto podesio sam ti to.
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: MarQueZ poslato Septembar 03, 2011, 12:40:04 POSLE PODNE
//
Naslov: Odg: [Pomoc]Oko komande /ah
Poruka od: Dane poslato Septembar 03, 2011, 18:56:22 POSLE PODNE
Gagi hvala radi...
@Moderatori lockajte temu ako bude kakvi problema poslat ću nekom na PM da mi proba riješit ili otvorim novu temu....