05.02.2014, 19:32
pawn Код:
new PlayerPaused[MAX_PLAYER_NAME];
new Text3D:Pause3DText[MAX_PLAYER_NAME];
forward PauseCheck();
public PauseCheck()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(OnPlayerUpdate(i) == 0)
{
PlayerPaused[i] = 1;
Pause3DText[i] = CreatePlayer3DTextLabel(i,"PAUSED",0xFF0000AA,X,Y,Z,40.0,i,0); //Error line
}
if(OnPlayerUpdate(i) == 1)
{
PlayerPaused[i] = 0;
Delete3DTextLabel(Pause3DText[i]);
}
}
}
}
Код:
warning 213: tag mismatch