09.04.2009, 22:13
Following Error:
But Line 23984 is the following:
Impossible,isn`t it ?
Probably someone can help me?
I`ll show you the Function:
Thanks a lot,
Trooper
Код:
D:\Downloads\SA\gamemodes\Crazy~World.pwn(23984) : error 017: undefined symbol "layerInfo" D:\Downloads\SA\gamemodes\Crazy~World.pwn(23984) : warning 215: expression has no effect D:\Downloads\SA\gamemodes\Crazy~World.pwn(23984) : error 001: expected token: ";", but found "]" D:\Downloads\SA\gamemodes\Crazy~World.pwn(23984) : error 029: invalid expression, assumed zero D:\Downloads\SA\gamemodes\Crazy~World.pwn(23984) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || layerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
Probably someone can help me?
I`ll show you the Function:
Код:
if(strcmp(cmd, "/duty", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if (PlayerToPoint(6, playerid,223.5509,187.4713,1003.0313) || PlayerToPoint(6, playerid,255.1670,75.4396,1003.6406)|| PlayerToPoint(3, playerid,258.3244,75.4085,1003.6406) || PlayerToPoint(3, playerid,326.7596,307.0706,999.1484) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==0) { format(string, sizeof(string), "* Officer %s Geht in Dienst, holt seine Marke aus dem Schrank und hofft dass der Tag gut Endet.", sendername); ProxDetector(2.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 24, 100); GivePlayerWeapon(playerid, 25, 100); GivePlayerWeapon(playerid, 3, 0); OnDuty[playerid] = 1; SetPlayerToTeamColor(playerid); // if (PlayerInfo[playerid][pRank] == 6) { } else if (PlayerInfo[playerid][pRank] >= 2 && PlayerInfo[playerid][pRank] <= 5) { } else { } SpawnChange[playerid] = 0; if (PlayerInfo[playerid][pRank] == 1) SetPlayerArmour(playerid,30); else if (PlayerInfo[playerid][pRank] == 2) SetPlayerArmour(playerid,60); else if (PlayerInfo[playerid][pRank] == 3) SetPlayerArmour(playerid,90); else if (PlayerInfo[playerid][pRank] == 4) SetPlayerArmour(playerid,120); else if (PlayerInfo[playerid][pRank] == 5) SetPlayerArmour(playerid,140); else if (PlayerInfo[playerid][pRank] == 6) SetPlayerArmour(playerid,180); PlayerInfo[playerid][pOldArmor] = 100; //PlayerInfo[playerid][pNewArmor] = 100; } else if(OnDuty[playerid]==1) { format(string, sizeof(string), "* Officer %s Beendet seinen Dienst fьr Heute und legt seine Sachen in den Schrank.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerToTeamColor(playerid); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 7); OnDuty[playerid] = 0; SetPlayerToTeamColor(playerid); SpawnChange[playerid] = 0; SetPlayerArmour(playerid,0); SetPlayerHealth(playerid,100); } } else { SendClientMessage(playerid, COLOR_GRAD2, " Sie sind nicht in der Umkleidung oder an dem Dienstpoint !"); return 1; } } else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || layerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if (PlayerToPoint(6, playerid,237.3724,110.2514,1003.2188) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==0) { format(string, sizeof(string), "* Agent %s Geht in Dienst und holt seine Marke aus dem Schrank und hofft das der Tag gut endet.", sendername); ProxDetector(3.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 24, 100); GivePlayerWeapon(playerid, 25, 100); GivePlayerWeapon(playerid, 3, 0); OnDuty[playerid] = 1; SetPlayerToTeamColor(playerid); if (PlayerInfo[playerid][pRank] == 6) { } else if (PlayerInfo[playerid][pRank] >= 2 && PlayerInfo[playerid][pRank] <= 5) { } else { } SpawnChange[playerid] = 0; SpawnPlayer(playerid); if (PlayerInfo[playerid][pRank] == 1) SetPlayerArmour(playerid,30); else if (PlayerInfo[playerid][pRank] == 2) SetPlayerArmour(playerid,60); else if (PlayerInfo[playerid][pRank] == 3) SetPlayerArmour(playerid,90); else if (PlayerInfo[playerid][pRank] == 4) SetPlayerArmour(playerid,120); else if (PlayerInfo[playerid][pRank] == 5) SetPlayerArmour(playerid,140); else if (PlayerInfo[playerid][pRank] == 6) SetPlayerArmour(playerid,180); PlayerInfo[playerid][pOldArmor] = 100; //PlayerInfo[playerid][pNewArmor] = 100; } else if(OnDuty[playerid]==1) { format(string, sizeof(string), "* Agent %s beendet seinen Dienst fьr heute und legt seine Sachen in den Schrank.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerToTeamColor(playerid); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 7); OnDuty[playerid] = 0; SetPlayerToTeamColor(playerid); SpawnChange[playerid] = 0; SpawnPlayer(playerid); SetPlayerArmour(playerid,0); SetPlayerHealth(playerid,100); } } else { SendClientMessage(playerid, COLOR_GRAD2, " Sie sind nicht in der Umkleidung oder an dem Dienstpoint !"); return 1; } } else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie Beenden den Heutigen Dienst und kцnnen keine Auftrдge mehr Annehmen."); JobDuty[playerid] = 0; Medics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie treten in den Dienst und kцnnen den Leuten Helfen."); JobDuty[playerid] = 1; Medics += 1; } } else if(PlayerInfo[playerid][pJob] == 7) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie Schalten die Taxi Lampe aus und Verlassen den Dienst."); JobDuty[playerid] = 0; Mechanics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie Schalten das Taxi-Licht an und Treten in Dienst."); JobDuty[playerid] = 1; Mechanics += 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, " Sie Brauchen Nicht in Dienst zu Gehen !"); } } return 1; }
Trooper