[POMOC] OnPlayerDialogResponse Errors

Započeo MaX91, Jun 17, 2011, 12:07:13 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Edit jednog Stunt moda.
Detaljan opis problema: Errori, pogledaćete sad. Ubacivao sam neke FS u GM, tj. da mi ne bude FS, već komanda u GM, .pwn fajlu, i sad dobih neke errore, mučim se pola sata da ovo popravim :S
Dio skripte: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 4)
{
  if(response)
  {
  SendClientMessage(playerid,0x008000FF, "Dobrodosli na GymoFreeroam, uzivajte!");
  SendClientMessage(playerid,0x008000FF, "Koristite /teles za teleportove, a /vehicles za automobile!");
  }
  else
  {
  SendClientMessage(playerid,0xFF0000FF, "Niste prihvatili pravila?");
  Kick(playerid);
  }
}
if(dialogid == 5)
{
 if(response)
  {
     switch(dialogid == 5)
       {
case 1:
       {
          switch(listitem)
        {
           case 0:
           {
               SetPlayerPos(playerid,215.0730,1822.5129,6.4141);
                   SetPlayerSkin(playerid, 287);
                   ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 17, 10);
               GivePlayerWeapon(playerid, 24, 500);
               GivePlayerWeapon(playerid, 31, 1500);
               GivePlayerWeapon(playerid, 44, 1);
SendClientMessage(playerid,COLOR_RED, "[C]rac[K]: Terroristi napadaju bazu, sve jedinice, likvidirajte ih!");

           }
           case 1:
           {
               SetPlayerPos(playerid,99.0973,1920.7058,18.2238);
                   SetPlayerSkin(playerid, 30);
                   ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 23, 500);
               GivePlayerWeapon(playerid, 30, 1500);
               GivePlayerWeapon(playerid, 45, 1);
               SendClientMessage(playerid,COLOR_YELLOW, "[C]rac[K]: Ubijte sve!");
           }
           }
   }
}
}
     }
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
if(dialogid == 992)
{
if(!response) return SendClientMessage(playerid, 0xCC0000FF, "INFORMACIJA : Kliknuo si -IZADJI-");
switch(listitem)
   {
       case 0:
       {
      if(GetPVarInt(playerid, "Lights") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Lights", 1);
}
else if(GetPVarInt(playerid, "Lights") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Lights", 0);
}
}
case 1:
{
if(GetPVarInt(playerid, "Bonnet") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
SetPVarInt(playerid, "Bonnet", 1);
}
else if(GetPVarInt(playerid, "Bonnet") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
SetPVarInt(playerid, "Bonnet", 0);
}
}
case 2:
{
if(GetPVarInt(playerid, "Boot") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
SetPVarInt(playerid, "Boot", 1);
}
else if(GetPVarInt(playerid, "Boot") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
SetPVarInt(playerid, "Boot", 0);
}
}
case 3:
{
if(GetPVarInt(playerid, "Doors") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
SetPVarInt(playerid, "Doors", 1);
}
else if(GetPVarInt(playerid, "Doors") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
SetPVarInt(playerid, "Doors", 0);
}
}
case 4:
{
if(GetPVarInt(playerid, "Engine") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Engine", 1);
}
else if(GetPVarInt(playerid, "Engine") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Engine", 0);
}
}
case 5:
{
if(GetPVarInt(playerid, "Alarm") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Alarm", 1);
}
else if(GetPVarInt(playerid, "Alarm") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Alarm", 0);
}
}
}

if(dialogid == 8899)
{
if(response)
{
if(listitem == 0)
{


//blue
SetPVarInt(playerid, "Status", 1);
           SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
           SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
           AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
           AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  }
if(listitem == 1)
{


//red
SetPVarInt(playerid, "Status", 1);
           SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
           SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
           AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
           AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
           SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene");

}
if(listitem == 2)
{


//green
    SetPVarInt(playerid, "Status", 1);
              SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
              SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
              AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene");

           }
if(listitem == 3)
{

//white
    SetPVarInt(playerid, "Status", 1);
              SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
              SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
              AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene");

}
if(listitem == 4)
{


//pink
    SetPVarInt(playerid, "Status", 1);
              SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
              SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
              AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene");

}
if(listitem == 5)
{


//yellow
      SetPVarInt(playerid, "Status", 1);
              SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
              SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
              AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
              SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene");

}

if(listitem == 6)
{
//remove neon
           DestroyObject(GetPVarInt(playerid, "neon"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon1"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon2"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon3"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon4"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon5"));
DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon6"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon7"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon8"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon9"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon10"));
           DeletePVar(playerid, "Status");
           DestroyObject(GetPVarInt(playerid, "neon11"));
           DeletePVar(playerid, "Status");
           
           DeletePVar(playerid, "Status");


     }
}
}
return 1;
}


Evo errori:

C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2894) : warning 225: unreachable code
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2894) : error 029: invalid expression, assumed zero
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2894) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2896) : error 017: undefined symbol "dialogid"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2898) : error 017: undefined symbol "response"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2909) : error 017: undefined symbol "dialogid"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2911) : error 017: undefined symbol "response"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2913) : error 017: undefined symbol "dialogid"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2917) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2948) : error 017: undefined symbol "dialogid"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2950) : error 017: undefined symbol "response"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(2951) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3045) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3045) : error 017: undefined symbol "dialogid"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3047) : error 017: undefined symbol "response"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3049) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3060) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3073) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3086) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3098) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3111) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3125) : error 017: undefined symbol "listitem"
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3159) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\XtreameGaming Gamemode\gamemodes\GymoFreeroam(3162) : error 030: compound statement not closed at the end of file (started at line 2896)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


