Hey Leute,
habe in meinem GM was ungemütliches gefunden -.- vlt. könnt ihr mir ja weiterhelfen......
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57998) : error 033: array must be indexed (variable "x2")
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57998) : warning 213: tag mismatch
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57999) : error 033: array must be indexed (variable "y2")
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57999) : warning 213: tag mismatch
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58004 -- 58007) : error 033: array must be indexed (variable "x2")
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58027 -- 58030) : error 033: array must be indexed (variable "x2")
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58054) : error 033: array must be indexed (variable "x2")
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58300) : error 033: array must be indexed (variable "x2")
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58378) : warning 213: tag mismatch
C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58407) : warning 213: tag mismatch
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Hier die Zeilen dazu ..... :
Function LoadGangZones()
{
new arrCoords[8][64];
new strFromFile2[256];
new File: file = fopen("gangzones.cfg", io_read);
if (file)
{
new idx;
while (idx < GangZone_Index)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
GangZone[idx][x1] = floatstr(arrCoords[0]);
GangZone[idx][y1] = floatstr(arrCoords[1]);
GangZone[idx][x2] = floatstr(arrCoords[2]);
GangZone[idx][y2] = floatstr(arrCoords[3]);
GangZone[idx][ix] = floatstr(arrCoords[4]);
GangZone[idx][iy] = floatstr(arrCoords[5]);
GangZone[idx][iz] = floatstr(arrCoords[6]);
GangZone[idx][owner] = strval(arrCoords[7]);
printf("GangZone %d loadad: %f,%f,%f,%f,%f,%f,%f,%d",idx,
GangZone[idx][x1],
GangZone[idx][y1],
GangZone[idx][x2],
GangZone[idx][y2],
GangZone[idx][ix],
GangZone[idx][iy],
GangZone[idx][iz],
GangZone[idx][owner]);
idx++;
}
fclose(file);
}
return 1;
}
Function SaveGangZones()
{
new idx;
new File: file2;
while (idx < GangZone_Index)
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%f,%d\n",
GangZone[idx][x1],
GangZone[idx][y1],
GangZone[idx][x2],
GangZone[idx][y2],
GangZone[idx][ix],
GangZone[idx][iy],
GangZone[idx][iz],
GangZone[idx][owner]);
if(idx == 0)
{
file2 = fopen("gangzones.cfg", io_write);
}
else
{
file2 = fopen("gangzones.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
}
Function CreateGangZones()
{
for(new idx; idx < GangZone_Index; idx++)
{
GangZone[idx][gzID] = GangZoneCreate(GangZone[idx][x1],GangZone[idx][y1],GangZone[idx][x2],GangZone[idx][y2]);
}
}
Function PlayerGangZonesShow(playerid, yesno)
{
if(yesno == 1)
{
for(new idx; idx < GangZone_Index; idx++)
{
GangZoneShowForPlayer(playerid, GangZone[idx][gzID], GetGangZoneColor(idx));
}
}
else
{
for(new idx; idx < GangZone_Index; idx++)
{
GangZoneHideForPlayer(playerid, GangZone[idx][gzID]);
}
}
return 1;
}
Function GetGangZoneColor(gzid)
{
if(GangZone[gzid][owner] == 5)
{
return 0x000000DE;
}
else if(GangZone[gzid][owner] == 6)
{
return 0xD2D2D2DE;
}
else if(GangZone[gzid][owner] == 12)
{
return 0x000FFF4E;
}
else if(GangZone[gzid][owner] == 13)
{
return 0x37FF005E;
}
else if(GangZone[gzid][owner] == 14)
{
return 0xFF00EB5E;
}
else if(GangZone[gzid][owner] == 15)
{
return 0x6400FF5E;
}
else if(GangZone[gzid][owner] == 16)
{
return 0xEBFF005E;
}
else if(GangZone[gzid][owner] == 17)
{
return 0x00FFFA5E;
}
else if(GangZone[gzid][owner] == 19)
{
return 0xFF00005E;
}
else if(GangZone[gzid][owner] == 23)
{
return 0xA0A0A05E;
}
return 0xFFFFFF5E;
}
Function PlayerTakingOverZone(playerid,zoneid)
{
new count,job;
for(new i; i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pMember] != 0) { job = PlayerInfo[i][pMember]; }
else if(PlayerInfo[i][pLeader] != 0) { job = PlayerInfo[i][pLeader]; }
if(GangZone[zoneid][owner] == job && job != 0)
{
count++;
}
else if(GangZone[zoneid][owner] == 0)
{
count = 2;
}
}
if(count >= 2)
{
if(Attack[GangZone[zoneid][owner]] != 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "Diese Gangzone wird schon angegriffen / hat eine Angriffssperre");
return 1;
}
else
{
Attack[GangZone[zoneid][owner]] = 1;
AttackZone[GangZone[zoneid][owner]] = zoneid;
for(new i; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pMember] != 0) { job = PlayerInfo[i][pMember]; }
else if(PlayerInfo[i][pLeader] != 0) { job = PlayerInfo[i][pLeader]; }
if(job == GangZone[zoneid][owner] && job != 0)
{
SendClientMessage(i, COLOR_WHITE,"{FFFFFF}[::: {FFFFFF}Gangzonenangriff {FFFFFF}:::]");
SendClientMessage(i, COLOR_RED, "{FFFFFF}Eine Gangzone von euch wird angegriffen, begib dich schnell zum Angriffspunkt!");
SendClientMessage(i, COLOR_RED, "{FFFFFF}Vertreibe den Angreifer, du hast ca. 5 Minuten Zeit!");
}
}
TakeOverTime[playerid] = 300;
TakeOver[playerid] = zoneid;
SendClientMessage(playerid, COLOR_WHITE,"{00FF00}[::: {FFFFFF}Gangzonenangriff {00FF00}:::]");
SendClientMessage(playerid, COLOR_GREEN,"{00FF00}Du musst nun ca. 5 Minuten hier in der Nähe vom Angriffspunkt bleiben!");
SendClientMessage(playerid, COLOR_GREEN,"{00FF00}Solltest du den Punkt verlassen oder sterben, wird der Angriff abgebrochen!");
SetTimerEx("ReleaseGangZone", 600000, 0, "i", zoneid);
printf("PlayerTakingOverZone(%d, %d)", playerid, zoneid);
for(new idd; idd<GangZone_Index;idd++)
{
if(idd == TakeOver[playerid])
{
GangZoneFlashForAll(GangZone[idd][gzID], COLOR_RED);
}
}
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Es müssen mindestens 2 Mitglieder der gegnerischen Fraktion da sein!");
}
return 1;
}
Hoffe jmd. von euch kann mir helfen
Nagut mfg
/edit habe einen Error selbst behoben
/edit 2 Besitze auch Team Viewer wenn nötig