22.08.2015, 11:31
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_JUTUM;
GameTextForPlayer(playerid, "~b~JUTUM", 5000, 5);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
}
case 1:
{
gTeam[playerid] = TEAM_KOKUS;
GameTextForPlayer(playerid, "~r~KOKUS", 5000, 5);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
}
}
case 2:
{
gTeam[playerid] = TEAM_JUMBO;
GameTextForPlayer(playerid, "~r~JUMBO", 5000, 5);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
}
}
PHP код:
C:\Users\Nelson\Desktop\SERVER\gamemodes\taa.pwn(347) : error 014: invalid statement; not in switch
C:\Users\Nelson\Desktop\SERVER\gamemodes\taa.pwn(347) : warning 215: expression has no effect
C:\Users\Nelson\Desktop\SERVER\gamemodes\taa.pwn(347) : error 001: expected token: ";", but found ":"
C:\Users\Nelson\Desktop\SERVER\gamemodes\taa.pwn(347) : error 029: invalid expression, assumed zero
C:\Users\Nelson\Desktop\SERVER\gamemodes\taa.pwn(347) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.