21 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Poslednja Izmena: Jun 17, 2011, 12:08:14 POSLE PODNE od [GFR i CH] [C]rac[K]

Jedno pitanje dali je to kraj dialoga ili imas jos ispod ali nisi stavio ?


Koliko sam uspio vidjet skriptu, MISLIM da je problem u dialog id - 5 probaj ovako

if(dialogid == 5)
{
      if(response)
      {
           switch(listitem)
           {
               case 0:
               {
                    SetPlayerPos(playerid,215.0730,1822.5129,6.4141);
                    SetPlayerSkin(playerid, 287);
                    ResetPlayerWeapons(playerid);
                    GivePlayerWeapon(playerid, 17, 10);
                    GivePlayerWeapon(playerid, 24, 500);
                    GivePlayerWeapon(playerid, 31, 1500);
                    GivePlayerWeapon(playerid, 44, 1);
                    SendClientMessage(playerid,COLOR_RED, "[C]rac[K]: Terroristi napadaju bazu, sve jedinice, likvidirajte ih!");

               }
               case 1:
               {
                    SetPlayerPos(playerid,99.0973,1920.7058,18.2238);
                    SetPlayerSkin(playerid, 30);
                    ResetPlayerWeapons(playerid);
                    GivePlayerWeapon(playerid, 23, 500);
                   GivePlayerWeapon(playerid, 30, 1500);
                   GivePlayerWeapon(playerid, 45, 1);
                   SendClientMessage(playerid,COLOR_YELLOW, "[C]rac[K]: Ubijte sve!");
               }
            }
      }
}
Kristijan Stipić


Moras napravit ovo definirat znaci
new listitem
new dialogid
new response

Ja mislim da bi ti to bilo to ali nisam siguran...
Respect: $--L84S--$, ναηιâ,,"â,,"α , BloodMaster , LuxZillo, Don_Sergio, ExtremePower, Gotti747, Gagi_

Ma ok, znam to i ja
Ali ovaj prvi error me muči, ono OnPlayerDialogResponse is not implemented :S
Poslednja Izmena: Jun 17, 2011, 14:02:50 POSLE PODNE od [GFR i CH] [C]rac[K]

