I Need Help Quick!
#1

I GET THESE ERROR CODES

Код:
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(351) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(359) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(362) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(363) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(372) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(374) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(383) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(384) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(404) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(404) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(405) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(425) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(425) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(426) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(433) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(433) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(436) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(438) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(438) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(472) : error 017: undefined symbol "SetPlayerToTeamColour"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
I Can Fix the Warning 217's and heres The code that gets errors



Код:
		gTeam[playerid] = ;
}
}
			SetPlayerToTeamColour(playerid)
		{
		if(gTeam[playerid] == GROVE_STREET)
{
		SetPlayerColor(playerid,GROVE_STREET_COLOUR); //Green
}
		if(gTeam[playerid] == Police)
{
		SetPlayerColor(playerid,Police_COLOUR); // Blue

{
} //----------------------------------------------------------------------------------------
		if(classid == 3)
{
		gTeam[playerid] = Medic;
}
		if(classid == 4)
{
		gTeam[playerid] = DrugDealer;
}
}
		SetPlayerToTeamColour(playerid)
{
		if(gTeam[playerid] == Medic)
{
		SetPlayerColor(playerid,Medic_COLOUR); //LightRed
}
		if(gTeam[playerid] == DrugDealer)
{
		SetPlayerColor(playerid,DrugDealer_COLOUR); // Pink
}
}
{ //-------------------------------------------------------------------------------------------
		if(classid == 5)
{
		gTeam[playerid] = TaxiDriver;
}
		if(classid == 6)
{
		gTeam[playerid] = Ballas;
}
}
		SetPlayerToTeamColour(playerid)
{
		if(gTeam[playerid] == TaxiDriver)
{
		SetPlayerColor(playerid,TaxiDriver_COLOUR); //Yellow
}
		if(gTeam[playerid] == Ballas)
{
		SetPlayerColor(playerid,Ballas_COLOUR); // Purple
}
}
{ //-------------------------------------------------------------------------------------------
		if(classid == 7)
{
		gTeam[playerid] = HitMan;
}
		if(classid == 8)
{
		gTeam[playerid] = CarJacker;
}
}
		SetPlayerToTeamColour(playerid)
{
		if(gTeam[playerid] == HitMan)
{
		SetPlayerColor(playerid,HitMan_COLOUR); 
}
		if(gTeam[playerid] ==CarJacker)
{
		SetPlayerColor(playerid,CarJacker_COLOUR);
} //---------------------------------------------------------------------------
}
		return 1;
}
	SetPlayerPos(playerid, 1243.3186,-948.2298,42.6152);
	SetPlayerFacingAngle(playerid, 2.3892);
	SetPlayerCameraPos(playerid, 1243.4257,-944.8715,42.6232);
	SetPlayerCameraLookAt(playerid, 1243.3186,-948.2298,42.6152);
	return 1;
}

public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new
        string[64],
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
        case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
        case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerToTeamColour(playerid);
	return 1;
}
Reply


Messages In This Thread
I Need Help Quick! - by Bmxerlmao5288 - 14.06.2011, 02:00
Re: I Need Help Quick! - by Tee - 14.06.2011, 02:04
Re: I Need Help Quick! - by Bmxerlmao5288 - 14.06.2011, 02:05
Re: I Need Help Quick! - by Donya - 14.06.2011, 02:12
Re: I Need Help Quick! - by Donya - 14.06.2011, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)