14.03.2010, 22:26
Hey guys i have a problem here :
And I get this error:
Thanks In Advance
pawn Код:
//=================================/boat========================================
if(strcmp(cmdtext,"/boat",true)==0)
{
new rand;
rand = random(1);
rand++
switch ( rand )
{
case 1: SetPlayerPos(playerid, 162.2176,3960.2290,10.1294);
case 2: SetPlayerPos(playerid, 163.6806,3965.2693,9.6368);
}
SetPlayerPos(playerid,-1392.0121,1488.0516,1.8672);
SetPlayerInterior(playerid,0);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,COLOR_GREEN,"~~~~~~~~~~~~~");
SendClientMessage(playerid,COLOR_GREEN,"~.:Boat DM:.~");
SendClientMessage(playerid,COLOR_GREEN,"~Find The Deagles And Wack Your Oponent~");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(msg,sizeof(msg),"%s [%i] has teleported to Boat DM!~[/boat]",name,playerid);
SendClientMessageToAll(COLOR_YELLOW,msg);
return 1;
}
Код:
error 001: expected token: ";", but found "switch"