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;
}
pravila