help in my problems
#1

hi, i just edited a script from Fahadking, and after i compile it, i get this:
Код:
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(404) : error 017: undefined symbol "ClearChat"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(409) : error 017: undefined symbol "HumanSetup"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(411) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(440) : error 017: undefined symbol "UpdateMapName"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(453) : error 017: undefined symbol "ClearObjects"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(454) : error 017: undefined symbol "DestroyAllVehicle"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(455) : error 017: undefined symbol "UnloadFilterScript"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(456) : error 017: undefined symbol "LoadMap"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(457) : error 017: undefined symbol "LoadFilterScript"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(464) : error 017: undefined symbol "ChangeCameraView"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(492) : error 017: undefined symbol "CreateEvacMaps"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(503) : error 017: undefined symbol "GetTeamPlayersAlive"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(514) : error 017: undefined symbol "GivePlayerXP"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(531) : error 017: undefined symbol "PlayerName"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(534) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(535) : error 017: undefined symbol "GivePlayerXP"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(545) : error 017: undefined symbol "PlayerName"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(548) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(549) : error 017: undefined symbol "GivePlayerXP"
but after i added those things on variable, i get this again:
Код:
C:\Users\JUSTIN\Documents\GTAhh\server\pawno\include\YSI\y_va/impl.inc(538) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\JUSTIN\Documents\GTAhh\server\pawno\include\YSI\y_va/impl.inc(538) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\JUSTIN\Documents\GTAhh\server\pawno\include\YSI\y_va/impl.inc(543) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\JUSTIN\Documents\GTAhh\server\pawno\include\YSI\y_va/impl.inc(543) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\JUSTIN\Documents\GTAhh\server\pawno\include\YSI\y_inline.inc(606) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(418) : error 012: invalid function call, not a valid address
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(418) : error 029: invalid expression, assumed zero
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(418) : warning 215: expression has no effect
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(423) : error 012: invalid function call, not a valid address
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(423) : warning 215: expression has no effect
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(423) : error 001: expected token: ";", but found ")"
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(423) : error 029: invalid expression, assumed zero
C:\Users\JUSTIN\Desktop\Linux Version [0.3z]\gamemodes\zma5.pwn(423) : fatal error 107: too many error messages on one line
can someone help me? this the codes from line 404 to 514:
Код:
function StartMap()
{
    ClearChat();
    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] = 10;
		pInfo[i][SkinChanges] = 2;
		pInfo[i][ArmourChanges] = 2;
		pInfo[i][pVipBoxes] = 35;
		pInfo[i][pLadders] = 2;
		pInfo[i][pFakeKills] = 0;
		pInfo[i][pAmmoBoxes] = 10;
		pInfo[i][C4] = 4;
		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);
	}

	gTime = MAX_MAPTIME;

	SetWeather(Map[Weather]);
	SetWorldTime(Map[Time]);
	UpdateMapName();
	SendClientMessageToAll(-1,""chat""COL_LGREEN" [Clear]"COL_WHITE" Chat Cleared "COL_YELLOW"[Reason: Next Map]");
	SendClientMessageToAll(-1,""chat""COL_RED" [Info]"COL_WHITE" XGreen is KING!");

    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;
}
Im Just A Newbie in scripting, here is the .pwn file:
https://www.dropbox.com/s/rpsw9gq1u3wun5a/zma5.pwn?m=

please just correct my mistakes....
Reply
#2

This is not the right selection, post it in scripting help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)