Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Nure poslato Mart 20, 2018, 18:44:06 POSLE PODNE

Naslov: Errori /goto cmd
Poruka od: Nure poslato Mart 20, 2018, 18:44:06 POSLE PODNE
Problem(error/warning):Ubacivao sam neki sistem za prihvacanje porta pa mi izbacuje errore
Dio skripte:fDialog(2115)
{
    if( response )
    {
    SCM(playerid, -1, ""SRWBOJA"NK:RPG "BELA"Prihvatili ste zahtjev za goto!");
   PlayerInfo[playerid][PrihvatioZahtev] = 1; ////////////////////////////////////////OVDE IZBACUJE ERRORRR:::
    }
    else
    {
    SCM(playerid, -1, ""SRWBOJA"NK:RPG "BELA"Odbili ste zahtev za goto!");
    PlayerInfo[playerid][PrihvatioZahtev] = 0;////////////////////////////////////////OVDE IZBACUJE ERRORRR:::
    }
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): ////

ERRORI:43235) : error 033: array must be indexed (variable "PrihvatioZahtev")
(43240) : error 033: array must be indexed (variable "PrihvatioZahtev")
(60848) : error 033: array must be indexed (variable "PrihvatioZahtev")


forward ZahtevZaGoto(playerid);
public ZahtevZaGoto(playerid)
{
    new Float:plx,Float:ply,Float:plz;
    new string[265], giveplayerid, giveplayer[MAX_PLAYER_NAME];
    if(PlayerInfo[giveplayerid][PrihvatioZahtev] == 1)  ////////////////////////////////////////OVDE IZBACUJE ERRORRR:::
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerPos(giveplayerid, plx, ply, plz);
    if (GetPlayerState(playerid) == 2)
    {
                new tmpcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(tmpcar, plx, ply+4, plz);
            }
            else
            {
                SetPlayerPos(playerid,plx,ply+2, plz);
            }
    SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));

    format(string, sizeof(string),""srvboja"[PORT] "BELA"Portao si se do igraca %s.",GetName(giveplayerid));
    SCM(playerid, -1, string);
    new arank[124];
    if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin Level 1"; }
    else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin Level 2"; }
    else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin Level 3"; }
    else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin Level 4"; }
    else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Admin Level 5 (Head-Admin)"; }
    else if(PlayerInfo[playerid][pVlasnik] == 1) { arank = "Vlasnik"; }
    else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Vlasnik"; }
    else if(PlayerInfo[playerid][pGM] == 1) { arank = "GameMaster Level 1"; }
    else if(PlayerInfo[playerid][pGM] == 2) { arank = "GameMaster Level 2"; }
    else if(PlayerInfo[playerid][pGM] == 3) { arank = "GameMaster Level 3"; }
    else if(PlayerInfo[playerid][pImunitet] == 1) { arank = "Spec Team"; }
    format(string, sizeof(string),""srvboja"[PORT] "BELA"%s %s se portao do vas.",arank, GetName( playerid ) );
    SCM(giveplayerid, -1, string);
    }
    return 1;
}
Naslov: Odg: Errori /goto cmd
Poruka od: Łuk@ poslato Mart 20, 2018, 19:50:15 POSLE PODNE
pravila