[ERROR]: error 001: expected token: ";", but found ":"
#1

._. hola buenas madrugadas.. e estado integrando un sistema de neones en mi gm pero me sale este error

pawn Код:
(2859) : error 014: invalid statement; not in switch
(2859) : warning 215: expression has no effect
(2859) : error 001: expected token: ";", but found ":"
(2859) : error 029: invalid expression, assumed zero
(2859) : fatal error 107: too many error messages on one line

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


4 Errors.
Aqui la linea..

pawn Код:
case DIALOGO_NEON: //<--- Error!!!
  {
            if(response)
            {
                switch(listitem)
                {
                   case 0:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        Neones[playerid][0] = CreateDynamicObject(18648,0,0,0,0,0,0);
                        Neones[playerid][1] = CreateDynamicObject(18648,0,0,0,0,0,0);
                        Neones[playerid][2] = CreateDynamicObject(18648,0,0,0,0,0,0);
                        Neones[playerid][3] = CreateDynamicObject(18648,0,0,0,0,0,0);
                        AttachDynamicObjectToVehicle(Neones[playerid][0], GetPlayerVehicleID(playerid), -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][1], GetPlayerVehicleID(playerid), 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][2], GetPlayerVehicleID(playerid), 0.034999, 2.225003, -0.629999, 0.000000, 0.000000, -88.589958);
                        AttachDynamicObjectToVehicle(Neones[playerid][3], GetPlayerVehicleID(playerid), 0.034999, -2.034998, -0.629999, 0.000000, 0.000000, -88.589958);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has colocado los neones azules");
                        return 1;
                    }
                    case 1:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        Neones[playerid][0] = CreateDynamicObject(18649,0,0,0,0,0,0);
                        Neones[playerid][1] = CreateDynamicObject(18649,0,0,0,0,0,0);
                        Neones[playerid][2] = CreateDynamicObject(18649,0,0,0,0,0,0);
                        Neones[playerid][3] = CreateDynamicObject(18649,0,0,0,0,0,0);
                        AttachDynamicObjectToVehicle(Neones[playerid][0], GetPlayerVehicleID(playerid), -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][1], GetPlayerVehicleID(playerid), 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][2], GetPlayerVehicleID(playerid), 0.034999, 2.225003, -0.629999, 0.000000, 0.000000, -88.589958);
                        AttachDynamicObjectToVehicle(Neones[playerid][3], GetPlayerVehicleID(playerid), 0.034999, -2.034998, -0.629999, 0.000000, 0.000000, -88.589958);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has colocado los neones verdes");
                        return 1;
                    }
                    case 2:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        Neones[playerid][0] = CreateDynamicObject(18651,0,0,0,0,0,0);
                        Neones[playerid][1] = CreateDynamicObject(18651,0,0,0,0,0,0);
                        Neones[playerid][2] = CreateDynamicObject(18651,0,0,0,0,0,0);
                        Neones[playerid][3] = CreateDynamicObject(18651,0,0,0,0,0,0);
                        AttachDynamicObjectToVehicle(Neones[playerid][0], GetPlayerVehicleID(playerid), -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][1], GetPlayerVehicleID(playerid), 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][2], GetPlayerVehicleID(playerid), 0.034999, 2.225003, -0.629999, 0.000000, 0.000000, -88.589958);
                        AttachDynamicObjectToVehicle(Neones[playerid][3], GetPlayerVehicleID(playerid), 0.034999, -2.034998, -0.629999, 0.000000, 0.000000, -88.589958);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has colocado los neones rosas");
                        return 1;
                    }
                    case 3:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        Neones[playerid][0] = CreateDynamicObject(18652,0,0,0,0,0,0);
                        Neones[playerid][1] = CreateDynamicObject(18652,0,0,0,0,0,0);
                        Neones[playerid][2] = CreateDynamicObject(18652,0,0,0,0,0,0);
                        Neones[playerid][3] = CreateDynamicObject(18652,0,0,0,0,0,0);
                        AttachDynamicObjectToVehicle(Neones[playerid][0], GetPlayerVehicleID(playerid), -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][1], GetPlayerVehicleID(playerid), 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][2], GetPlayerVehicleID(playerid), 0.034999, 2.225003, -0.629999, 0.000000, 0.000000, -88.589958);
                        AttachDynamicObjectToVehicle(Neones[playerid][3], GetPlayerVehicleID(playerid), 0.034999, -2.034998, -0.629999, 0.000000, 0.000000, -88.589958);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has colocado los neones blancos");
                        return 1;
                    }
                    case 4:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        Neones[playerid][0] = CreateDynamicObject(18650,0,0,0,0,0,0);
                        Neones[playerid][1] = CreateDynamicObject(18650,0,0,0,0,0,0);
                        Neones[playerid][2] = CreateDynamicObject(18650,0,0,0,0,0,0);
                        Neones[playerid][3] = CreateDynamicObject(18650,0,0,0,0,0,0);
                        AttachDynamicObjectToVehicle(Neones[playerid][0], GetPlayerVehicleID(playerid), -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][1], GetPlayerVehicleID(playerid), 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][2], GetPlayerVehicleID(playerid), 0.034999, 2.225003, -0.629999, 0.000000, 0.000000, -88.589958);
                        AttachDynamicObjectToVehicle(Neones[playerid][3], GetPlayerVehicleID(playerid), 0.034999, -2.034998, -0.629999, 0.000000, 0.000000, -88.589958);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has colocado los neones amarillos");
                        return 1;
                    }
                    case 5:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        Neones[playerid][0] = CreateDynamicObject(18647,0,0,0,0,0,0);
                        Neones[playerid][1] = CreateDynamicObject(18647,0,0,0,0,0,0);
                        Neones[playerid][2] = CreateDynamicObject(18647,0,0,0,0,0,0);
                        Neones[playerid][3] = CreateDynamicObject(18647,0,0,0,0,0,0);
                        AttachDynamicObjectToVehicle(Neones[playerid][0], GetPlayerVehicleID(playerid), -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][1], GetPlayerVehicleID(playerid), 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
                        AttachDynamicObjectToVehicle(Neones[playerid][2], GetPlayerVehicleID(playerid), 0.034999, 2.225003, -0.629999, 0.000000, 0.000000, -88.589958);
                        AttachDynamicObjectToVehicle(Neones[playerid][3], GetPlayerVehicleID(playerid), 0.034999, -2.034998, -0.629999, 0.000000, 0.000000, -88.589958);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has colocado los neones rojos");
                    }
                    case 6:
                    {
                        DestroyDynamicObject(Neones[playerid][0]);
                        DestroyDynamicObject(Neones[playerid][1]);
                        DestroyDynamicObject(Neones[playerid][2]);
                        DestroyDynamicObject(Neones[playerid][3]);
                        SendClientMessage(playerid,COLOR_GREEN,"** Has removido todos los neones");
                    }
                }
            }
        }
que seria? aunque veo que es algo facil de solucionar :_ pero no soy tan profesional que digamos.. xD
Reply
#2

Quizбs te falte una llave en los cases que estбn antes DIALOGO_NEON.
Reply
#3

if(current == DIALOGO_NEON){
Reply
#4

gracias men ya lo pude solucionar xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)