eroor not found { }
#1

the erors
Код HTML:
error 002: only a single statement (or expression) can follow each "case"
and
Код:
public OnPlayerRequestClass(playerid, classid)
{
	switch(classid) {
		case 1:
			SetPlayerColor(playerid, 0xFFFF00AA);
			SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), 1137.6893, 1344.9765, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
			GameTextForPlayer(playerid, "~y~Team -A-", 3500, 3);
			case 7:
			SetPlayerColor(playerid, 0x00FFFFFF);
			SetSpawnInfo(playerid, 2, GetPlayerSkin(playerid), 1137.5227, 1221.604, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
			GameTextForPlayer(playerid, "~b~Team -B-", 3500, 3);
	}
	SetupPlayerForClassSelection(playerid);
	return 1;
}
this public Give me eroors
can you help me please|?
Reply
#2

the eroor's coming from this public...
Reply
#3

Fixed:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
            case 1:
            {
                SetPlayerColor(playerid, 0xFFFF00AA);
                SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), 1137.6893, 1344.9765, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
                GameTextForPlayer(playerid, "~y~Team -A-", 3500, 3);
            }
            case 7:
            {
                SetPlayerColor(playerid, 0x00FFFFFF);
                SetSpawnInfo(playerid, 2, GetPlayerSkin(playerid), 1137.5227, 1221.604, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
                GameTextForPlayer(playerid, "~b~Team -B-", 3500, 3);
            }
    }
    SetupPlayerForClassSelection(playerid);
    return 1;
}
Reply
#4

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
Fixed:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
            case 1:
            {
                SetPlayerColor(playerid, 0xFFFF00AA);
                SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), 1137.6893, 1344.9765, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
                GameTextForPlayer(playerid, "~y~Team -A-", 3500, 3);
            }
            case 7:
            {
                SetPlayerColor(playerid, 0x00FFFFFF);
                SetSpawnInfo(playerid, 2, GetPlayerSkin(playerid), 1137.5227, 1221.604, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
                GameTextForPlayer(playerid, "~b~Team -B-", 3500, 3);
            }
    }
    SetupPlayerForClassSelection(playerid);
    return 1;
}
Im send you PM SEE THIS.
Reply
#5

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 1:
        {
            SetPlayerColor(playerid, 0xFFFF00AA);
            SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), 1137.6893, 1344.9765, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
            GameTextForPlayer(playerid, "~y~Team -A-", 3500, 3);
        }
        case 7:
        {
            SetPlayerColor(playerid, 0x00FFFFFF);
            SetSpawnInfo(playerid, 2, GetPlayerSkin(playerid), 1137.5227, 1221.604, 10.8203, 0.0, 0, 0, 0, 0, 0, 0);
            GameTextForPlayer(playerid, "~b~Team -B-", 3500, 3);
        }
    }
    SetupPlayerForClassSelection(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)