Jump to content
  • 0

Problema adaugare spawn


petru97

Question

Salut ! Vreau sa adaug si eu un nou spawn pe langa lossantos / sanfiero vreau sa bag si lasventuras . Am facut totul si imi da urmatoarele erori :

H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3404) : warning 217: loose indentation
H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3404) : error 032: array index out of bounds (variable "gRandomPlayerSpawns")
H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3409) : warning 217: loose indentation
H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3411) : warning 209: function "SetPlayerSpawn" should return a value
H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3412) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Uita-ti scriptu .
if ((gTeam[playerid]) == 1)
	    {
			SetPlayerToTeamColor(playerid);
			rand = random(sizeof(gMedPlayerSpawns));
			SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
			SetPlayerFacingAngle(playerid, 270.0);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			return 1;
		}
		if(PlayerInfo[playerid][pFMember] != 255)
		{
		    new family = PlayerInfo[playerid][pFMember];
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
		    SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
		    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
		    return 1;
		}
	    else
	    {
			SetPlayerToTeamColor(playerid);
			if(PlayerInfo[playerid][pOrigin] == 1)//San Fiero
			{
			    SetPlayerPos(playerid,-1968.8705,111.0802,27.6875);
				SetPlayerFacingAngle(playerid, 46.8583);
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
			}
			if(PlayerInfo[playerid][pOrigin] == 3)//Las Venturas
			{
			    SetPlayerPos(playerid,2631.6428,2346.5029,10.6719);
			    SetPlayerFacingAngle(playerid, 203.6199);
			    SetPlayerInterior(playerid,0);
			    PlayerInfo[playerid][pInt] = 0;
			}

			else if(PlayerInfo[playerid][pOrigin] == 2)//Los Santos
			{
			    SetPlayerPos(playerid,1771.7191,-1656.6982,14.4234);
				SetPlayerFacingAngle(playerid, 265.6613);
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
			}
			else



				rand = random(sizeof(gRandomPlayerSpawns));
				SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2], gRandomPlayerSpawns[rand][3]); // Warp the player
				SetPlayerFacingAngle(playerid, 270.0);
				SetPlayerInterior(playerid, 5);
				PlayerInfo[playerid][pInt] = 15;
			}
			return 1;
		}
	}
	return 1;
}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.