Ovakopublic OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) 

if(dialogid == 4) 
   { 
      if(response) 
      { 
      SendClientMessage(playerid,0x008000FF, "Dobrodosli na GymoFreeroam, uzivajte!"); 
      SendClientMessage(playerid,0x008000FF, "Koristite /teles za teleportove, a /vehicles za automobile!"); 
      } 
      else 
      { 
      SendClientMessage(playerid,0xFF0000FF, "Niste prihvatili pravila?"); 
      Kick(playerid); 
      } 
   } 
if(dialogid == 5) 

  if(response) 
      { 
      switch(dialogid == 5) 
        { 
      case 1: 
           { 
              switch(listitem) 
           { 
               case 0: 
               { 
                   SetPlayerPos(playerid,215.0730,1822.5129,6.4141); 
                    SetPlayerSkin(playerid, 287); 
                    ResetPlayerWeapons(playerid); 
               GivePlayerWeapon(playerid, 17, 10); 
                   GivePlayerWeapon(playerid, 24, 500); 
                   GivePlayerWeapon(playerid, 31, 1500); 
                   GivePlayerWeapon(playerid, 44, 1); 
               SendClientMessage(playerid,COLOR_RED, "[C]rac[K]: Terroristi napadaju bazu, sve jedinice, likvidirajte ih!"); 
 
               } 
               case 1: 
               { 
                   SetPlayerPos(playerid,99.0973,1920.7058,18.2238); 
                    SetPlayerSkin(playerid, 30); 
                    ResetPlayerWeapons(playerid); 
               GivePlayerWeapon(playerid, 23, 500); 
                   GivePlayerWeapon(playerid, 30, 1500); 
                   GivePlayerWeapon(playerid, 45, 1); 
                   SendClientMessage(playerid,COLOR_YELLOW, "[C]rac[K]: Ubijte sve!"); 
               } 
            } 
          } 
       } 
      } 
      } 
new veh = GetPlayerVehicleID(playerid); 
new engine,lights,alarm,doors,bonnet,boot,objective; 
if(dialogid == 992) 
   { 
   if(!response) return SendClientMessage(playerid, 0xCC0000FF, "INFORMACIJA : Kliknuo si -IZADJI-"); 
   switch(listitem) 
       { 
           case 0: 
           { 
               if(GetPVarInt(playerid, "Lights") == 0) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); 
               SetPVarInt(playerid, "Lights", 1); 
            } 
            else if(GetPVarInt(playerid, "Lights") == 1) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); 
               SetPVarInt(playerid, "Lights", 0); 
            } 
         } 
         case 1: 
         { 
            if(GetPVarInt(playerid, "Bonnet") == 0) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective); 
               SetPVarInt(playerid, "Bonnet", 1); 
            } 
            else if(GetPVarInt(playerid, "Bonnet") == 1) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective); 
               SetPVarInt(playerid, "Bonnet", 0); 
            } 
         } 
         case 2: 
         { 
            if(GetPVarInt(playerid, "Boot") == 0) 
             { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective); 
               SetPVarInt(playerid, "Boot", 1); 
            } 
            else if(GetPVarInt(playerid, "Boot") == 1) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective); 
               SetPVarInt(playerid, "Boot", 0); 
            } 
         } 
         case 3: 
         { 
            if(GetPVarInt(playerid, "Doors") == 0) 
             { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective); 
               SetPVarInt(playerid, "Doors", 1); 
            } 
            else if(GetPVarInt(playerid, "Doors") == 1) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective); 
               SetPVarInt(playerid, "Doors", 0); 
            } 
         } 
         case 4: 
         { 
            if(GetPVarInt(playerid, "Engine") == 0) 
             { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); 
               SetPVarInt(playerid, "Engine", 1); 
            } 
            else if(GetPVarInt(playerid, "Engine") == 1) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); 
               SetPVarInt(playerid, "Engine", 0); 
            } 
         } 
         case 5: 
         { 
            if(GetPVarInt(playerid, "Alarm") == 0) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective); 
               SetPVarInt(playerid, "Alarm", 1); 
            } 
            else if(GetPVarInt(playerid, "Alarm") == 1) 
            { 
               GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); 
               SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective); 
               SetPVarInt(playerid, "Alarm", 0); 
            } 
         } 
      } 
 
