Undefined Symbol?!
#1

Quote:
Originally Posted by FiveCentz
Посмотреть сообщение
So I've been setting up teams, and I got the two teams set up, when you spawn, you view the two teams. Ballas and Groves.

When you click spawn, you teleport someplace else. Instead of the target place.
Here is my script:

Код:
public OnPlayerSpawn(playerid)
{
	if(classid == 0);
	{
	    SetPlayerSkin(playerid, 104);
	    SetPlayerPos(playerid, 2419.1653,-1232.5118,24.4743);
	}
	if(classid == 1);
	{
	    SetPlayerSkin(playerid, 107);
	    SetPlayerPos(playerid, 2500.6060,-1672.1453,13.3512);
	}
    SendClientMessage(playerid, -1, "You can use /wpack to purches weapons, it costs $10,000");
	GivePlayerWeapon(playerid, 30, 600);
	return 1;
}
I put it in OnPlayerSpawn so you can spawn there with the stuff.

Here is the other bit, the part where you choose your team:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerTeamFromClass(playerid, classid);
	if(classid == 0)
    {
        gTeam[playerid] = BALLAS;
        GameTextForPlayer(playerid,"~w~Ballas",3000,5); // This will show up an Text , when you select your class
        SetPlayerSkin(playerid, 104);
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
    }
else if(classid == 1)
    {
        gTeam[playerid] = GROVES;
        GameTextForPlayer(playerid,"~w~Grove Street Famlilys",3000,5);
		SetPlayerSkin(playerid, 107);
        SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
        SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
        SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
        SetPlayerFacingAngle(playerid,252.4717);
        SetPlayerColor(playerid,0x55FF00FF);
    }
}
Please help.
ERRORS:
Код:
(104) : error 017: undefined symbol "classid"
(104) : error 036: empty statement
(109) : error 017: undefined symbol "classid"
(109) : error 036: empty statement
(292) : warning 217: loose indentation
Reply
#2

------
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == BALLAS); // here is
    {
        SetPlayerSkin(playerid, 104);
        SetPlayerPos(playerid, 2419.1653,-1232.5118,24.4743);
    }
    if(gTeam[playerid] == GROVES); // here is
    {
        SetPlayerSkin(playerid, 107);
        SetPlayerPos(playerid, 2500.6060,-1672.1453,13.3512);
    }
    SendClientMessage(playerid, -1, "You can use /wpack to purches weapons, it costs $10,000");
    GivePlayerWeapon(playerid, 30, 600);
    return 1;
}
Reply
#4

Don't bump after 2 minutes. You have to wait at least 24 hours. Read the forum rules.

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == BALLAS)
    {
        SetPlayerSkin(playerid, 104);
        SetPlayerPos(playerid, 2419.1653,-1232.5118,24.4743);
    }
    if(gTeam[playerid] = GROVES)
    {
        SetPlayerSkin(playerid, 107);
        SetPlayerPos(playerid, 2500.6060,-1672.1453,13.3512);
    }
        SendClientMessage(playerid, -1, "You can use /wpack to purches weapons, it costs $10,000");
    GivePlayerWeapon(playerid, 30, 600);
    return 1;
}
Reply
#5

Sorry, and thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)