04.09.2011, 09:59
Im getting a tag mismatch error when im using this code:
When im using it in a command like this:
Im getting the tag mismatch, otherwise i dont. The "Player" is defined in the command. What can the problem be?
Edit: The error lines are in
pawn Код:
stock FreezePlayer(playerid, toggle)
{
switch( toggle )
{
case 0: TogglePlayerControllable(playerid, 1), Freezed[playerid] = 0;
case 1: TogglePlayerControllable(playerid, 0), Freezed[playerid] = 1;
}
return 1;
}
pawn Код:
FreezePlayer(Player, 1);
Edit: The error lines are in
pawn Код:
case 0: TogglePlayerControllable(playerid, 1), Freezed[playerid] = 0;
case 1: TogglePlayerControllable(playerid, 0), Freezed[playerid] = 1;