01.10.2013, 06:35
Hey guys... i got a bunch stupid compiling errors and 2 warnings so here's the Errors And Warnings
And heres the lines of it
Line 393 to 424 :
Line 430 to 480:
Line 491 to 536 :
Emhm.. i know the post look weird but if u have any solution please tell to me
P.S : I broke my right hand while im coming from upstairs , so i cant script or type weell
Код:
C:\Documents and Settings\Administrator\Desktop\My Servers\COD6 (Windows)\pawno\include\YSI\y_va.inc(571) : warning 219: local variable "time" shadows a variable at a preceding level C:\Documents and Settings\Administrator\Desktop\My Servers\COD6 (Windows)\pawno\include\YSI\y_va.inc(576) : warning 219: local variable "time" shadows a variable at a preceding level C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(399) : error 017: undefined symbol "HumanSetup" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(401) : error 017: undefined symbol "CurePlayer" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(430) : error 017: undefined symbol "UpdateMapName" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(441) : error 017: undefined symbol "ClearObjects" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(442) : error 017: undefined symbol "DestroyAllVehicle" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(443) : error 017: undefined symbol "UnloadFilterScript" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(444) : error 017: undefined symbol "LoadMap" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(445) : error 017: undefined symbol "LoadFilterScript" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(452) : error 017: undefined symbol "ChangeCameraView" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(480) : error 017: undefined symbol "CreateEvacMaps" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(491) : error 017: undefined symbol "GetTeamPlayersAlive" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(502) : error 017: undefined symbol "GivePlayerXP" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(519) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(522) : error 017: undefined symbol "CurePlayer" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(523) : error 017: undefined symbol "GivePlayerXP" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(533) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\My Documents\Downloads\zma1.pwn(536) : error 017: undefined symbol "CurePlayer"
Line 393 to 424 :
pawn Код:
function StartMap()
{
foreach(Player,i)
{
SetCameraBehindPlayer(i);
ClearAnimations(i);
HumanSetup(i);
SpawnPlayer(i);
CurePlayer(i);
SetPlayerDrunkLevel(i,0);
DisablePlayerCheckpoint(i);
pInfo[i][Boxes] = 2;
pInfo[i][BoxesAdvanced] = 3;
pInfo[i][SkinChanges] = 2;
pInfo[i][ArmourChanges] = 2;
pInfo[i][pVipBoxes] = 4;
pInfo[i][pLadders] = 2;
pInfo[i][pFakeKills] = 0;
pInfo[i][pAmmoBoxes] = 10;
pInfo[i][C4] = 2;
pInfo[i][pTrapMasterTrap] = 1;
pInfo[i][pScientistCure] = 1;
pInfo[i][pDoctorShield] = 1;
pInfo[i][pMapsPlayed]++;
TextDrawHideForPlayer(i, ServerIntroOne[i]);
TextDrawHideForPlayer(i, ServerIntroTwo[i]);
DestroyPickup(meatDrops[i]);
DestroyPickup(ammoDrops[i]);
DestroyObject(DocShield);
DestroyObject(Trap);
TogglePlayerControllable(i,1);
}
pawn Код:
SetTimer("RandomZombie",1000,false);
gateobj = CreateObject(Map[GateID],Map[GateX],Map[GateY],Map[GateZ],Map[GaterX],Map[GaterY],Map[GaterZ],500.0);
mapvar = SetTimer("OnMapUpdate",MAX_MAPUPDATE_TIME,true);
balvar = SetTimer("OnMapBalance",MAX_BALANCERUPDATE_TIME,true);
return 1;
}
function EndMap()
{
ClearObjects();
DestroyAllVehicle();
UnloadFilterScript(Map[FSMapName]);
LoadMap(LoadNewMap());
LoadFilterScript(Map[FSMapName]);
SetTimer("StartMap",MAX_RESTART_TIME,false);
GameTextForAll("~n~~n~~n~~n~~n~~g~Loading~w~ next map",3500,5);
foreach(Player,i)
{
ChangeCameraView(i);
TogglePlayerControllable(i,0);
TextDrawShowForPlayer(i, ServerIntroOne[i]);
TextDrawShowForPlayer(i, ServerIntroTwo[i]);
if(pInfo[i][pAdminDuty] == 1)
{
pInfo[i][pAdminDuty] = 0;
}
}
SendClientMessageToAll(-1,""chat""COL_YELLOW" Creating Objects...");
return 1;
}
function OnMapUpdate()
{
time -= 5;
new str[64];
format(str,sizeof(str),"%d",time);
TextDrawSetString(TimeLeft,str);
if(time <= 0) TextDrawSetString(TimeLeft," ..."),KillTimer(mapvar),KillTimer(balvar),SetTimer("ShowCheckpoint",MAX_SHOW_CP_TIME,false);
return 1;
}
function ShowCheckpoint()
{
CreateEvacMaps();
pawn Код:
if(GetTeamPlayersAlive(TEAM_HUMAN) == 0)
{
KillTimer(balvar);
KillTimer(mapvar);
TextDrawSetString(TimeLeft,"~r~Zombies win");
SetTimer("EndMap",4000,false); // Cannot use MAX_END_TIME Because of MAX_END_TIME is set to 1 minute not 4 seconds *NOTE TO ME*
foreach(Player,i)
{
if(team[i] == TEAM_ZOMBIE)
{
pInfo[i][pXP] += 30;
GivePlayerXP(i,30);
}
}
}
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(team[playerid] == TEAM_HUMAN)
{
new string[256];
if(Map[EvacType] == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1408.2051,-970.8841,198.9738);
format(string,sizeof(string), ""chat""COL_LGREEN" %s made it to evacuation point and has received 1 coin!",PlayerName(playerid));
SendClientMessageToAll(-1,string);
DisablePlayerCheckpoint(playerid);
CurePlayer(playerid);
GivePlayerXP(playerid,50);
pInfo[playerid][pEvac]++;
pInfo[playerid][pCoins]++;
SetPlayerColor(playerid,COLOR_YELLOW);
}
if(Map[EvacType] == 2)
{
SetPlayerPos(playerid,3024.4983,447.9744,14.7813);
SetPlayerInterior(playerid,0);
format(string,sizeof(string), ""chat""COL_LGREEN" %s made it to the water evacuation point and has received 1 coin!",PlayerName(playerid));
SendClientMessageToAll(-1,string);
DisablePlayerCheckpoint(playerid);
CurePlayer(playerid);
Emhm.. i know the post look weird but if u have any solution please tell to me
P.S : I broke my right hand while im coming from upstairs , so i cant script or type weell