if(dialogid == 8899) 
   { 
    if(response) 
      { 
         if(listitem == 0) 
         { 
 
 
         //blue 
         SetPVarInt(playerid, "Status", 1); 
            SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0)); 
            SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0)); 
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
             } 
         if(listitem == 1) 
         { 
 
 
          //red 
            SetPVarInt(playerid, "Status", 1); 
               SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0)); 
               SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0)); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene"); 
 

         if(listitem == 2) 
         { 
 
 
         //green 
               SetPVarInt(playerid, "Status", 1); 
               SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0)); 
               SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0)); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene"); 
 
               } 
         if(listitem == 3) 
         { 
 
         //white 
               SetPVarInt(playerid, "Status", 1); 
               SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0)); 
               SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0)); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene"); 
 

         if(listitem == 4) 
         { 
 
 
         //pink 
               SetPVarInt(playerid, "Status", 1); 
               SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0)); 
               SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0)); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene"); 
 

         if(listitem == 5) 
         { 
 
 
         //yellow 
             SetPVarInt(playerid, "Status", 1); 
               SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0)); 
               SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0)); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); 
               SendClientMessage(playerid, 0xFFFFFFAA, "Neonke stavljene"); 
 

           
         if(listitem == 6) 
         { 
         //remove neon 
            DestroyObject(GetPVarInt(playerid, "neon")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon1")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon2")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon3")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon4")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon5")); 
         DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon6")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon7")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon8")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon9")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon10")); 
            DeletePVar(playerid, "Status"); 
            DestroyObject(GetPVarInt(playerid, "neon11")); 
            DeletePVar(playerid, "Status"); 
             
            DeletePVar(playerid, "Status"); 
 
 
             } 
       } 
       } 
   return 0; 

Neće ni to :S
Riješio sam ono s newovima, primjer:
new listitem;
Sve sam dodao, ali imam puno, puno warninga i opet 3 errora :S

C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2897) : warning 225: unreachable code
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2897) : error 029: invalid expression, assumed zero
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2897) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2925) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2927) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2928) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2931) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2937) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2939) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2940) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2964) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3048) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3058) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3069) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3120) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3142) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3143) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3162) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3165) : error 030: compound statement not closed at the end of file (started at line 2899)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


Wanrinzi su ti zato sto ti nisu linije poravnate.Poravnaj sve linije i nece biti warninga.
npr. :
Terbi linija ovako stoji SetPVarInt(playerid, "Status", 1);  
                         SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));  
              SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));  

a ti onda moras staviti ovako
SetPVarInt(playerid, "Status", 1);  
SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));  
SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));  



Postaj red 2897.
Poslednja Izmena: Jun 17, 2011, 14:30:47 POSLE PODNE od [LYG] $--L84S--$

Riješio sam neke warninge, ali opet me neki zezaju -.- '.
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2897) : warning 225: unreachable code
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2897) : error 029: invalid expression, assumed zero
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2897) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(2964) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3048) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3162) : warning 217: loose indentation
C:\Users\Windows XP\Desktop\GymoFreeroam\gamemodes\Gymofreeroam.pwn(3165) : error 030: compound statement not closed at the end of file (started at line 2899)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


Red 2897: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

Riješio sam :D!
Može lock
Poslednja Izmena: Jun 18, 2011, 10:38:28 PRE PODNE od [GFR i CH] [C]rac[K]