switch (APlayerData[playerid][PlayerClass])
{
case ClassTruckDriver:
{
new Text3D:label = Create3DTextLabel("[Caminhoneiro]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
case ClassBusDriver:
{
new Text3D:label = Create3DTextLabel("[Motorista]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
return 1;
}
C:\Users\BlaBla\Test(276) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\BlaBla\Test(276) : error 029: invalid expression, assumed zero
C:\Users\BlaBla\Test(276) : warning 215: expression has no effect
C:\Users\BlaBla\Test(276) : error 001: expected token: ";", but found "]"
C:\Users\BlaBla\Test(276) : fatal error 107: too many error messages on one line
Linha de erro й sempre a proxima linha de codigo depois do ultimo fechamento "}"
if(APlayerData[playerid][PlayerClass][ClassTruckDriver] == true)
{
new Text3D:label = Create3DTextLabel("[Caminhoneiro]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
return 0;
)
if(APlayerData[playerid][PlayerClass][ClassBusDriver] == true)
{
new Text3D:label = Create3DTextLabel("[Motorista]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
return 0;
)
C:\Users\BlaBla\Test(260) : error 001: expected token: ")", but found "["
C:\Users\BlaBla\Test(260) : error 029: invalid expression, assumed zero
C:\Users\BlaBla\Test(260) : warning 215: expression has no effect
C:\Users\BlaBla\Test(260) : error 001: expected token: ";", but found "]"
C:\Users\BlaBla\Test(260) : fatal error 107: too many error messages on one line
if(APlayerData[playerid][PlayerClass][ClassTruckDriver] == true)
[CENTER]Estava pensando em colocar um Attach3DTextLabelToPlayer para por a profissao do player em cima do boneco...
entгo como eu nao sei como fazer, tentei fazer de 2 modos. Colocando dentro da callback OnPlayerConnect 1° pawn Код:
|
//Na public OnPlayerSpawn
if(APlayerData[playerid][PlayerClass] == ClassTruckDriver)
{
new Text3D:label = Create3DTextLabel("[Caminhoneiro]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
)
tente:
PHP код:
|
Obrigado...
Uma duvida como eu vou ver se estб funcionando se meu servidor estб off, nao consigo ver no meu player ? |
new Text3D:label;
Destroy3DTextLabel(label);
label = Create3DTextLabel("Nova profissгo", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);