06.03.2010, 09:19
Код:
forward Event(); public Event() { switch(random(1)) //could be removed if <= 1 { case 0: { for(new i; i < MAX_PLAYERS; i++) { switch(random(5)) //random(5) returns a number from 0 till 4 (0, 1, 2, 3 or 4) { case 0: SetPlayerPos(i, 1.0, 2.0, 3.0); case 1: SetPlayerPos(i, 2.0, 3.0, 4.0); case 2: SetPlayerPos(i, 3.0, 4.0, 5.0); case 3: SetPlayerPos(i, 4.0, 5.0, 1.0); case 4: SetPlayerPos(i, 5.0, 1.0, 2.0); default: print("ERROR: Undefined teleport!"); } }
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(1569) : error 030: compound statement not closed at the end of file (started at line 1557) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.