Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[POMOC]invalid function or declaration

Započeo merK^
pre 13 godina
684
pregleda
7
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
merK^
Street Runner
pre 13 godina
Skripta koju koristim:Moju od 0.
Detaljan opis problema:
Ubacivao sam dialog za poslove,i kad kompilujem ovi errori mi izadju,za ondialogresponse,ne znam sta da radim ceo dan se mucim :S
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(4718) : warning 225: unreachable code
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12930) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12932) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12934) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12939) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(29856) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

Dio skripte:
if(dialogid == Poslovi)
{
if(response)
{
case 0:
{
GettingJob = 1;
    }
        }
        return 1;
    }

Kad napravim ovako sa list,izadju mi 4 errora.
if(dialogid == Poslovi) PRVI ERROR
{
if(response) 2 ERROR
{
if(listitem == 0) 3 ERROR
{
GettingJob = 1;
    }
        }
        return 1; 4 ERROR
    }

Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Obrisan korisnik Obrisan korisnik
pre 13 godina
Probaj.
if(dialogid == Poslovi)
{
if(response)
{
if(listitem == 0)
{
GettingJob = 1;
}
}
}
I daj liniju tog unreachable code, možda ti se čini glupo ali ti zatvara neki public.
merK^
Street Runner
pre 13 godina
if (BusrouteEast != 0)
To ti je ta linija,ovaj kod sto si mi dao,sad su mi se smanjili na 3 errora.
Obrisan korisnik Obrisan korisnik
pre 13 godina
To za unreachable code daj mi malo linija ispod i iznad. I daj te errore.
merK^
Street Runner
pre 13 godina
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(4718) : warning 225: unreachable code
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12930) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12932) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(12934) : error 010: invalid function or declaration
C:\Documents and Settings\Alen\Desktop\BC-RP\gamemodes\BC-RP.pwn(29855) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

3 Errors.


Unreachable:
if (BusrouteEast != 0)
{
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
{
new nextstop;
BusrouteWest = 0;
    switch(BusrouteEast)
    {
        case 1:
        {
nextstop = "Airport";
            SetPlayerCheckpoint(playerid, 1979.7369,-2171.4861,13.5363, 5.0);
AdvertiseToPlayersAtBusStop(1979.7369,-2171.4861,13.5363, 0);
}
case 2:
{
nextstop = "Willowfield Factory";
    SetPlayerCheckpoint(playerid, 2227.6953,-2201.9053,13.5164, 5.0);
AdvertiseToPlayersAtBusStop(2227.6953,-2201.9053,13.5164, 0);
SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You have to wait 10 seconds.");
}
case 3:
{
nextstop = "Loco";
    SetPlayerCheckpoint(playerid, 2719.9419,-2030.2104,13.5076, 5.0);
AdvertiseToPlayersAtBusStop(2719.9419,-2030.2104,13.5076, 0);
SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You have to wait 10 seconds.");
}

I tako idu case 4 itd,itd.

RESIO SAM UNREACHABLE CODE!!!
Jos 3 errora.
Obrisan korisnik Obrisan korisnik
pre 13 godina
Nemogu da skontam gdje si stavio return. A taj dijalog da li si stavio OnDialogResponse?
merK^
Street Runner
pre 13 godina
Resio sam to unreachable,ovo jesam stavio ondialog response.
EDIT:Resio sam i ova 3 errora,samo sam premestio ceo kod na prvo mesto u ondialogresponse,hvala ti u svakom slucaju.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava