27.08.2014, 21:40
I've done this:
and got this error:
Код:
CMD:gotoloc(playerid, params[]) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /gotoloc [LOCATION]"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "To view all locations available, You may use /locations!"); return 1; if(!strcmp(params, "fc", true)) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid,-193.1042,1002.7148,19.7789); SendClientMessage(playerid, COLOR_WHITE, " You have teleported to Fort Carson."); return 1; } else if(!strcmp(params, "dmv", true)) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid,-92.4281,1090.8228,19.7422); SendClientMessage(playerid, COLOR_WHITE, " You have teleported to the DMV."); return 1; }
Код:
C:\Users\USER\Desktop\SV\gamemodes\bare.pwn(408) : warning 225: unreachable code C:\Users\USER\Desktop\SV\gamemodes\bare.pwn(425) : error 030: compound statement not closed at the end of file (started at line 405) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.